projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
248adb4
)
; Simplify recent change in cl-defstruct
author
Stefan Kangas
<stefankangas@gmail.com>
Sun, 1 Oct 2023 16:34:41 +0000
(18:34 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Sun, 1 Oct 2023 16:45:36 +0000
(18:45 +0200)
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Use bound-and-true-p.
Suggested by Robert Pluim <rpluim@gmail.com>.
lisp/emacs-lisp/cl-macs.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-macs.el
b/lisp/emacs-lisp/cl-macs.el
index 7c207d372fcc19fe657199e4b8f6bf130088de6d..8025a64f1bf36200485318302e8ca77060f13c09 100644
(file)
--- a/
lisp/emacs-lisp/cl-macs.el
+++ b/
lisp/emacs-lisp/cl-macs.el
@@
-3200,8
+3200,8
@@
To see the documentation for a defined struct type, use
;; choose to avoid the byte-compiler
;; warnings.
(if (>= (length long-docstring)
- (or (
and (boundp 'byte-compile-docstring-max-column)
-
byte-compile-docstring-max-column)
+ (or (
bound-and-true-p
+ byte-compile-docstring-max-column)
80))
(concat
(internal--format-docstring-line