aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-15 17:10:53 +0200
committerLars Ingebrigtsen2019-06-15 17:10:53 +0200
commita43a0fc797f27cc0bfb0379f617e94b66c35a26e (patch)
tree2b07d2d2274145b4e911208e8aeb482a2666e97f
parent3f4c2f813adeffc6814ee01116704ccf420c3bd9 (diff)
downloademacs-a43a0fc797f27cc0bfb0379f617e94b66c35a26e.tar.gz
emacs-a43a0fc797f27cc0bfb0379f617e94b66c35a26e.zip
Silence warning in obsolete/complete.el
* lisp/obsolete/complete.el (PC-do-completion): Suppress warning about obsolete variable in obsolete function.
-rw-r--r--lisp/obsolete/complete.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/obsolete/complete.el b/lisp/obsolete/complete.el
index 8021b2227ea..173a4619caa 100644
--- a/lisp/obsolete/complete.el
+++ b/lisp/obsolete/complete.el
@@ -832,9 +832,12 @@ GOTO-END is non-nil, however, it instead replaces up to END."
832 ;; 832 ;;
833 ;; Note that choose-completion-string-functions 833 ;; Note that choose-completion-string-functions
834 ;; plays around with point. 834 ;; plays around with point.
835 (setq completion-base-size (if dirname 835 (with-suppressed-warnings ((obsolete
836 dirlength 836 completion-base-size))
837 (- beg prompt-end)))))) 837 (setq completion-base-size
838 (if dirname
839 dirlength
840 (- beg prompt-end)))))))
838 (PC-temp-minibuffer-message " [Next char not unique]")) 841 (PC-temp-minibuffer-message " [Next char not unique]"))
839 ;; Expansion of filenames is not reversible, 842 ;; Expansion of filenames is not reversible,
840 ;; so just keep the prefix. 843 ;; so just keep the prefix.