diff options
| author | Stefan Kangas | 2020-08-24 03:28:48 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-08-24 04:09:47 +0200 |
| commit | 326fdb9ec05ab5e4aec0c7064272bb3d223e9875 (patch) | |
| tree | 115493095100cb5e2628263868bc2265aeb7dfc7 /lisp/term.el | |
| parent | 631c73b28010dd80c7c909a291d356ab91ea2eae (diff) | |
| download | emacs-326fdb9ec05ab5e4aec0c7064272bb3d223e9875.tar.gz emacs-326fdb9ec05ab5e4aec0c7064272bb3d223e9875.zip | |
Remove many items obsolete since Emacs 23.2 and 23.3
* lisp/allout.el (allout-init):
* lisp/emacs-lisp/shadow.el (shadows-compare-text-p):
* lisp/ffap.el (ffap-version):
* lisp/filecache.el (file-cache-choose-completion):
* lisp/help.el (print-help-return-message):
* lisp/image-mode.el (image-mode-maybe):
* lisp/imenu.el (imenu-example--name-and-position):
* lisp/international/mule-cmds.el (princ-list):
* lisp/mail/rmail.el (rmail-highlight-face):
* lisp/minibuffer.el (read-file-name-predicate):
* lisp/mouse.el (mouse-choose-completion):
* lisp/progmodes/cc-cmds.el (c-forward-into-nomenclature):
* lisp/progmodes/xscheme.el
(advertised-xscheme-send-previous-expression):
* lisp/simple.el (completion-base-size)
(choose-completion-delete-max-match, exchange-dot-and-mark):
* lisp/subr.el (eval-next-after-load):
* lisp/term.el (term-dynamic-simple-complete):
Remove items, obsolete since Emacs 23.2 and 23.3.
* doc/misc/cc-mode.texi (Movement Commands): Doc fix.
* doc/lispref/help.texi (Accessing Documentation):
* lisp/emacs-lisp/edebug.el (edebug-wrap-def-body):
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/progmodes/idlwave.el (idlwave-make-modified-completion-map-xemacs)
(idlwave-make-modified-completion-map-emacs)
(idlwave-choose-completion):
* lisp/progmodes/vhdl-mode.el:
* lisp/term.el (term-dynamic-list-completions):
Remove references to 'mouse-choose-completion'.
* lisp/image-mode.el (image-mode-to-text):
Remove reference to 'image-mode-maybe'.
* lisp/mail/rmail.el (rmail-highlight-headers):
Use 'rmail-highlight' face instead of 'rmail-highlight-face'.
* lisp/progmodes/antlr-mode.el (antlr-mode-map, antlr-mode-menu):
Remove reference to 'c-forward-into-nomenclature'.
* lisp/simple.el (choose-completion, choose-completion-string)
(completion-list-mode, completion-setup-function): Don't use
'completion-base-size'.
; * etc/NEWS: List removed items.
This was discussed in
https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00400.html
Diffstat (limited to 'lisp/term.el')
| -rw-r--r-- | lisp/term.el | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/lisp/term.el b/lisp/term.el index 99f1bf4f54f..3c65b63911b 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -4110,53 +4110,6 @@ see `expand-file-name' and `substitute-in-file-name'. For completion see | |||
| 4110 | (term-dynamic-complete-filename)) | 4110 | (term-dynamic-complete-filename)) |
| 4111 | 4111 | ||
| 4112 | 4112 | ||
| 4113 | (defun term-dynamic-simple-complete (stub candidates) | ||
| 4114 | "Dynamically complete STUB from CANDIDATES list. | ||
| 4115 | This function inserts completion characters at point by completing STUB from | ||
| 4116 | the strings in CANDIDATES. A completions listing may be shown in a help buffer | ||
| 4117 | if completion is ambiguous. | ||
| 4118 | |||
| 4119 | Returns nil if no completion was inserted. | ||
| 4120 | Returns `sole' if completed with the only completion match. | ||
| 4121 | Returns `shortest' if completed with the shortest of the completion matches. | ||
| 4122 | Returns `partial' if completed as far as possible with the completion matches. | ||
| 4123 | Returns `listed' if a completion listing was shown. | ||
| 4124 | |||
| 4125 | See also `term-dynamic-complete-filename'." | ||
| 4126 | (declare (obsolete completion-in-region "23.2")) | ||
| 4127 | (let* ((completion-ignore-case nil) | ||
| 4128 | (completions (all-completions stub candidates))) | ||
| 4129 | (cond ((null completions) | ||
| 4130 | (message "No completions of %s" stub) | ||
| 4131 | nil) | ||
| 4132 | ((= 1 (length completions)) ; Gotcha! | ||
| 4133 | (let ((completion (car completions))) | ||
| 4134 | (if (string-equal completion stub) | ||
| 4135 | (message "Sole completion") | ||
| 4136 | (insert (substring completion (length stub))) | ||
| 4137 | (message "Completed")) | ||
| 4138 | (when term-completion-addsuffix (insert " ")) | ||
| 4139 | 'sole)) | ||
| 4140 | (t ; There's no unique completion. | ||
| 4141 | (let ((completion (try-completion stub candidates))) | ||
| 4142 | ;; Insert the longest substring. | ||
| 4143 | (insert (substring completion (length stub))) | ||
| 4144 | (cond ((and term-completion-recexact term-completion-addsuffix | ||
| 4145 | (string-equal stub completion) | ||
| 4146 | (member completion completions)) | ||
| 4147 | ;; It's not unique, but user wants shortest match. | ||
| 4148 | (insert " ") | ||
| 4149 | (message "Completed shortest") | ||
| 4150 | 'shortest) | ||
| 4151 | ((or term-completion-autolist | ||
| 4152 | (string-equal stub completion)) | ||
| 4153 | ;; It's not unique, list possible completions. | ||
| 4154 | (term-dynamic-list-completions completions) | ||
| 4155 | 'listed) | ||
| 4156 | (t | ||
| 4157 | (message "Partially completed") | ||
| 4158 | 'partial))))))) | ||
| 4159 | |||
| 4160 | (defun term-dynamic-list-filename-completions () | 4113 | (defun term-dynamic-list-filename-completions () |
| 4161 | "List in help buffer possible completions of the filename at point." | 4114 | "List in help buffer possible completions of the filename at point." |
| 4162 | (interactive) | 4115 | (interactive) |
| @@ -4186,7 +4139,7 @@ Typing SPC flushes the help buffer." | |||
| 4186 | (eq (window-buffer (posn-window (event-start first))) | 4139 | (eq (window-buffer (posn-window (event-start first))) |
| 4187 | (get-buffer "*Completions*")) | 4140 | (get-buffer "*Completions*")) |
| 4188 | (memq (key-binding key) | 4141 | (memq (key-binding key) |
| 4189 | '(mouse-choose-completion choose-completion)))) | 4142 | '(choose-completion)))) |
| 4190 | ;; If the user does choose-completion with the mouse, | 4143 | ;; If the user does choose-completion with the mouse, |
| 4191 | ;; execute the command, then delete the completion window. | 4144 | ;; execute the command, then delete the completion window. |
| 4192 | (progn | 4145 | (progn |