diff options
| author | Jonas Bernoulli | 2014-03-12 16:02:45 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2014-03-12 16:02:45 +0100 |
| commit | 08dfa0b75eb772ba5857c98f6efe52d8aafc6262 (patch) | |
| tree | 0c36693b5f2fa90d9c6758ea61425562094684b4 | |
| parent | 8960529e6b1edf67c720cf167220459325734470 (diff) | |
| download | emacs-08dfa0b75eb772ba5857c98f6efe52d8aafc6262.tar.gz emacs-08dfa0b75eb772ba5857c98f6efe52d8aafc6262.zip | |
lisp/emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998).
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio.el | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7452455efec..5198f1f55ba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-03-12 Jonas Bernoulli <jonas@bernoul.li> | ||
| 2 | |||
| 3 | * emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998). | ||
| 4 | |||
| 1 | 2014-03-12 Martin Rudalics <rudalics@gmx.at> | 5 | 2014-03-12 Martin Rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * window.el (fit-frame-to-buffer): Get maximum width from | 7 | * window.el (fit-frame-to-buffer): Get maximum width from |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index a1b5b381571..566821ede91 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -246,13 +246,13 @@ Where each VAR is the local variable given to the associated | |||
| 246 | SLOT. A slot specified without a variable name is given a | 246 | SLOT. A slot specified without a variable name is given a |
| 247 | variable name of the same name as the slot." | 247 | variable name of the same name as the slot." |
| 248 | (declare (indent 2)) | 248 | (declare (indent 2)) |
| 249 | ;; Transform the spec-list into a symbol-macrolet spec-list. | 249 | ;; Transform the spec-list into a cl-symbol-macrolet spec-list. |
| 250 | (let ((mappings (mapcar (lambda (entry) | 250 | (let ((mappings (mapcar (lambda (entry) |
| 251 | (let ((var (if (listp entry) (car entry) entry)) | 251 | (let ((var (if (listp entry) (car entry) entry)) |
| 252 | (slot (if (listp entry) (cadr entry) entry))) | 252 | (slot (if (listp entry) (cadr entry) entry))) |
| 253 | (list var `(slot-value ,object ',slot)))) | 253 | (list var `(slot-value ,object ',slot)))) |
| 254 | spec-list))) | 254 | spec-list))) |
| 255 | (append (list 'symbol-macrolet mappings) | 255 | (append (list 'cl-symbol-macrolet mappings) |
| 256 | body))) | 256 | body))) |
| 257 | 257 | ||
| 258 | ;;; Simple generators, and query functions. None of these would do | 258 | ;;; Simple generators, and query functions. None of these would do |