]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't let completion break `declare' handling
authorPaul Pogonyshev <pogonyshev@gmail.com>
Sat, 23 Jul 2016 14:12:56 +0000 (10:12 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 23 Jul 2016 14:16:38 +0000 (10:16 -0400)
* elisp-mode.el (elisp-completion-at-point): Fix to not alter
`defun-declarations-alist' by side effect (Bug #23648).

lisp/progmodes/elisp-mode.el

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