Don't let completion break `declare' handling

* elisp-mode.el (elisp-completion-at-point): Fix to not alter
`defun-declarations-alist' by side effect (Bug #23648).
This commit is contained in:
Paul Pogonyshev 2016-07-23 10:12:56 -04:00 committed by Noam Postavsky
parent 66f95e0dab
commit bc4c07fca5

View file

@ -542,9 +542,9 @@ functions are annotated with \"<f>\" via the
(delete-dups (delete-dups
;; FIXME: We should include some ;; FIXME: We should include some
;; docstring with each entry. ;; docstring with each entry.
(append (append macro-declarations-alist
macro-declarations-alist defun-declarations-alist
defun-declarations-alist))))) nil))))) ; Copy both alists.
((and (or `condition-case `condition-case-unless-debug) ((and (or `condition-case `condition-case-unless-debug)
(guard (save-excursion (guard (save-excursion
(ignore-errors (ignore-errors