mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(clone-buffer): Use mapc' rather than
mapcar'.
This commit is contained in:
parent
81ce287c33
commit
9ca2204bbd
@ -5548,13 +5548,13 @@ after it has been set up properly in other respects."
|
||||
(funcall mode)
|
||||
|
||||
;; Set up other local variables.
|
||||
(mapcar (lambda (v)
|
||||
(condition-case () ;in case var is read-only
|
||||
(if (symbolp v)
|
||||
(makunbound v)
|
||||
(set (make-local-variable (car v)) (cdr v)))
|
||||
(error nil)))
|
||||
lvars)
|
||||
(mapc (lambda (v)
|
||||
(condition-case () ;in case var is read-only
|
||||
(if (symbolp v)
|
||||
(makunbound v)
|
||||
(set (make-local-variable (car v)) (cdr v)))
|
||||
(error nil)))
|
||||
lvars)
|
||||
|
||||
;; Run any hooks (typically set up by the major mode
|
||||
;; for cloning to work properly).
|
||||
|
Loading…
Reference in New Issue
Block a user