Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f8ccf167
Commit
f8ccf167
authored
Aug 26, 2011
by
Leo Liu
Browse files
Fix format bug in defstruct
http://debbugs.gnu.org/9357
parent
2a9878fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-macs.el
+4
-6
No files found.
lisp/ChangeLog
View file @
f8ccf167
2011-08-26 Leo Liu <sdl.web@gmail.com>
* emacs-lisp/cl-macs.el (defstruct): Fix format. (Bug#9357)
2011-08-25 Juri Linkov <juri@jurta.org>
* isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
...
...
lisp/emacs-lisp/cl-macs.el
View file @
f8ccf167
...
...
@@ -2416,9 +2416,8 @@ value, that slot cannot be set via `setf'.
(append
(and pred-check
(list (list 'or pred-check
(list 'error
(format "
%s
accessing
a
non-%s
"
accessor name)))))
`(error "
%s
accessing
a
non-%s
"
',accessor ',name))))
(list (if (eq type 'vector) (list 'aref 'cl-x pos)
(if (= pos 0) '(car cl-x)
(list 'nth pos 'cl-x)))))) forms)
...
...
@@ -2426,9 +2425,8 @@ value, that slot cannot be set via `setf'.
(push (list 'define-setf-method accessor '(cl-x)
(if (cadr (memq :read-only (cddr desc)))
(list 'progn '(ignore cl-x)
(list 'error
(format "
%s
is
a
read-only
slot
"
'accessor)))
`(error "
%s
is
a
read-only
slot
"
',accessor))
;; If cl is loaded only for compilation,
;; the call to cl-struct-setf-expander would
;; cause a warning because it may not be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment