From bc4c07fca58a140c197c0e4010550d42c808b416 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Sat, 23 Jul 2016 10:12:56 -0400 Subject: [PATCH] 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). --- lisp/progmodes/elisp-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 5111f887091..d02951dcf62 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -542,9 +542,9 @@ functions are annotated with \"\" 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 -- 2.39.2