diff options
| author | Leo Liu | 2011-08-26 17:52:07 +0800 |
|---|---|---|
| committer | Leo Liu | 2011-08-26 17:52:07 +0800 |
| commit | f8ccf16762e094505989b9d60fab2cc24d117daa (patch) | |
| tree | 77abba834a243d1ff081756df9a9cd1ebfaca496 | |
| parent | 2a9878fd77cdc566643a071beb61b5436d96f9ab (diff) | |
| download | emacs-f8ccf16762e094505989b9d60fab2cc24d117daa.tar.gz emacs-f8ccf16762e094505989b9d60fab2cc24d117daa.zip | |
Fix format bug in defstruct
http://debbugs.gnu.org/9357
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b922e21681f..b82163e5160 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-08-26 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * emacs-lisp/cl-macs.el (defstruct): Fix format. (Bug#9357) | ||
| 4 | |||
| 1 | 2011-08-25 Juri Linkov <juri@jurta.org> | 5 | 2011-08-25 Juri Linkov <juri@jurta.org> |
| 2 | 6 | ||
| 3 | * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to | 7 | * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to |
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index fb19115287c..d9531cc5261 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -2416,9 +2416,8 @@ value, that slot cannot be set via `setf'. | |||
| 2416 | (append | 2416 | (append |
| 2417 | (and pred-check | 2417 | (and pred-check |
| 2418 | (list (list 'or pred-check | 2418 | (list (list 'or pred-check |
| 2419 | (list 'error | 2419 | `(error "%s accessing a non-%s" |
| 2420 | (format "%s accessing a non-%s" | 2420 | ',accessor ',name)))) |
| 2421 | accessor name))))) | ||
| 2422 | (list (if (eq type 'vector) (list 'aref 'cl-x pos) | 2421 | (list (if (eq type 'vector) (list 'aref 'cl-x pos) |
| 2423 | (if (= pos 0) '(car cl-x) | 2422 | (if (= pos 0) '(car cl-x) |
| 2424 | (list 'nth pos 'cl-x)))))) forms) | 2423 | (list 'nth pos 'cl-x)))))) forms) |
| @@ -2426,9 +2425,8 @@ value, that slot cannot be set via `setf'. | |||
| 2426 | (push (list 'define-setf-method accessor '(cl-x) | 2425 | (push (list 'define-setf-method accessor '(cl-x) |
| 2427 | (if (cadr (memq :read-only (cddr desc))) | 2426 | (if (cadr (memq :read-only (cddr desc))) |
| 2428 | (list 'progn '(ignore cl-x) | 2427 | (list 'progn '(ignore cl-x) |
| 2429 | (list 'error | 2428 | `(error "%s is a read-only slot" |
| 2430 | (format "%s is a read-only slot" | 2429 | ',accessor)) |
| 2431 | 'accessor))) | ||
| 2432 | ;; If cl is loaded only for compilation, | 2430 | ;; If cl is loaded only for compilation, |
| 2433 | ;; the call to cl-struct-setf-expander would | 2431 | ;; the call to cl-struct-setf-expander would |
| 2434 | ;; cause a warning because it may not be | 2432 | ;; cause a warning because it may not be |