emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master a5cc98c 3/3: Suppress warning in display-completion


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master a5cc98c 3/3: Suppress warning in display-completion-list about itself
Date: Wed, 12 Jun 2019 10:19:08 -0400 (EDT)

branch: master
commit a5cc98c38e5f78499170e05077b1e297153bc498
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Suppress warning in display-completion-list about itself
    
    * lisp/minibuffer.el (display-completion-list):
    `display-completion-list' calls itself with the old, obsolete
    callargs, so suppress this warning.
---
 lisp/minibuffer.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index ed610c1..5770276 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1738,7 +1738,8 @@ It can find the completion buffer in `standard-output'."
       (with-temp-buffer
        (let ((standard-output (current-buffer))
              (completion-setup-hook nil))
-         (display-completion-list completions common-substring))
+          (with-suppressed-warnings ((callargs display-completion-list))
+           (display-completion-list completions common-substring)))
        (princ (buffer-string)))
 
     (with-current-buffer standard-output



reply via email to

[Prev in Thread] Current Thread [Next in Thread]