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 | |
| 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')
| -rw-r--r-- | lisp/allout.el | 15 | ||||
| -rw-r--r-- | lisp/comint.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/shadow.el | 3 | ||||
| -rw-r--r-- | lisp/ffap.el | 2 | ||||
| -rw-r--r-- | lisp/filecache.el | 3 | ||||
| -rw-r--r-- | lisp/help.el | 1 | ||||
| -rw-r--r-- | lisp/image-mode.el | 4 | ||||
| -rw-r--r-- | lisp/imenu.el | 22 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 6 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 22 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 5 | ||||
| -rw-r--r-- | lisp/mouse.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/antlr-mode.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 13 | ||||
| -rw-r--r-- | lisp/progmodes/idlwave.el | 10 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/xscheme.el | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 40 | ||||
| -rw-r--r-- | lisp/subr.el | 7 | ||||
| -rw-r--r-- | lisp/term.el | 49 |
20 files changed, 14 insertions, 203 deletions
diff --git a/lisp/allout.el b/lisp/allout.el index 05d9153a31d..955b7000cbf 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -62,8 +62,7 @@ | |||
| 62 | ;; The outline menubar additions provide quick reference to many of the | 62 | ;; The outline menubar additions provide quick reference to many of the |
| 63 | ;; features. See the docstring of the variables `allout-layout' and | 63 | ;; features. See the docstring of the variables `allout-layout' and |
| 64 | ;; `allout-auto-activation' for details on automatic activation of | 64 | ;; `allout-auto-activation' for details on automatic activation of |
| 65 | ;; `allout-mode' as a minor mode. (`allout-init' is deprecated in favor of | 65 | ;; `allout-mode' as a minor mode. |
| 66 | ;; a purely customization-based method.) | ||
| 67 | ;; | 66 | ;; |
| 68 | ;; Note -- the lines beginning with `;;;_' are outline topic headers. | 67 | ;; Note -- the lines beginning with `;;;_' are outline topic headers. |
| 69 | ;; Customize `allout-auto-activation' to enable, then revisit this | 68 | ;; Customize `allout-auto-activation' to enable, then revisit this |
| @@ -1627,18 +1626,6 @@ non-nil in a lasting way.") | |||
| 1627 | "If t, `allout-mode's last deactivation was deliberate. | 1626 | "If t, `allout-mode's last deactivation was deliberate. |
| 1628 | So `allout-post-command-business' should not reactivate it...") | 1627 | So `allout-post-command-business' should not reactivate it...") |
| 1629 | (make-variable-buffer-local 'allout-explicitly-deactivated) | 1628 | (make-variable-buffer-local 'allout-explicitly-deactivated) |
| 1630 | ;;;_ > allout-init (mode) | ||
| 1631 | (defun allout-init (mode) | ||
| 1632 | "DEPRECATED - configure allout activation by customizing | ||
| 1633 | `allout-auto-activation'. This function remains around, limited | ||
| 1634 | from what it did before, for backwards compatibility. | ||
| 1635 | |||
| 1636 | MODE is the activation mode - see `allout-auto-activation' for | ||
| 1637 | valid values." | ||
| 1638 | (declare (obsolete allout-auto-activation "23.3")) | ||
| 1639 | (customize-set-variable 'allout-auto-activation (format "%s" mode)) | ||
| 1640 | (format "%s" mode)) | ||
| 1641 | |||
| 1642 | ;;;_ > allout-setup-menubar () | 1629 | ;;;_ > allout-setup-menubar () |
| 1643 | (defun allout-setup-menubar () | 1630 | (defun allout-setup-menubar () |
| 1644 | "Populate the current buffer's menubar with `allout-mode' stuff." | 1631 | "Populate the current buffer's menubar with `allout-mode' stuff." |
diff --git a/lisp/comint.el b/lisp/comint.el index 092902d865e..be0e32b9e09 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -3450,7 +3450,7 @@ the completions." | |||
| 3450 | (eq (window-buffer (posn-window (event-start first))) | 3450 | (eq (window-buffer (posn-window (event-start first))) |
| 3451 | (get-buffer "*Completions*")) | 3451 | (get-buffer "*Completions*")) |
| 3452 | (memq (key-binding key) | 3452 | (memq (key-binding key) |
| 3453 | '(mouse-choose-completion choose-completion)))) | 3453 | '(choose-completion)))) |
| 3454 | ;; If the user does choose-completion with the mouse, | 3454 | ;; If the user does choose-completion with the mouse, |
| 3455 | ;; execute the command, then delete the completion window. | 3455 | ;; execute the command, then delete the completion window. |
| 3456 | (progn | 3456 | (progn |
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el index 4ff129e367a..dd614dd792c 100644 --- a/lisp/emacs-lisp/shadow.el +++ b/lisp/emacs-lisp/shadow.el | |||
| @@ -55,9 +55,6 @@ | |||
| 55 | :prefix "load-path-shadows-" | 55 | :prefix "load-path-shadows-" |
| 56 | :group 'lisp) | 56 | :group 'lisp) |
| 57 | 57 | ||
| 58 | (define-obsolete-variable-alias 'shadows-compare-text-p | ||
| 59 | 'load-path-shadows-compare-text "23.3") | ||
| 60 | |||
| 61 | (defcustom load-path-shadows-compare-text nil | 58 | (defcustom load-path-shadows-compare-text nil |
| 62 | "If non-nil, then shadowing files are reported only if their text differs. | 59 | "If non-nil, then shadowing files are reported only if their text differs. |
| 63 | This is slower, but filters out some innocuous shadowing." | 60 | This is slower, but filters out some innocuous shadowing." |
diff --git a/lisp/ffap.el b/lisp/ffap.el index 28f566dd93a..af7d84cd099 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -110,8 +110,6 @@ | |||
| 110 | (require 'url-parse) | 110 | (require 'url-parse) |
| 111 | (require 'thingatpt) | 111 | (require 'thingatpt) |
| 112 | 112 | ||
| 113 | (define-obsolete-variable-alias 'ffap-version 'emacs-version "23.2") | ||
| 114 | |||
| 115 | (defgroup ffap nil | 113 | (defgroup ffap nil |
| 116 | "Find file or URL at point." | 114 | "Find file or URL at point." |
| 117 | :group 'matching | 115 | :group 'matching |
diff --git a/lisp/filecache.el b/lisp/filecache.el index 3c07a494206..113d28cf75e 100644 --- a/lisp/filecache.el +++ b/lisp/filecache.el | |||
| @@ -614,9 +614,6 @@ the name is considered already unique; only the second substitution | |||
| 614 | (select-window (active-minibuffer-window)) | 614 | (select-window (active-minibuffer-window)) |
| 615 | (file-cache-minibuffer-complete nil))) | 615 | (file-cache-minibuffer-complete nil))) |
| 616 | 616 | ||
| 617 | (define-obsolete-function-alias 'file-cache-mouse-choose-completion | ||
| 618 | #'file-cache-choose-completion "23.2") | ||
| 619 | |||
| 620 | (defun file-cache-complete () | 617 | (defun file-cache-complete () |
| 621 | "Complete the word at point, using the filecache." | 618 | "Complete the word at point, using the filecache." |
| 622 | (interactive) | 619 | (interactive) |
diff --git a/lisp/help.el b/lisp/help.el index b7d867eb70e..1b0149616f2 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -131,7 +131,6 @@ This is a list | |||
| 131 | (WINDOW . quit-window) do quit-window, then select WINDOW. | 131 | (WINDOW . quit-window) do quit-window, then select WINDOW. |
| 132 | (WINDOW BUF START POINT) display BUF at START, POINT, then select WINDOW.") | 132 | (WINDOW BUF START POINT) display BUF at START, POINT, then select WINDOW.") |
| 133 | 133 | ||
| 134 | (define-obsolete-function-alias 'print-help-return-message 'help-print-return-message "23.2") | ||
| 135 | (defun help-print-return-message (&optional function) | 134 | (defun help-print-return-message (&optional function) |
| 136 | "Display or return message saying how to restore windows after help command. | 135 | "Display or return message saying how to restore windows after help command. |
| 137 | This function assumes that `standard-output' is the help buffer. | 136 | This function assumes that `standard-output' is the help buffer. |
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 4c719f7cda2..032ebf38733 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -718,7 +718,7 @@ A non-mage major mode found from `auto-mode-alist' or fundamental mode | |||
| 718 | displays an image file as text." | 718 | displays an image file as text." |
| 719 | ;; image-mode-as-text = normal-mode + image-minor-mode | 719 | ;; image-mode-as-text = normal-mode + image-minor-mode |
| 720 | (let ((previous-image-type image-type)) ; preserve `image-type' | 720 | (let ((previous-image-type image-type)) ; preserve `image-type' |
| 721 | (major-mode-restore '(image-mode image-mode-maybe image-mode-as-text)) | 721 | (major-mode-restore '(image-mode image-mode-as-text)) |
| 722 | ;; Restore `image-type' after `kill-all-local-variables' in `normal-mode'. | 722 | ;; Restore `image-type' after `kill-all-local-variables' in `normal-mode'. |
| 723 | (setq image-type previous-image-type) | 723 | (setq image-type previous-image-type) |
| 724 | ;; Enable image minor mode with `C-c C-c'. | 724 | ;; Enable image minor mode with `C-c C-c'. |
| @@ -768,8 +768,6 @@ on these modes." | |||
| 768 | (if (image-get-display-property) | 768 | (if (image-get-display-property) |
| 769 | "text" "an image or hex") "."))) | 769 | "text" "an image or hex") "."))) |
| 770 | 770 | ||
| 771 | (define-obsolete-function-alias 'image-mode-maybe 'image-mode "23.2") | ||
| 772 | |||
| 773 | (defun image-toggle-display-text () | 771 | (defun image-toggle-display-text () |
| 774 | "Show the image file as text. | 772 | "Show the image file as text. |
| 775 | Remove text properties that display the image." | 773 | Remove text properties that display the image." |
diff --git a/lisp/imenu.el b/lisp/imenu.el index 1949f2f48f7..3a16dcb9ac3 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el | |||
| @@ -316,28 +316,6 @@ PREVPOS is the variable in which we store the last position displayed." | |||
| 316 | ) | 316 | ) |
| 317 | 317 | ||
| 318 | 318 | ||
| 319 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 320 | ;;;; | ||
| 321 | ;;;; Some examples of functions utilizing the framework of this | ||
| 322 | ;;;; package. | ||
| 323 | ;;;; | ||
| 324 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 325 | |||
| 326 | ;; FIXME: This was the only imenu-example-* definition actually used, | ||
| 327 | ;; by cperl-mode.el. Now cperl-mode has its own copy, so these can | ||
| 328 | ;; all be removed. | ||
| 329 | (defun imenu-example--name-and-position () | ||
| 330 | "Return the current/previous sexp and its (beginning) location. | ||
| 331 | Don't move point." | ||
| 332 | (declare (obsolete "use your own function instead." "23.2")) | ||
| 333 | (save-excursion | ||
| 334 | (forward-sexp -1) | ||
| 335 | ;; [ydi] modified for imenu-use-markers | ||
| 336 | (let ((beg (if imenu-use-markers (point-marker) (point))) | ||
| 337 | (end (progn (forward-sexp) (point)))) | ||
| 338 | (cons (buffer-substring beg end) | ||
| 339 | beg)))) | ||
| 340 | |||
| 341 | ;;; | 319 | ;;; |
| 342 | ;;; Lisp | 320 | ;;; Lisp |
| 343 | ;;; | 321 | ;;; |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 5fe931dd9bb..02dacaf0a28 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2070,12 +2070,6 @@ See `set-language-info-alist' for use in programs." | |||
| 2070 | "Do various unibyte-mode setups for language environment LANGUAGE-NAME." | 2070 | "Do various unibyte-mode setups for language environment LANGUAGE-NAME." |
| 2071 | (set-display-table-and-terminal-coding-system language-name)) | 2071 | (set-display-table-and-terminal-coding-system language-name)) |
| 2072 | 2072 | ||
| 2073 | (defun princ-list (&rest args) | ||
| 2074 | "Print all arguments with `princ', then print \"\\n\"." | ||
| 2075 | (declare (obsolete "use mapc and princ instead." "23.3")) | ||
| 2076 | (mapc #'princ args) | ||
| 2077 | (princ "\n")) | ||
| 2078 | |||
| 2079 | (put 'describe-specified-language-support 'apropos-inhibit t) | 2073 | (put 'describe-specified-language-support 'apropos-inhibit t) |
| 2080 | 2074 | ||
| 2081 | ;; Print language-specific information such as input methods, | 2075 | ;; Print language-specific information such as input methods, |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 312baffb901..f14025a93a8 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -417,20 +417,6 @@ The variable `rmail-highlighted-headers' specifies which headers." | |||
| 417 | :group 'rmail-headers | 417 | :group 'rmail-headers |
| 418 | :version "22.1") | 418 | :version "22.1") |
| 419 | 419 | ||
| 420 | ;; This was removed in Emacs 23.1 with no notification, an unnecessary | ||
| 421 | ;; incompatible change. | ||
| 422 | (defcustom rmail-highlight-face 'rmail-highlight | ||
| 423 | "Face used by Rmail for highlighting headers." | ||
| 424 | ;; Note that nil doesn't actually mean use the default face, it | ||
| 425 | ;; means use either bold or highlight. It's not worth fixing this | ||
| 426 | ;; now that this is obsolete. | ||
| 427 | :type '(choice (const :tag "Default" nil) | ||
| 428 | face) | ||
| 429 | :group 'rmail-headers) | ||
| 430 | (make-obsolete-variable 'rmail-highlight-face | ||
| 431 | "customize the face `rmail-highlight' instead." | ||
| 432 | "23.2") | ||
| 433 | |||
| 434 | (defface rmail-header-name | 420 | (defface rmail-header-name |
| 435 | '((t (:inherit font-lock-function-name-face))) | 421 | '((t (:inherit font-lock-function-name-face))) |
| 436 | "Face to use for highlighting the header names. | 422 | "Face to use for highlighting the header names. |
| @@ -3012,7 +2998,7 @@ using the coding system CODING." | |||
| 3012 | 2998 | ||
| 3013 | (defun rmail-highlight-headers () | 2999 | (defun rmail-highlight-headers () |
| 3014 | "Highlight the headers specified by `rmail-highlighted-headers'. | 3000 | "Highlight the headers specified by `rmail-highlighted-headers'. |
| 3015 | Uses the face specified by `rmail-highlight-face'." | 3001 | Uses the face `rmail-highlight'." |
| 3016 | (if rmail-highlighted-headers | 3002 | (if rmail-highlighted-headers |
| 3017 | (save-excursion | 3003 | (save-excursion |
| 3018 | (search-forward "\n\n" nil 'move) | 3004 | (search-forward "\n\n" nil 'move) |
| @@ -3020,11 +3006,7 @@ Uses the face specified by `rmail-highlight-face'." | |||
| 3020 | (narrow-to-region (point-min) (point)) | 3006 | (narrow-to-region (point-min) (point)) |
| 3021 | (let ((case-fold-search t) | 3007 | (let ((case-fold-search t) |
| 3022 | (inhibit-read-only t) | 3008 | (inhibit-read-only t) |
| 3023 | ;; When rmail-highlight-face is removed, just | 3009 | (face 'rmail-highlight) |
| 3024 | ;; use 'rmail-highlight here. | ||
| 3025 | (face (or rmail-highlight-face | ||
| 3026 | (if (face-differs-from-default-p 'bold) | ||
| 3027 | 'bold 'highlight))) | ||
| 3028 | ;; List of overlays to reuse. | 3010 | ;; List of overlays to reuse. |
| 3029 | (overlays rmail-overlay-list)) | 3011 | (overlays rmail-overlay-list)) |
| 3030 | (goto-char (point-min)) | 3012 | (goto-char (point-min)) |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 641a2e53152..1f2dcc47559 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -2539,11 +2539,6 @@ same as `substitute-in-file-name'." | |||
| 2539 | all)))))) | 2539 | all)))))) |
| 2540 | (file-error nil))) ;PCM often calls with invalid directories. | 2540 | (file-error nil))) ;PCM often calls with invalid directories. |
| 2541 | 2541 | ||
| 2542 | (defvar read-file-name-predicate nil | ||
| 2543 | "Current predicate used by `read-file-name-internal'.") | ||
| 2544 | (make-obsolete-variable 'read-file-name-predicate | ||
| 2545 | "use the regular PRED argument" "23.2") | ||
| 2546 | |||
| 2547 | (defun completion--sifn-requote (upos qstr) | 2542 | (defun completion--sifn-requote (upos qstr) |
| 2548 | ;; We're looking for `qpos' such that: | 2543 | ;; We're looking for `qpos' such that: |
| 2549 | ;; (equal (substring (substitute-in-file-name qstr) 0 upos) | 2544 | ;; (equal (substring (substitute-in-file-name qstr) 0 upos) |
diff --git a/lisp/mouse.el b/lisp/mouse.el index a06ca2a56ca..06fdca12b9c 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -2303,9 +2303,6 @@ and selects that window." | |||
| 2303 | ;; Few buffers--put them all in one pane. | 2303 | ;; Few buffers--put them all in one pane. |
| 2304 | (list (cons title alist)))) | 2304 | (list (cons title alist)))) |
| 2305 | 2305 | ||
| 2306 | (define-obsolete-function-alias | ||
| 2307 | 'mouse-choose-completion 'choose-completion "23.2") | ||
| 2308 | |||
| 2309 | ;; Font selection. | 2306 | ;; Font selection. |
| 2310 | 2307 | ||
| 2311 | (defun font-menu-add-default () | 2308 | (defun font-menu-add-default () |
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el index bf56a7ee49e..24e1f8831a0 100644 --- a/lisp/progmodes/antlr-mode.el +++ b/lisp/progmodes/antlr-mode.el | |||
| @@ -695,7 +695,7 @@ imenu." | |||
| 695 | (define-key map "\e\C-e" 'antlr-end-of-rule) | 695 | (define-key map "\e\C-e" 'antlr-end-of-rule) |
| 696 | (define-key map "\C-c\C-a" 'antlr-beginning-of-body) | 696 | (define-key map "\C-c\C-a" 'antlr-beginning-of-body) |
| 697 | (define-key map "\C-c\C-e" 'antlr-end-of-body) | 697 | (define-key map "\C-c\C-e" 'antlr-end-of-body) |
| 698 | (define-key map "\C-c\C-f" 'c-forward-into-nomenclature) | 698 | (define-key map "\C-c\C-f" 'subword-forward) |
| 699 | (define-key map "\C-c\C-b" 'c-backward-into-nomenclature) | 699 | (define-key map "\C-c\C-b" 'c-backward-into-nomenclature) |
| 700 | (define-key map "\C-c\C-c" 'comment-region) | 700 | (define-key map "\C-c\C-c" 'comment-region) |
| 701 | (define-key map "\C-c\C-v" 'antlr-hide-actions) | 701 | (define-key map "\C-c\C-v" 'antlr-hide-actions) |
| @@ -745,7 +745,7 @@ imenu." | |||
| 745 | ["Backward Statement" c-beginning-of-statement t] | 745 | ["Backward Statement" c-beginning-of-statement t] |
| 746 | ["Forward Statement" c-end-of-statement t] | 746 | ["Forward Statement" c-end-of-statement t] |
| 747 | ["Backward Into Nomencl." c-backward-into-nomenclature t] | 747 | ["Backward Into Nomencl." c-backward-into-nomenclature t] |
| 748 | ["Forward Into Nomencl." c-forward-into-nomenclature t]) | 748 | ["Forward Into Nomencl." subword-forward t]) |
| 749 | ["Indent Region" indent-region | 749 | ["Indent Region" indent-region |
| 750 | :active (and (not buffer-read-only) (c-region-is-active-p))] | 750 | :active (and (not buffer-read-only) (c-region-is-active-p))] |
| 751 | ["Comment Out Region" comment-region | 751 | ["Comment Out Region" comment-region |
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 1b557c41a5d..4425e275ac9 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -1554,19 +1554,6 @@ left out." | |||
| 1554 | (declare-function c-backward-subword "ext:cc-subword" (&optional arg)) | 1554 | (declare-function c-backward-subword "ext:cc-subword" (&optional arg)) |
| 1555 | 1555 | ||
| 1556 | ;; "nomenclature" functions + c-scope-operator. | 1556 | ;; "nomenclature" functions + c-scope-operator. |
| 1557 | (defun c-forward-into-nomenclature (&optional arg) | ||
| 1558 | "Compatibility alias for `c-forward-subword'." | ||
| 1559 | (interactive "p") | ||
| 1560 | (if (fboundp 'subword-mode) | ||
| 1561 | (progn | ||
| 1562 | (require 'subword) | ||
| 1563 | (subword-forward arg)) | ||
| 1564 | (require 'cc-subword) | ||
| 1565 | (c-forward-subword arg))) | ||
| 1566 | (make-obsolete 'c-forward-into-nomenclature | ||
| 1567 | (if (fboundp 'subword-mode) 'subword-forward 'c-forward-subword) | ||
| 1568 | "23.2") | ||
| 1569 | |||
| 1570 | (defun c-backward-into-nomenclature (&optional arg) | 1557 | (defun c-backward-into-nomenclature (&optional arg) |
| 1571 | "Compatibility alias for `c-backward-subword'." | 1558 | "Compatibility alias for `c-backward-subword'." |
| 1572 | (interactive "p") | 1559 | (interactive "p") |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 153f2578bf1..90e56943f20 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -7042,12 +7042,10 @@ If these don't exist, a letter in the string is automatically selected." | |||
| 7042 | #'idlwave-make-modified-completion-map "28.1") | 7042 | #'idlwave-make-modified-completion-map "28.1") |
| 7043 | 7043 | ||
| 7044 | (defun idlwave-make-modified-completion-map (old-map) | 7044 | (defun idlwave-make-modified-completion-map (old-map) |
| 7045 | "Replace `choose-completion' and `mouse-choose-completion' in OLD-MAP." | 7045 | "Replace `choose-completion' in OLD-MAP." |
| 7046 | (let ((new-map (copy-keymap old-map))) | 7046 | (let ((new-map (copy-keymap old-map))) |
| 7047 | (substitute-key-definition | 7047 | (substitute-key-definition |
| 7048 | 'choose-completion 'idlwave-choose-completion new-map) | 7048 | 'choose-completion 'idlwave-choose-completion new-map) |
| 7049 | (substitute-key-definition | ||
| 7050 | 'mouse-choose-completion 'idlwave-mouse-choose-completion new-map) | ||
| 7051 | (define-key new-map [mouse-3] 'idlwave-mouse-completion-help) | 7049 | (define-key new-map [mouse-3] 'idlwave-mouse-completion-help) |
| 7052 | new-map)) | 7050 | new-map)) |
| 7053 | 7051 | ||
| @@ -7056,10 +7054,8 @@ If these don't exist, a letter in the string is automatically selected." | |||
| 7056 | (interactive (list last-nonmenu-event)) | 7054 | (interactive (list last-nonmenu-event)) |
| 7057 | (apply 'idlwave-choose 'choose-completion args)) | 7055 | (apply 'idlwave-choose 'choose-completion args)) |
| 7058 | 7056 | ||
| 7059 | (defun idlwave-mouse-choose-completion (&rest args) | 7057 | (define-obsolete-function-alias 'idlwave-mouse-choose-completion |
| 7060 | "Click on an alternative in the `*Completions*' buffer to choose it." | 7058 | #'idlwave-choose-completion "28.1") |
| 7061 | (interactive "e") | ||
| 7062 | (apply 'idlwave-choose 'mouse-choose-completion args)) | ||
| 7063 | 7059 | ||
| 7064 | ;;---------------------------------------------------------------------- | 7060 | ;;---------------------------------------------------------------------- |
| 7065 | ;;---------------------------------------------------------------------- | 7061 | ;;---------------------------------------------------------------------- |
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 9cd84cf713b..3d66483b83e 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -2304,10 +2304,6 @@ Ignore byte-compiler warnings you might see." | |||
| 2304 | (defvaralias 'vhdl-last-input-event 'last-input-char) | 2304 | (defvaralias 'vhdl-last-input-event 'last-input-char) |
| 2305 | (defvaralias 'vhdl-last-input-event 'last-input-event)) | 2305 | (defvaralias 'vhdl-last-input-event 'last-input-event)) |
| 2306 | 2306 | ||
| 2307 | ;; `help-print-return-message' changed to `print-help-return-message' in Emacs | ||
| 2308 | ;;;(unless (fboundp 'help-print-return-message) | ||
| 2309 | ;;; (defalias 'help-print-return-message 'print-help-return-message)) | ||
| 2310 | |||
| 2311 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 2307 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 2312 | ;; Compatibility with older VHDL Mode versions | 2308 | ;; Compatibility with older VHDL Mode versions |
| 2313 | 2309 | ||
diff --git a/lisp/progmodes/xscheme.el b/lisp/progmodes/xscheme.el index 8dfb3a40dd1..c6997862f7f 100644 --- a/lisp/progmodes/xscheme.el +++ b/lisp/progmodes/xscheme.el | |||
| @@ -446,8 +446,6 @@ Entry to this mode runs `scheme-mode-hook' and then | |||
| 446 | (scheme-interaction-mode-initialize) | 446 | (scheme-interaction-mode-initialize) |
| 447 | (scheme-interaction-mode t))))) | 447 | (scheme-interaction-mode t))))) |
| 448 | 448 | ||
| 449 | (define-obsolete-function-alias 'advertised-xscheme-send-previous-expression | ||
| 450 | 'xscheme-send-previous-expression "23.2") | ||
| 451 | 449 | ||
| 452 | ;;;; Debugger Mode | 450 | ;;;; Debugger Mode |
| 453 | 451 | ||
diff --git a/lisp/simple.el b/lisp/simple.el index fa6e154004b..eedbff2d087 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6122,8 +6122,6 @@ Does not set point. Does nothing if mark ring is empty." | |||
| 6122 | (pop mark-ring)) | 6122 | (pop mark-ring)) |
| 6123 | (deactivate-mark)) | 6123 | (deactivate-mark)) |
| 6124 | 6124 | ||
| 6125 | (define-obsolete-function-alias | ||
| 6126 | 'exchange-dot-and-mark 'exchange-point-and-mark "23.3") | ||
| 6127 | (defun exchange-point-and-mark (&optional arg) | 6125 | (defun exchange-point-and-mark (&optional arg) |
| 6128 | "Put the mark where point is now, and point where the mark is now. | 6126 | "Put the mark where point is now, and point where the mark is now. |
| 6129 | This command works even when the mark is not active, | 6127 | This command works even when the mark is not active, |
| @@ -8409,18 +8407,6 @@ Called with three arguments (BEG END TEXT), it should replace the text | |||
| 8409 | between BEG and END with TEXT. Expected to be set buffer-locally | 8407 | between BEG and END with TEXT. Expected to be set buffer-locally |
| 8410 | in the *Completions* buffer.") | 8408 | in the *Completions* buffer.") |
| 8411 | 8409 | ||
| 8412 | (defvar completion-base-size nil | ||
| 8413 | "Number of chars before point not involved in completion. | ||
| 8414 | This is a local variable in the completion list buffer. | ||
| 8415 | It refers to the chars in the minibuffer if completing in the | ||
| 8416 | minibuffer, or in `completion-reference-buffer' otherwise. | ||
| 8417 | Only characters in the field at point are included. | ||
| 8418 | |||
| 8419 | If nil, Emacs determines which part of the tail end of the | ||
| 8420 | buffer's text is involved in completion by comparing the text | ||
| 8421 | directly.") | ||
| 8422 | (make-obsolete-variable 'completion-base-size 'completion-base-position "23.2") | ||
| 8423 | |||
| 8424 | (defun delete-completion-window () | 8410 | (defun delete-completion-window () |
| 8425 | "Delete the completion list window. | 8411 | "Delete the completion list window. |
| 8426 | Go to the window from which completion was requested." | 8412 | Go to the window from which completion was requested." |
| @@ -8474,7 +8460,6 @@ If EVENT, use EVENT's position to determine the starting position." | |||
| 8474 | (run-hooks 'mouse-leave-buffer-hook) | 8460 | (run-hooks 'mouse-leave-buffer-hook) |
| 8475 | (with-current-buffer (window-buffer (posn-window (event-start event))) | 8461 | (with-current-buffer (window-buffer (posn-window (event-start event))) |
| 8476 | (let ((buffer completion-reference-buffer) | 8462 | (let ((buffer completion-reference-buffer) |
| 8477 | (base-size completion-base-size) | ||
| 8478 | (base-position completion-base-position) | 8463 | (base-position completion-base-position) |
| 8479 | (insert-function completion-list-insert-choice-function) | 8464 | (insert-function completion-list-insert-choice-function) |
| 8480 | (choice | 8465 | (choice |
| @@ -8501,10 +8486,6 @@ If EVENT, use EVENT's position to determine the starting position." | |||
| 8501 | (choose-completion-string | 8486 | (choose-completion-string |
| 8502 | choice buffer | 8487 | choice buffer |
| 8503 | (or base-position | 8488 | (or base-position |
| 8504 | (when base-size | ||
| 8505 | ;; Someone's using old completion code that doesn't know | ||
| 8506 | ;; about base-position yet. | ||
| 8507 | (list (+ base-size (field-beginning)))) | ||
| 8508 | ;; If all else fails, just guess. | 8489 | ;; If all else fails, just guess. |
| 8509 | (list (choose-completion-guess-base-position choice))) | 8490 | (list (choose-completion-guess-base-position choice))) |
| 8510 | insert-function))))) | 8491 | insert-function))))) |
| @@ -8532,10 +8513,6 @@ If EVENT, use EVENT's position to determine the starting position." | |||
| 8532 | (forward-char 1)) | 8513 | (forward-char 1)) |
| 8533 | (point)))) | 8514 | (point)))) |
| 8534 | 8515 | ||
| 8535 | (defun choose-completion-delete-max-match (string) | ||
| 8536 | (declare (obsolete choose-completion-guess-base-position "23.2")) | ||
| 8537 | (delete-region (choose-completion-guess-base-position string) (point))) | ||
| 8538 | |||
| 8539 | (defvar choose-completion-string-functions nil | 8516 | (defvar choose-completion-string-functions nil |
| 8540 | "Functions that may override the normal insertion of a completion choice. | 8517 | "Functions that may override the normal insertion of a completion choice. |
| 8541 | These functions are called in order with three arguments: | 8518 | These functions are called in order with three arguments: |
| @@ -8564,13 +8541,6 @@ back on `completion-list-insert-choice-function' when nil." | |||
| 8564 | ;; unless it is reading a file name and CHOICE is a directory, | 8541 | ;; unless it is reading a file name and CHOICE is a directory, |
| 8565 | ;; or completion-no-auto-exit is non-nil. | 8542 | ;; or completion-no-auto-exit is non-nil. |
| 8566 | 8543 | ||
| 8567 | ;; Some older code may call us passing `base-size' instead of | ||
| 8568 | ;; `base-position'. It's difficult to make any use of `base-size', | ||
| 8569 | ;; so we just ignore it. | ||
| 8570 | (unless (consp base-position) | ||
| 8571 | (message "Obsolete `base-size' passed to choose-completion-string") | ||
| 8572 | (setq base-position nil)) | ||
| 8573 | |||
| 8574 | (let* ((buffer (or buffer completion-reference-buffer)) | 8544 | (let* ((buffer (or buffer completion-reference-buffer)) |
| 8575 | (mini-p (minibufferp buffer))) | 8545 | (mini-p (minibufferp buffer))) |
| 8576 | ;; If BUFFER is a minibuffer, barf unless it's the currently | 8546 | ;; If BUFFER is a minibuffer, barf unless it's the currently |
| @@ -8626,8 +8596,7 @@ Type \\<completion-list-mode-map>\\[choose-completion] in the completion list\ | |||
| 8626 | to select the completion near point. | 8596 | to select the completion near point. |
| 8627 | Or click to select one with the mouse. | 8597 | Or click to select one with the mouse. |
| 8628 | 8598 | ||
| 8629 | \\{completion-list-mode-map}" | 8599 | \\{completion-list-mode-map}") |
| 8630 | (set (make-local-variable 'completion-base-size) nil)) | ||
| 8631 | 8600 | ||
| 8632 | (defun completion-list-mode-finish () | 8601 | (defun completion-list-mode-finish () |
| 8633 | "Finish setup of the completions buffer. | 8602 | "Finish setup of the completions buffer. |
| @@ -8664,14 +8633,11 @@ Called from `temp-buffer-show-hook'." | |||
| 8664 | (if minibuffer-completing-file-name | 8633 | (if minibuffer-completing-file-name |
| 8665 | (file-name-as-directory | 8634 | (file-name-as-directory |
| 8666 | (expand-file-name | 8635 | (expand-file-name |
| 8667 | (buffer-substring (minibuffer-prompt-end) | 8636 | (buffer-substring (minibuffer-prompt-end) (point))))))) |
| 8668 | (- (point) (or completion-base-size 0)))))))) | ||
| 8669 | (with-current-buffer standard-output | 8637 | (with-current-buffer standard-output |
| 8670 | (let ((base-size completion-base-size) ;Read before killing localvars. | 8638 | (let ((base-position completion-base-position) |
| 8671 | (base-position completion-base-position) | ||
| 8672 | (insert-fun completion-list-insert-choice-function)) | 8639 | (insert-fun completion-list-insert-choice-function)) |
| 8673 | (completion-list-mode) | 8640 | (completion-list-mode) |
| 8674 | (set (make-local-variable 'completion-base-size) base-size) | ||
| 8675 | (set (make-local-variable 'completion-base-position) base-position) | 8641 | (set (make-local-variable 'completion-base-position) base-position) |
| 8676 | (set (make-local-variable 'completion-list-insert-choice-function) | 8642 | (set (make-local-variable 'completion-list-insert-choice-function) |
| 8677 | insert-fun)) | 8643 | insert-fun)) |
diff --git a/lisp/subr.el b/lisp/subr.el index 0bd09c6556d..a58a873a33c 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -4670,13 +4670,6 @@ This function is called directly from the C code." | |||
| 4670 | ;; Finally, run any other hook. | 4670 | ;; Finally, run any other hook. |
| 4671 | (run-hook-with-args 'after-load-functions abs-file)) | 4671 | (run-hook-with-args 'after-load-functions abs-file)) |
| 4672 | 4672 | ||
| 4673 | (defun eval-next-after-load (file) | ||
| 4674 | "Read the following input sexp, and run it whenever FILE is loaded. | ||
| 4675 | This makes or adds to an entry on `after-load-alist'. | ||
| 4676 | FILE should be the name of a library, with no directory name." | ||
| 4677 | (declare (obsolete eval-after-load "23.2")) | ||
| 4678 | (eval-after-load file (read))) | ||
| 4679 | |||
| 4680 | 4673 | ||
| 4681 | (defun display-delayed-warnings () | 4674 | (defun display-delayed-warnings () |
| 4682 | "Display delayed warnings from `delayed-warnings-list'. | 4675 | "Display delayed warnings from `delayed-warnings-list'. |
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 |