mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 22:41:06 -08:00
Use add-to-list' defensively instead of push'
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/293
This commit is contained in:
parent
6da4e0ce9d
commit
ce51ea2055
1 changed files with 3 additions and 3 deletions
|
|
@ -597,7 +597,7 @@ manually updated package."
|
||||||
(let ((body (use-package-process-keywords name rest state)))
|
(let ((body (use-package-process-keywords name rest state)))
|
||||||
(use-package-concat
|
(use-package-concat
|
||||||
(mapcar #'(lambda (path)
|
(mapcar #'(lambda (path)
|
||||||
`(eval-and-compile (push ,path load-path))) arg)
|
`(eval-and-compile (add-to-list 'load-path ,path))) arg)
|
||||||
body)))
|
body)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
@ -785,7 +785,7 @@ deferred until the prefix key sequence is pressed."
|
||||||
(let* (commands
|
(let* (commands
|
||||||
(form (mapcar #'(lambda (interpreter)
|
(form (mapcar #'(lambda (interpreter)
|
||||||
(push (cdr interpreter) commands)
|
(push (cdr interpreter) commands)
|
||||||
`(push ',interpreter interpreter-mode-alist)) arg)))
|
`(add-to-list 'interpreter-mode-alist ',interpreter)) arg)))
|
||||||
(use-package-concat
|
(use-package-concat
|
||||||
(use-package-process-keywords name
|
(use-package-process-keywords name
|
||||||
(use-package-sort-keywords
|
(use-package-sort-keywords
|
||||||
|
|
@ -804,7 +804,7 @@ deferred until the prefix key sequence is pressed."
|
||||||
(let* (commands
|
(let* (commands
|
||||||
(form (mapcar #'(lambda (mode)
|
(form (mapcar #'(lambda (mode)
|
||||||
(push (cdr mode) commands)
|
(push (cdr mode) commands)
|
||||||
`(push ',mode auto-mode-alist)) arg)))
|
`(add-to-list 'auto-mode-alist ',mode)) arg)))
|
||||||
(use-package-concat
|
(use-package-concat
|
||||||
(use-package-process-keywords name
|
(use-package-process-keywords name
|
||||||
(use-package-sort-keywords
|
(use-package-sort-keywords
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue