diff options
| author | Stefan Monnier | 2011-06-01 16:32:04 -0300 |
|---|---|---|
| committer | Stefan Monnier | 2011-06-01 16:32:04 -0300 |
| commit | 2403c841a8e920fa7e517997ecb5addcca2ecfe7 (patch) | |
| tree | 4dccd3734a7be1b965df14491b7002260e1876dc | |
| parent | 3b7d5980c94cdf3188b2a5bb002e00d887312957 (diff) | |
| download | emacs-2403c841a8e920fa7e517997ecb5addcca2ecfe7.tar.gz emacs-2403c841a8e920fa7e517997ecb5addcca2ecfe7.zip | |
Silence various byte-compiler warnings.
* lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument
`access-type' and new obsolescence format.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
new format.
(byte-compile-check-variable): New `access-type' argument.
Only warn if the access-type is obsolete.
(byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
(byte-compile-variable-set): Adjust callers.
* lisp/help-fns.el (describe-variable): Adjust to new obsolescence format.
* lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
setting it as obsolete.
* lisp/simple.el (minibuffer-completing-symbol):
* lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
access as obsolete.
* lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it
obsolete yet.
* lisp/international/quail.el (quail-mouse-choose-completion): Remove unused
code referring to obsolete var.
(quail-choose-completion-string): Remove.
* lisp/server.el (server-clients-with, server-kill-buffer-query-function)
(server-kill-emacs-query-function): Silence "unused `proc'" warnings.
* lisp/proced.el (proced-send-signal):
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
Replace completion-annotate-function with completion-extra-properties.
| -rw-r--r-- | lisp/ChangeLog | 28 | ||||
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 19 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 24 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 5 | ||||
| -rw-r--r-- | lisp/font-lock.el | 2 | ||||
| -rw-r--r-- | lisp/help-fns.el | 3 | ||||
| -rw-r--r-- | lisp/international/quail.el | 35 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 3 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 6 | ||||
| -rw-r--r-- | lisp/proced.el | 5 | ||||
| -rw-r--r-- | lisp/server.el | 15 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
12 files changed, 90 insertions, 57 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac5a6db7508..71d927e9692 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,33 @@ | |||
| 1 | 2011-06-01 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2011-06-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | Silence various byte-compiler warnings. | ||
| 4 | * emacs-lisp/byte-run.el (make-obsolete-variable): New argument | ||
| 5 | `access-type' and new obsolescence format. | ||
| 6 | * emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to | ||
| 7 | new format. | ||
| 8 | (byte-compile-check-variable): New `access-type' argument. | ||
| 9 | Only warn if the access-type is obsolete. | ||
| 10 | (byte-compile-dynamic-variable-bind, byte-compile-variable-ref) | ||
| 11 | (byte-compile-variable-set): Adjust callers. | ||
| 12 | * help-fns.el (describe-variable): Adjust to new obsolescence format. | ||
| 13 | * mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark | ||
| 14 | setting it as obsolete. | ||
| 15 | * simple.el (minibuffer-completing-symbol): | ||
| 16 | * font-lock.el (font-lock-beginning-of-syntax-function): Only mark read | ||
| 17 | access as obsolete. | ||
| 18 | * minibuffer.el (minibuffer-completing-file-name): Don't make it | ||
| 19 | obsolete yet. | ||
| 20 | * international/quail.el (quail-mouse-choose-completion): Remove unused | ||
| 21 | code referring to obsolete var. | ||
| 22 | (quail-choose-completion-string): Remove. | ||
| 23 | * server.el (server-clients-with, server-kill-buffer-query-function) | ||
| 24 | (server-kill-emacs-query-function): Silence "unused `proc'" warnings. | ||
| 25 | * proced.el (proced-send-signal): | ||
| 26 | * emacs-lisp/lisp.el (lisp-complete-symbol): | ||
| 27 | Replace completion-annotate-function with completion-extra-properties. | ||
| 28 | |||
| 29 | 2011-06-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 30 | |||
| 3 | * simple.el (goto-line): Use read-number. | 31 | * simple.el (goto-line): Use read-number. |
| 4 | (overriding-map-is-bound): Remove. | 32 | (overriding-map-is-bound): Remove. |
| 5 | (saved-overriding-map): Change default. | 33 | (saved-overriding-map): Change default. |
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index e61f841da60..f79add14836 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -153,24 +153,21 @@ See the docstrings of `defalias' and `make-obsolete' for more details." | |||
| 153 | 'define-obsolete-function-alias | 153 | 'define-obsolete-function-alias |
| 154 | '(obsolete-name current-name when &optional docstring) "23.1") | 154 | '(obsolete-name current-name when &optional docstring) "23.1") |
| 155 | 155 | ||
| 156 | (defun make-obsolete-variable (obsolete-name current-name &optional when) | 156 | (defun make-obsolete-variable (obsolete-name current-name &optional when access-type) |
| 157 | "Make the byte-compiler warn that OBSOLETE-NAME is obsolete. | 157 | "Make the byte-compiler warn that OBSOLETE-NAME is obsolete. |
| 158 | The warning will say that CURRENT-NAME should be used instead. | 158 | The warning will say that CURRENT-NAME should be used instead. |
| 159 | If CURRENT-NAME is a string, that is the `use instead' message. | 159 | If CURRENT-NAME is a string, that is the `use instead' message. |
| 160 | If provided, WHEN should be a string indicating when the variable | 160 | WHEN should be a string indicating when the variable |
| 161 | was first made obsolete, for example a date or a release number." | 161 | was first made obsolete, for example a date or a release number. |
| 162 | (interactive | 162 | ACCESS-TYPE if non-nil should specify the kind of access that will trigger |
| 163 | (list | 163 | obsolescence warnings; it can be either `get' or `set'." |
| 164 | (let ((str (completing-read "Make variable obsolete: " obarray 'boundp t))) | ||
| 165 | (if (equal str "") (error "")) | ||
| 166 | (intern str)) | ||
| 167 | (car (read-from-string (read-string "Obsoletion replacement: "))))) | ||
| 168 | (put obsolete-name 'byte-obsolete-variable | 164 | (put obsolete-name 'byte-obsolete-variable |
| 169 | (purecopy (cons current-name when))) | 165 | (purecopy (list current-name access-type when))) |
| 170 | obsolete-name) | 166 | obsolete-name) |
| 171 | (set-advertised-calling-convention | 167 | (set-advertised-calling-convention |
| 172 | ;; New code should always provide the `when' argument. | 168 | ;; New code should always provide the `when' argument. |
| 173 | 'make-obsolete-variable '(obsolete-name current-name when) "23.1") | 169 | 'make-obsolete-variable |
| 170 | '(obsolete-name current-name when &optional access-type) "23.1") | ||
| 174 | 171 | ||
| 175 | (defmacro define-obsolete-variable-alias (obsolete-name current-name | 172 | (defmacro define-obsolete-variable-alias (obsolete-name current-name |
| 176 | &optional when docstring) | 173 | &optional when docstring) |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 08d484fc872..1e7ee315942 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1109,7 +1109,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'." | |||
| 1109 | (let* ((funcp (get symbol 'byte-obsolete-info)) | 1109 | (let* ((funcp (get symbol 'byte-obsolete-info)) |
| 1110 | (obsolete (or funcp (get symbol 'byte-obsolete-variable))) | 1110 | (obsolete (or funcp (get symbol 'byte-obsolete-variable))) |
| 1111 | (instead (car obsolete)) | 1111 | (instead (car obsolete)) |
| 1112 | (asof (if funcp (nth 2 obsolete) (cdr obsolete)))) | 1112 | (asof (nth 2 obsolete))) |
| 1113 | (unless (and funcp (memq symbol byte-compile-not-obsolete-funcs)) | 1113 | (unless (and funcp (memq symbol byte-compile-not-obsolete-funcs)) |
| 1114 | (byte-compile-warn "`%s' is an obsolete %s%s%s" symbol | 1114 | (byte-compile-warn "`%s' is an obsolete %s%s%s" symbol |
| 1115 | (if funcp "function" "variable") | 1115 | (if funcp "function" "variable") |
| @@ -3016,20 +3016,24 @@ That command is designed for interactive use only" fn)) | |||
| 3016 | (assert (eq byte-compile-depth (1+ start-depth)) | 3016 | (assert (eq byte-compile-depth (1+ start-depth)) |
| 3017 | nil "Wrong depth start=%s end=%s" start-depth byte-compile-depth))) | 3017 | nil "Wrong depth start=%s end=%s" start-depth byte-compile-depth))) |
| 3018 | 3018 | ||
| 3019 | (defun byte-compile-check-variable (var &optional binding) | 3019 | (defun byte-compile-check-variable (var access-type) |
| 3020 | "Do various error checks before a use of the variable VAR. | 3020 | "Do various error checks before a use of the variable VAR." |
| 3021 | If BINDING is non-nil, VAR is being bound." | ||
| 3022 | (when (symbolp var) | 3021 | (when (symbolp var) |
| 3023 | (byte-compile-set-symbol-position var)) | 3022 | (byte-compile-set-symbol-position var)) |
| 3024 | (cond ((or (not (symbolp var)) (byte-compile-const-symbol-p var)) | 3023 | (cond ((or (not (symbolp var)) (byte-compile-const-symbol-p var)) |
| 3025 | (when (byte-compile-warning-enabled-p 'constants) | 3024 | (when (byte-compile-warning-enabled-p 'constants) |
| 3026 | (byte-compile-warn (if binding | 3025 | (byte-compile-warn (if (eq access-type 'let-bind) |
| 3027 | "attempt to let-bind %s `%s`" | 3026 | "attempt to let-bind %s `%s`" |
| 3028 | "variable reference to %s `%s'") | 3027 | "variable reference to %s `%s'") |
| 3029 | (if (symbolp var) "constant" "nonvariable") | 3028 | (if (symbolp var) "constant" "nonvariable") |
| 3030 | (prin1-to-string var)))) | 3029 | (prin1-to-string var)))) |
| 3031 | ((and (get var 'byte-obsolete-variable) | 3030 | ((let ((od (get var 'byte-obsolete-variable))) |
| 3032 | (not (memq var byte-compile-not-obsolete-vars))) | 3031 | (and od |
| 3032 | (not (memq var byte-compile-not-obsolete-vars)) | ||
| 3033 | (or (case (nth 1 od) | ||
| 3034 | (set (not (eq access-type 'reference))) | ||
| 3035 | (get (eq access-type 'reference)) | ||
| 3036 | (t t))))) | ||
| 3033 | (byte-compile-warn-obsolete var)))) | 3037 | (byte-compile-warn-obsolete var)))) |
| 3034 | 3038 | ||
| 3035 | (defsubst byte-compile-dynamic-variable-op (base-op var) | 3039 | (defsubst byte-compile-dynamic-variable-op (base-op var) |
| @@ -3041,13 +3045,13 @@ If BINDING is non-nil, VAR is being bound." | |||
| 3041 | 3045 | ||
| 3042 | (defun byte-compile-dynamic-variable-bind (var) | 3046 | (defun byte-compile-dynamic-variable-bind (var) |
| 3043 | "Generate code to bind the lexical variable VAR to the top-of-stack value." | 3047 | "Generate code to bind the lexical variable VAR to the top-of-stack value." |
| 3044 | (byte-compile-check-variable var t) | 3048 | (byte-compile-check-variable var 'let-bind) |
| 3045 | (push var byte-compile-bound-variables) | 3049 | (push var byte-compile-bound-variables) |
| 3046 | (byte-compile-dynamic-variable-op 'byte-varbind var)) | 3050 | (byte-compile-dynamic-variable-op 'byte-varbind var)) |
| 3047 | 3051 | ||
| 3048 | (defun byte-compile-variable-ref (var) | 3052 | (defun byte-compile-variable-ref (var) |
| 3049 | "Generate code to push the value of the variable VAR on the stack." | 3053 | "Generate code to push the value of the variable VAR on the stack." |
| 3050 | (byte-compile-check-variable var) | 3054 | (byte-compile-check-variable var 'reference) |
| 3051 | (let ((lex-binding (assq var byte-compile--lexical-environment))) | 3055 | (let ((lex-binding (assq var byte-compile--lexical-environment))) |
| 3052 | (if lex-binding | 3056 | (if lex-binding |
| 3053 | ;; VAR is lexically bound | 3057 | ;; VAR is lexically bound |
| @@ -3063,7 +3067,7 @@ If BINDING is non-nil, VAR is being bound." | |||
| 3063 | 3067 | ||
| 3064 | (defun byte-compile-variable-set (var) | 3068 | (defun byte-compile-variable-set (var) |
| 3065 | "Generate code to set the variable VAR from the top-of-stack value." | 3069 | "Generate code to set the variable VAR from the top-of-stack value." |
| 3066 | (byte-compile-check-variable var) | 3070 | (byte-compile-check-variable var 'assign) |
| 3067 | (let ((lex-binding (assq var byte-compile--lexical-environment))) | 3071 | (let ((lex-binding (assq var byte-compile--lexical-environment))) |
| 3068 | (if lex-binding | 3072 | (if lex-binding |
| 3069 | ;; VAR is lexically bound | 3073 | ;; VAR is lexically bound |
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index ece96fe2515..db6a03333d4 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -636,9 +636,8 @@ considered." | |||
| 636 | (plist (nthcdr 3 data))) | 636 | (plist (nthcdr 3 data))) |
| 637 | (if (null data) | 637 | (if (null data) |
| 638 | (minibuffer-message "Nothing to complete") | 638 | (minibuffer-message "Nothing to complete") |
| 639 | (let ((completion-annotate-function | 639 | (let ((completion-extra-properties plist)) |
| 640 | (plist-get plist :annotation-function))) | 640 | (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data) |
| 641 | (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data) | ||
| 642 | (plist-get plist :predicate)))))) | 641 | (plist-get plist :predicate)))))) |
| 643 | 642 | ||
| 644 | 643 | ||
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 32fbb0608a2..e4dc6f11479 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -563,7 +563,7 @@ we recommend setting `syntax-begin-function' instead. | |||
| 563 | 563 | ||
| 564 | This is normally set via `font-lock-defaults'.") | 564 | This is normally set via `font-lock-defaults'.") |
| 565 | (make-obsolete-variable 'font-lock-beginning-of-syntax-function | 565 | (make-obsolete-variable 'font-lock-beginning-of-syntax-function |
| 566 | 'syntax-begin-function "23.3") | 566 | 'syntax-begin-function "23.3" 'set) |
| 567 | 567 | ||
| 568 | (defvar font-lock-mark-block-function nil | 568 | (defvar font-lock-mark-block-function nil |
| 569 | "*Non-nil means use this function to mark a block of text. | 569 | "*Non-nil means use this function to mark a block of text. |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 50e60f94c88..1cd62c1dfa4 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -805,7 +805,8 @@ it is displayed along with the global value." | |||
| 805 | (when obsolete | 805 | (when obsolete |
| 806 | (setq extra-line t) | 806 | (setq extra-line t) |
| 807 | (princ " This variable is obsolete") | 807 | (princ " This variable is obsolete") |
| 808 | (if (cdr obsolete) (princ (format " since %s" (cdr obsolete)))) | 808 | (if (nth 2 obsolete) |
| 809 | (princ (format " since %s" (nth 2 obsolete)))) | ||
| 809 | (princ (cond ((stringp use) (concat ";\n " use)) | 810 | (princ (cond ((stringp use) (concat ";\n " use)) |
| 810 | (use (format ";\n use `%s' instead." (car obsolete))) | 811 | (use (format ";\n use `%s' instead." (car obsolete))) |
| 811 | (t "."))) | 812 | (t "."))) |
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 3fb5818644b..f47d73a9508 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -2253,12 +2253,10 @@ are shown (at most to the depth specified `quail-completion-max-depth')." | |||
| 2253 | ;; Give temporary modes such as isearch a chance to turn off. | 2253 | ;; Give temporary modes such as isearch a chance to turn off. |
| 2254 | (run-hooks 'mouse-leave-buffer-hook) | 2254 | (run-hooks 'mouse-leave-buffer-hook) |
| 2255 | (let ((buffer (window-buffer)) | 2255 | (let ((buffer (window-buffer)) |
| 2256 | choice | 2256 | choice) |
| 2257 | base-size) | ||
| 2258 | (with-current-buffer (window-buffer (posn-window (event-start event))) | 2257 | (with-current-buffer (window-buffer (posn-window (event-start event))) |
| 2259 | (if completion-reference-buffer | 2258 | (if completion-reference-buffer |
| 2260 | (setq buffer completion-reference-buffer)) | 2259 | (setq buffer completion-reference-buffer)) |
| 2261 | (setq base-size completion-base-size) | ||
| 2262 | (save-excursion | 2260 | (save-excursion |
| 2263 | (goto-char (posn-point (event-start event))) | 2261 | (goto-char (posn-point (event-start event))) |
| 2264 | (let (beg end) | 2262 | (let (beg end) |
| @@ -2272,26 +2270,23 @@ are shown (at most to the depth specified `quail-completion-max-depth')." | |||
| 2272 | (setq end (or (next-single-property-change end 'mouse-face) | 2270 | (setq end (or (next-single-property-change end 'mouse-face) |
| 2273 | (point-max))) | 2271 | (point-max))) |
| 2274 | (setq choice (buffer-substring beg end))))) | 2272 | (setq choice (buffer-substring beg end))))) |
| 2275 | ; (let ((owindow (selected-window))) | 2273 | ;; (let ((owindow (selected-window))) |
| 2276 | ; (select-window (posn-window (event-start event))) | 2274 | ;; (select-window (posn-window (event-start event))) |
| 2277 | ; (if (and (one-window-p t 'selected-frame) | 2275 | ;; (if (and (one-window-p t 'selected-frame) |
| 2278 | ; (window-dedicated-p (selected-window))) | 2276 | ;; (window-dedicated-p (selected-window))) |
| 2279 | ; ;; This is a special buffer's frame | 2277 | ;; ;; This is a special buffer's frame |
| 2280 | ; (iconify-frame (selected-frame)) | 2278 | ;; (iconify-frame (selected-frame)) |
| 2281 | ; (or (window-dedicated-p (selected-window)) | 2279 | ;; (or (window-dedicated-p (selected-window)) |
| 2282 | ; (bury-buffer))) | 2280 | ;; (bury-buffer))) |
| 2283 | ; (select-window owindow)) | 2281 | ;; (select-window owindow)) |
| 2284 | (quail-delete-region) | 2282 | (quail-delete-region) |
| 2285 | (quail-choose-completion-string choice buffer base-size) | 2283 | (setq quail-current-str choice) |
| 2284 | ;; FIXME: We need to pass `base-position' here. | ||
| 2285 | ;; FIXME: why do we need choose-completion-string with all its | ||
| 2286 | ;; completion-specific logic? | ||
| 2287 | (choose-completion-string choice buffer) | ||
| 2286 | (quail-terminate-translation))) | 2288 | (quail-terminate-translation))) |
| 2287 | 2289 | ||
| 2288 | ;; BASE-SIZE here is for compatibility with an (unused) arg of a | ||
| 2289 | ;; previous implementation. | ||
| 2290 | (defun quail-choose-completion-string (choice &optional buffer base-size) | ||
| 2291 | (setq quail-current-str choice) | ||
| 2292 | ;; FIXME: We need to pass `base-position' here. | ||
| 2293 | (choose-completion-string choice buffer)) | ||
| 2294 | |||
| 2295 | (defun quail-build-decode-map (map-list key decode-map num | 2290 | (defun quail-build-decode-map (map-list key decode-map num |
| 2296 | &optional maxnum ignores) | 2291 | &optional maxnum ignores) |
| 2297 | "Build a decoding map. | 2292 | "Build a decoding map. |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 60f3062ea7b..2c5fa014a94 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -470,7 +470,8 @@ by Emacs.)") | |||
| 470 | 470 | ||
| 471 | (put 'mail-mailer-swallows-blank-line 'risky-local-variable t) ; gets evalled | 471 | (put 'mail-mailer-swallows-blank-line 'risky-local-variable t) ; gets evalled |
| 472 | (make-obsolete-variable 'mail-mailer-swallows-blank-line | 472 | (make-obsolete-variable 'mail-mailer-swallows-blank-line |
| 473 | "no need to set this on any modern system." "24.1") | 473 | "no need to set this on any modern system." |
| 474 | "24.1" 'set) | ||
| 474 | 475 | ||
| 475 | (defvar mail-mode-syntax-table | 476 | (defvar mail-mode-syntax-table |
| 476 | ;; define-derived-mode will make it inherit from text-mode-syntax-table. | 477 | ;; define-derived-mode will make it inherit from text-mode-syntax-table. |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 3699f5bab02..03e8225f0c5 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1974,7 +1974,11 @@ and `read-file-name-function'." | |||
| 1974 | ;; minibuffer-completing-file-name is a variable used internally in minibuf.c | 1974 | ;; minibuffer-completing-file-name is a variable used internally in minibuf.c |
| 1975 | ;; to determine whether to use minibuffer-local-filename-completion-map or | 1975 | ;; to determine whether to use minibuffer-local-filename-completion-map or |
| 1976 | ;; minibuffer-local-completion-map. It shouldn't be exported to Elisp. | 1976 | ;; minibuffer-local-completion-map. It shouldn't be exported to Elisp. |
| 1977 | (make-obsolete-variable 'minibuffer-completing-file-name nil "24.1") | 1977 | ;; FIXME: Actually, it is also used in rfn-eshadow.el we'd otherwise have to |
| 1978 | ;; use (eq minibuffer-completion-table #'read-file-name-internal), which is | ||
| 1979 | ;; probably even worse. Maybe We should add some read-file-name-setup-hook | ||
| 1980 | ;; instead, but for now, let's keep this non-obsolete. | ||
| 1981 | ;;(make-obsolete-variable 'minibuffer-completing-file-name nil "24.1" 'get) | ||
| 1978 | 1982 | ||
| 1979 | (defun read-file-name-default (prompt &optional dir default-filename mustmatch initial predicate) | 1983 | (defun read-file-name-default (prompt &optional dir default-filename mustmatch initial predicate) |
| 1980 | "Default method for reading file names. | 1984 | "Default method for reading file names. |
diff --git a/lisp/proced.el b/lisp/proced.el index ddc4ed1db14..4436129ce16 100644 --- a/lisp/proced.el +++ b/lisp/proced.el | |||
| @@ -1735,8 +1735,9 @@ After sending the signal, this command runs the normal hook | |||
| 1735 | (pnum (if (= 1 (length process-alist)) | 1735 | (pnum (if (= 1 (length process-alist)) |
| 1736 | "1 process" | 1736 | "1 process" |
| 1737 | (format "%d processes" (length process-alist)))) | 1737 | (format "%d processes" (length process-alist)))) |
| 1738 | (completion-annotate-function | 1738 | (completion-extra-properties |
| 1739 | (lambda (s) (cdr (assoc s proced-signal-list))))) | 1739 | '(:annotation-function |
| 1740 | (lambda (s) (cdr (assoc s proced-signal-list)))))) | ||
| 1740 | (setq signal | 1741 | (setq signal |
| 1741 | (completing-read (concat "Send signal [" pnum | 1742 | (completing-read (concat "Send signal [" pnum |
| 1742 | "] (default TERM): ") | 1743 | "] (default TERM): ") |
diff --git a/lisp/server.el b/lisp/server.el index c421ee09812..04d35695c57 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -235,9 +235,10 @@ If local sockets are not supported, this is nil.") | |||
| 235 | (defun server-clients-with (property value) | 235 | (defun server-clients-with (property value) |
| 236 | "Return a list of clients with PROPERTY set to VALUE." | 236 | "Return a list of clients with PROPERTY set to VALUE." |
| 237 | (let (result) | 237 | (let (result) |
| 238 | (dolist (proc server-clients result) | 238 | (dolist (proc server-clients) |
| 239 | (when (equal value (process-get proc property)) | 239 | (when (equal value (process-get proc property)) |
| 240 | (push proc result))))) | 240 | (push proc result))) |
| 241 | result)) | ||
| 241 | 242 | ||
| 242 | (defun server-add-client (proc) | 243 | (defun server-add-client (proc) |
| 243 | "Create a client for process PROC, if it doesn't already have one. | 244 | "Create a client for process PROC, if it doesn't already have one. |
| @@ -1322,10 +1323,11 @@ specifically for the clients and did not exist before their request for it." | |||
| 1322 | "Ask before killing a server buffer." | 1323 | "Ask before killing a server buffer." |
| 1323 | (or (not server-buffer-clients) | 1324 | (or (not server-buffer-clients) |
| 1324 | (let ((res t)) | 1325 | (let ((res t)) |
| 1325 | (dolist (proc server-buffer-clients res) | 1326 | (dolist (proc server-buffer-clients) |
| 1326 | (when (and (memq proc server-clients) | 1327 | (when (and (memq proc server-clients) |
| 1327 | (eq (process-status proc) 'open)) | 1328 | (eq (process-status proc) 'open)) |
| 1328 | (setq res nil)))) | 1329 | (setq res nil))) |
| 1330 | res) | ||
| 1329 | (yes-or-no-p (format "Buffer `%s' still has clients; kill it? " | 1331 | (yes-or-no-p (format "Buffer `%s' still has clients; kill it? " |
| 1330 | (buffer-name (current-buffer)))))) | 1332 | (buffer-name (current-buffer)))))) |
| 1331 | 1333 | ||
| @@ -1333,10 +1335,11 @@ specifically for the clients and did not exist before their request for it." | |||
| 1333 | "Ask before exiting Emacs if it has live clients." | 1335 | "Ask before exiting Emacs if it has live clients." |
| 1334 | (or (not server-clients) | 1336 | (or (not server-clients) |
| 1335 | (let (live-client) | 1337 | (let (live-client) |
| 1336 | (dolist (proc server-clients live-client) | 1338 | (dolist (proc server-clients) |
| 1337 | (when (memq t (mapcar 'buffer-live-p (process-get | 1339 | (when (memq t (mapcar 'buffer-live-p (process-get |
| 1338 | proc 'buffers))) | 1340 | proc 'buffers))) |
| 1339 | (setq live-client t)))) | 1341 | (setq live-client t))) |
| 1342 | live-client) | ||
| 1340 | (yes-or-no-p "This Emacs session has clients; exit anyway? "))) | 1343 | (yes-or-no-p "This Emacs session has clients; exit anyway? "))) |
| 1341 | 1344 | ||
| 1342 | (defun server-kill-buffer () | 1345 | (defun server-kill-buffer () |
diff --git a/lisp/simple.el b/lisp/simple.el index df32ce8fd08..76269c9ef9a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1156,7 +1156,7 @@ in *Help* buffer. See also the command `describe-char'." | |||
| 1156 | 1156 | ||
| 1157 | (defvar minibuffer-completing-symbol nil | 1157 | (defvar minibuffer-completing-symbol nil |
| 1158 | "Non-nil means completing a Lisp symbol in the minibuffer.") | 1158 | "Non-nil means completing a Lisp symbol in the minibuffer.") |
| 1159 | (make-obsolete-variable 'minibuffer-completing-symbol nil "24.1") | 1159 | (make-obsolete-variable 'minibuffer-completing-symbol nil "24.1" 'get) |
| 1160 | 1160 | ||
| 1161 | (defvar minibuffer-default nil | 1161 | (defvar minibuffer-default nil |
| 1162 | "The current default value or list of default values in the minibuffer. | 1162 | "The current default value or list of default values in the minibuffer. |