Commit 6e39d3b2 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(define-obsolete-variable-alias): Use dolist,

and only put a prop if it is non-nil.
parent c9753fb4
2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/byte-run.el (define-obsolete-variable-alias): Use dolist,
and only put a prop if it is non-nil.
2009-11-03 Juri Linkov <juri@jurta.org>
* menu-bar.el (menu-bar-make-mm-toggle, menu-bar-make-toggle)
......
......@@ -202,10 +202,10 @@ CURRENT-NAME, if it does not already have them:
`(progn
(defvaralias ,obsolete-name ,current-name ,docstring)
;; See Bug#4706.
(mapc (lambda (prop) (or (get ,current-name prop)
(put ,current-name prop
(get ,obsolete-name prop))))
'(saved-value saved-variable-comment))
(dolist (prop '(saved-value saved-variable-comment))
(and (get ,obsolete-name prop)
(null (get ,current-name prop))
(put ,current-name prop (get ,obsolete-name prop))))
(make-obsolete-variable ,obsolete-name ,current-name ,when)))
(set-advertised-calling-convention
;; New code should always provide the `when' argument.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment