]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence warning in obsolete/complete.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jun 2019 15:10:53 +0000 (17:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jun 2019 15:10:53 +0000 (17:10 +0200)
* lisp/obsolete/complete.el (PC-do-completion): Suppress warning
about obsolete variable in obsolete function.

lisp/obsolete/complete.el

index 8021b2227eafb1de25002df61ec437fda3668c49..173a4619caad9ac659af8cbc5d1350270e1f185a 100644 (file)
@@ -832,9 +832,12 @@ GOTO-END is non-nil, however, it instead replaces up to END."
                           ;;
                           ;; Note that choose-completion-string-functions
                           ;; plays around with point.
-                          (setq completion-base-size (if dirname
-                                                         dirlength
-                                                       (- beg prompt-end))))))
+                          (with-suppressed-warnings ((obsolete
+                                                      completion-base-size))
+                            (setq completion-base-size
+                                  (if dirname
+                                      dirlength
+                                    (- beg prompt-end)))))))
                              (PC-temp-minibuffer-message " [Next char not unique]"))
                          ;; Expansion of filenames is not reversible,
                          ;; so just keep the prefix.