diff options
| author | Glenn Morris | 2018-04-20 18:55:04 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-04-20 18:55:04 -0400 |
| commit | 18de2ada243653ece98b18044233e5d29eee5903 (patch) | |
| tree | dbac02f9fa7ee6e7f6bd592bd2f775be4cdcf5f6 | |
| parent | 9c3eeba4db26ddaeead100beea7a96f9fa640918 (diff) | |
| download | emacs-18de2ada243653ece98b18044233e5d29eee5903.tar.gz emacs-18de2ada243653ece98b18044233e5d29eee5903.zip | |
More alias-related tedium
* lisp/comint.el (comint-scroll-to-bottom-on-output):
* lisp/completion.el (cmpl-syntax-table):
* lisp/erc/erc-button.el (erc-button-google-url):
* lisp/font-lock.el (font-lock-reference-face):
* lisp/hfy-cmap.el (hfy-fallback-colour-map, hfy-rgb-txt-colour-map):
* lisp/isearch.el (isearch-regexp-function, isearch-new-word):
* lisp/startup.el (argv):
* lisp/version.el (emacs-bzr-version):
* lisp/org/org.el (org-CUA-compatible)
(org-popup-calendar-for-date-prompt):
Move aliases before targets, to silence new compiler warning.
| -rw-r--r-- | lisp/comint.el | 4 | ||||
| -rw-r--r-- | lisp/completion.el | 6 | ||||
| -rw-r--r-- | lisp/erc/erc-button.el | 6 | ||||
| -rw-r--r-- | lisp/font-lock.el | 6 | ||||
| -rw-r--r-- | lisp/hfy-cmap.el | 10 | ||||
| -rw-r--r-- | lisp/isearch.el | 11 | ||||
| -rw-r--r-- | lisp/org/org.el | 9 | ||||
| -rw-r--r-- | lisp/startup.el | 6 | ||||
| -rw-r--r-- | lisp/version.el | 6 |
9 files changed, 35 insertions, 29 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 3182cba8663..0a33e749446 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -263,6 +263,8 @@ See `comint-preinput-scroll-to-bottom'. This variable is buffer-local." | |||
| 263 | (const this)) | 263 | (const this)) |
| 264 | :group 'comint) | 264 | :group 'comint) |
| 265 | 265 | ||
| 266 | (defvaralias 'comint-scroll-to-bottom-on-output 'comint-move-point-for-output) | ||
| 267 | |||
| 266 | (defcustom comint-move-point-for-output nil | 268 | (defcustom comint-move-point-for-output nil |
| 267 | "Controls whether interpreter output moves point to the end of the output. | 269 | "Controls whether interpreter output moves point to the end of the output. |
| 268 | If nil, then output never moves point to the output. | 270 | If nil, then output never moves point to the output. |
| @@ -295,8 +297,6 @@ end of the current logical (not visual) line after insertion." | |||
| 295 | (const :tag "Move to end of line" end-of-line)) | 297 | (const :tag "Move to end of line" end-of-line)) |
| 296 | :group 'comint) | 298 | :group 'comint) |
| 297 | 299 | ||
| 298 | (defvaralias 'comint-scroll-to-bottom-on-output 'comint-move-point-for-output) | ||
| 299 | |||
| 300 | (defcustom comint-scroll-show-maximum-output t | 300 | (defcustom comint-scroll-show-maximum-output t |
| 301 | "Controls how to scroll due to interpreter output. | 301 | "Controls how to scroll due to interpreter output. |
| 302 | This variable applies when point is at the end of the buffer | 302 | This variable applies when point is at the end of the buffer |
diff --git a/lisp/completion.el b/lisp/completion.el index ff942940861..2ddf0999e43 100644 --- a/lisp/completion.el +++ b/lisp/completion.el | |||
| @@ -518,6 +518,9 @@ Used to decide whether to save completions.") | |||
| 518 | (modify-syntax-entry char "w" table))) | 518 | (modify-syntax-entry char "w" table))) |
| 519 | table)) | 519 | table)) |
| 520 | 520 | ||
| 521 | ;; Old name, non-namespace-clean. | ||
| 522 | (defvaralias 'cmpl-syntax-table 'completion-syntax-table) | ||
| 523 | |||
| 521 | (defvar completion-syntax-table completion-standard-syntax-table | 524 | (defvar completion-syntax-table completion-standard-syntax-table |
| 522 | "This variable holds the current completion syntax table.") | 525 | "This variable holds the current completion syntax table.") |
| 523 | (make-variable-buffer-local 'completion-syntax-table) | 526 | (make-variable-buffer-local 'completion-syntax-table) |
| @@ -2360,8 +2363,7 @@ if ARG is omitted or nil." | |||
| 2360 | (completion-def-wrapper 'delete-backward-char :backward) | 2363 | (completion-def-wrapper 'delete-backward-char :backward) |
| 2361 | (completion-def-wrapper 'delete-backward-char-untabify :backward) | 2364 | (completion-def-wrapper 'delete-backward-char-untabify :backward) |
| 2362 | 2365 | ||
| 2363 | ;; Old names, non-namespace-clean. | 2366 | ;; Old name, non-namespace-clean. |
| 2364 | (defvaralias 'cmpl-syntax-table 'completion-syntax-table) | ||
| 2365 | (defalias 'initialize-completions 'completion-initialize) | 2367 | (defalias 'initialize-completions 'completion-initialize) |
| 2366 | 2368 | ||
| 2367 | (provide 'completion) | 2369 | (provide 'completion) |
diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el index 749ae5db5a2..7599053e9d3 100644 --- a/lisp/erc/erc-button.el +++ b/lisp/erc/erc-button.el | |||
| @@ -121,6 +121,9 @@ longer than `erc-fill-column'." | |||
| 121 | :group 'erc-button | 121 | :group 'erc-button |
| 122 | :type 'string) | 122 | :type 'string) |
| 123 | 123 | ||
| 124 | (define-obsolete-variable-alias 'erc-button-google-url | ||
| 125 | 'erc-button-search-url "27.1") | ||
| 126 | |||
| 124 | (defcustom erc-button-search-url "http://duckduckgo.com/?q=%s" | 127 | (defcustom erc-button-search-url "http://duckduckgo.com/?q=%s" |
| 125 | "URL used to search for a term. | 128 | "URL used to search for a term. |
| 126 | %s is replaced by the search string." | 129 | %s is replaced by the search string." |
| @@ -128,9 +131,6 @@ longer than `erc-fill-column'." | |||
| 128 | :group 'erc-button | 131 | :group 'erc-button |
| 129 | :type 'string) | 132 | :type 'string) |
| 130 | 133 | ||
| 131 | (define-obsolete-variable-alias 'erc-button-google-url | ||
| 132 | 'erc-button-search-url "27.1") | ||
| 133 | |||
| 134 | (defcustom erc-button-alist | 134 | (defcustom erc-button-alist |
| 135 | ;; Since the callback is only executed when the user is clicking on | 135 | ;; Since the callback is only executed when the user is clicking on |
| 136 | ;; a button, it makes no sense to optimize performance by | 136 | ;; a button, it makes no sense to optimize performance by |
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 0ed94bd0e8b..be9fb4dc93f 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -327,6 +327,9 @@ If a number, only buffers greater than this size have fontification messages." | |||
| 327 | (defvar font-lock-type-face 'font-lock-type-face | 327 | (defvar font-lock-type-face 'font-lock-type-face |
| 328 | "Face name to use for type and class names.") | 328 | "Face name to use for type and class names.") |
| 329 | 329 | ||
| 330 | (define-obsolete-variable-alias | ||
| 331 | 'font-lock-reference-face 'font-lock-constant-face "20.3") | ||
| 332 | |||
| 330 | (defvar font-lock-constant-face 'font-lock-constant-face | 333 | (defvar font-lock-constant-face 'font-lock-constant-face |
| 331 | "Face name to use for constant and label names.") | 334 | "Face name to use for constant and label names.") |
| 332 | 335 | ||
| @@ -340,9 +343,6 @@ This can be an \"!\" or the \"n\" in \"ifndef\".") | |||
| 340 | (defvar font-lock-preprocessor-face 'font-lock-preprocessor-face | 343 | (defvar font-lock-preprocessor-face 'font-lock-preprocessor-face |
| 341 | "Face name to use for preprocessor directives.") | 344 | "Face name to use for preprocessor directives.") |
| 342 | 345 | ||
| 343 | (define-obsolete-variable-alias | ||
| 344 | 'font-lock-reference-face 'font-lock-constant-face "20.3") | ||
| 345 | |||
| 346 | ;; Fontification variables: | 346 | ;; Fontification variables: |
| 347 | 347 | ||
| 348 | (defvar font-lock-keywords nil | 348 | (defvar font-lock-keywords nil |
diff --git a/lisp/hfy-cmap.el b/lisp/hfy-cmap.el index 4ec24cea70a..ee6e18edb0a 100644 --- a/lisp/hfy-cmap.el +++ b/lisp/hfy-cmap.el | |||
| @@ -32,6 +32,10 @@ | |||
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | (define-obsolete-variable-alias | ||
| 36 | 'hfy-fallback-colour-map | ||
| 37 | 'hfy-fallback-color-map "27.1") | ||
| 38 | |||
| 35 | (defconst hfy-fallback-color-map | 39 | (defconst hfy-fallback-color-map |
| 36 | '(("snow" 65535 64250 64250) | 40 | '(("snow" 65535 64250 64250) |
| 37 | ("ghost white" 63736 63736 65535) | 41 | ("ghost white" 63736 63736 65535) |
| @@ -785,15 +789,13 @@ | |||
| 785 | ("DarkRed" 35723 0 0) | 789 | ("DarkRed" 35723 0 0) |
| 786 | ("light green" 37008 61166 37008) | 790 | ("light green" 37008 61166 37008) |
| 787 | ("LightGreen" 37008 61166 37008)) ) | 791 | ("LightGreen" 37008 61166 37008)) ) |
| 788 | (define-obsolete-variable-alias | ||
| 789 | 'hfy-fallback-colour-map | ||
| 790 | 'hfy-fallback-color-map "27.1") | ||
| 791 | 792 | ||
| 792 | (defvar hfy-rgb-txt-color-map nil) | ||
| 793 | (define-obsolete-variable-alias | 793 | (define-obsolete-variable-alias |
| 794 | 'hfy-rgb-txt-colour-map | 794 | 'hfy-rgb-txt-colour-map |
| 795 | 'hfy-rgb-txt-color-map "27.1") | 795 | 'hfy-rgb-txt-color-map "27.1") |
| 796 | 796 | ||
| 797 | (defvar hfy-rgb-txt-color-map nil) | ||
| 798 | |||
| 797 | (defvar hfy-rgb-load-path | 799 | (defvar hfy-rgb-load-path |
| 798 | (list "/etc/X11" | 800 | (list "/etc/X11" |
| 799 | (format "/usr/share/emacs/%d.%d/etc" | 801 | (format "/usr/share/emacs/%d.%d/etc" |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 0874ebb54e6..db196e00efb 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -562,6 +562,9 @@ This is like `describe-bindings', but displays only Isearch keys." | |||
| 562 | 562 | ||
| 563 | (defvar isearch-forward nil) ; Searching in the forward direction. | 563 | (defvar isearch-forward nil) ; Searching in the forward direction. |
| 564 | (defvar isearch-regexp nil) ; Searching for a regexp. | 564 | (defvar isearch-regexp nil) ; Searching for a regexp. |
| 565 | ;; We still support setting this to t for backwards compatibility. | ||
| 566 | (define-obsolete-variable-alias 'isearch-word | ||
| 567 | 'isearch-regexp-function "25.1") | ||
| 565 | (defvar isearch-regexp-function nil | 568 | (defvar isearch-regexp-function nil |
| 566 | "Regexp-based search mode for words/symbols. | 569 | "Regexp-based search mode for words/symbols. |
| 567 | If the value is a function (e.g. `isearch-symbol-regexp'), it is | 570 | If the value is a function (e.g. `isearch-symbol-regexp'), it is |
| @@ -573,9 +576,6 @@ specifies the prefix string displayed in the search message. | |||
| 573 | This variable is set and changed during isearch. To change the | 576 | This variable is set and changed during isearch. To change the |
| 574 | default behavior used for searches, see `search-default-mode' | 577 | default behavior used for searches, see `search-default-mode' |
| 575 | instead.") | 578 | instead.") |
| 576 | ;; We still support setting this to t for backwards compatibility. | ||
| 577 | (define-obsolete-variable-alias 'isearch-word | ||
| 578 | 'isearch-regexp-function "25.1") | ||
| 579 | 579 | ||
| 580 | (defvar isearch-lax-whitespace t | 580 | (defvar isearch-lax-whitespace t |
| 581 | "If non-nil, a space will match a sequence of whitespace chars. | 581 | "If non-nil, a space will match a sequence of whitespace chars. |
| @@ -1242,13 +1242,14 @@ If MSG is non-nil, use variable `isearch-message', otherwise `isearch-string'." | |||
| 1242 | (length succ-msg) | 1242 | (length succ-msg) |
| 1243 | 0)))) | 1243 | 0)))) |
| 1244 | 1244 | ||
| 1245 | (define-obsolete-variable-alias 'isearch-new-word | ||
| 1246 | 'isearch-new-regexp-function "25.1") | ||
| 1247 | |||
| 1245 | (defvar isearch-new-regexp-function nil | 1248 | (defvar isearch-new-regexp-function nil |
| 1246 | "Holds the next `isearch-regexp-function' inside `with-isearch-suspended'. | 1249 | "Holds the next `isearch-regexp-function' inside `with-isearch-suspended'. |
| 1247 | If this is set inside code wrapped by the macro | 1250 | If this is set inside code wrapped by the macro |
| 1248 | `with-isearch-suspended', then the value set will be used as the | 1251 | `with-isearch-suspended', then the value set will be used as the |
| 1249 | `isearch-regexp-function' once isearch resumes.") | 1252 | `isearch-regexp-function' once isearch resumes.") |
| 1250 | (define-obsolete-variable-alias 'isearch-new-word | ||
| 1251 | 'isearch-new-regexp-function "25.1") | ||
| 1252 | 1253 | ||
| 1253 | (defvar isearch-suspended nil) | 1254 | (defvar isearch-suspended nil) |
| 1254 | 1255 | ||
diff --git a/lisp/org/org.el b/lisp/org/org.el index 7f4c6d5936b..e45bc55b244 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -1071,6 +1071,8 @@ has been set." | |||
| 1071 | :group 'org-startup | 1071 | :group 'org-startup |
| 1072 | :type 'boolean) | 1072 | :type 'boolean) |
| 1073 | 1073 | ||
| 1074 | (defvaralias 'org-CUA-compatible 'org-replace-disputed-keys) | ||
| 1075 | |||
| 1074 | (defcustom org-replace-disputed-keys nil | 1076 | (defcustom org-replace-disputed-keys nil |
| 1075 | "Non-nil means use alternative key bindings for some keys. | 1077 | "Non-nil means use alternative key bindings for some keys. |
| 1076 | Org mode uses S-<cursor> keys for changing timestamps and priorities. | 1078 | Org mode uses S-<cursor> keys for changing timestamps and priorities. |
| @@ -1095,8 +1097,6 @@ loading Org." | |||
| 1095 | :group 'org-startup | 1097 | :group 'org-startup |
| 1096 | :type 'boolean) | 1098 | :type 'boolean) |
| 1097 | 1099 | ||
| 1098 | (defvaralias 'org-CUA-compatible 'org-replace-disputed-keys) | ||
| 1099 | |||
| 1100 | (defcustom org-disputed-keys | 1100 | (defcustom org-disputed-keys |
| 1101 | '(([(shift up)] . [(meta p)]) | 1101 | '(([(shift up)] . [(meta p)]) |
| 1102 | ([(shift down)] . [(meta n)]) | 1102 | ([(shift down)] . [(meta n)]) |
| @@ -3343,6 +3343,9 @@ This display will be in an overlay, in the minibuffer." | |||
| 3343 | :group 'org-time | 3343 | :group 'org-time |
| 3344 | :type 'boolean) | 3344 | :type 'boolean) |
| 3345 | 3345 | ||
| 3346 | (defvaralias 'org-popup-calendar-for-date-prompt | ||
| 3347 | 'org-read-date-popup-calendar) | ||
| 3348 | |||
| 3346 | (defcustom org-read-date-popup-calendar t | 3349 | (defcustom org-read-date-popup-calendar t |
| 3347 | "Non-nil means pop up a calendar when prompting for a date. | 3350 | "Non-nil means pop up a calendar when prompting for a date. |
| 3348 | In the calendar, the date can be selected with mouse-1. However, the | 3351 | In the calendar, the date can be selected with mouse-1. However, the |
| @@ -3350,8 +3353,6 @@ minibuffer will also be active, and you can simply enter the date as well. | |||
| 3350 | When nil, only the minibuffer will be available." | 3353 | When nil, only the minibuffer will be available." |
| 3351 | :group 'org-time | 3354 | :group 'org-time |
| 3352 | :type 'boolean) | 3355 | :type 'boolean) |
| 3353 | (defvaralias 'org-popup-calendar-for-date-prompt | ||
| 3354 | 'org-read-date-popup-calendar) | ||
| 3355 | 3356 | ||
| 3356 | (defcustom org-extend-today-until 0 | 3357 | (defcustom org-extend-today-until 0 |
| 3357 | "The hour when your day really ends. Must be an integer. | 3358 | "The hour when your day really ends. Must be an integer. |
diff --git a/lisp/startup.el b/lisp/startup.el index bb3e70493c4..5b2d3e58cba 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -120,9 +120,6 @@ Elements look like (SWITCH-STRING . HANDLER-FUNCTION). | |||
| 120 | HANDLER-FUNCTION receives the switch string as its sole argument; | 120 | HANDLER-FUNCTION receives the switch string as its sole argument; |
| 121 | the remaining command-line args are in the variable `command-line-args-left'.") | 121 | the remaining command-line args are in the variable `command-line-args-left'.") |
| 122 | 122 | ||
| 123 | (defvar command-line-args-left nil | ||
| 124 | "List of command-line args not yet processed.") | ||
| 125 | |||
| 126 | (with-no-warnings | 123 | (with-no-warnings |
| 127 | (defvaralias 'argv 'command-line-args-left | 124 | (defvaralias 'argv 'command-line-args-left |
| 128 | "List of command-line args not yet processed. | 125 | "List of command-line args not yet processed. |
| @@ -131,6 +128,9 @@ inside of --eval command line arguments in order to access | |||
| 131 | following arguments.")) | 128 | following arguments.")) |
| 132 | (internal-make-var-non-special 'argv) | 129 | (internal-make-var-non-special 'argv) |
| 133 | 130 | ||
| 131 | (defvar command-line-args-left nil | ||
| 132 | "List of command-line args not yet processed.") | ||
| 133 | |||
| 134 | (with-no-warnings | 134 | (with-no-warnings |
| 135 | (defvar argi nil | 135 | (defvar argi nil |
| 136 | "Current command-line argument.")) | 136 | "Current command-line argument.")) |
diff --git a/lisp/version.el b/lisp/version.el index 3a38b1d83c8..84919308191 100644 --- a/lisp/version.el +++ b/lisp/version.el | |||
| @@ -99,15 +99,15 @@ to the system configuration; look at `system-configuration' instead." | |||
| 99 | ;; We hope that this alias is easier for people to find. | 99 | ;; We hope that this alias is easier for people to find. |
| 100 | (defalias 'version 'emacs-version) | 100 | (defalias 'version 'emacs-version) |
| 101 | 101 | ||
| 102 | (define-obsolete-variable-alias 'emacs-bzr-version | ||
| 103 | 'emacs-repository-version "24.4") | ||
| 104 | |||
| 102 | ;; Set during dumping, this is a defvar so that it can be setq'd. | 105 | ;; Set during dumping, this is a defvar so that it can be setq'd. |
| 103 | (defvar emacs-repository-version nil | 106 | (defvar emacs-repository-version nil |
| 104 | "String giving the repository revision from which this Emacs was built. | 107 | "String giving the repository revision from which this Emacs was built. |
| 105 | Value is nil if Emacs was not built from a repository checkout, | 108 | Value is nil if Emacs was not built from a repository checkout, |
| 106 | or if we could not determine the revision.") | 109 | or if we could not determine the revision.") |
| 107 | 110 | ||
| 108 | (define-obsolete-variable-alias 'emacs-bzr-version | ||
| 109 | 'emacs-repository-version "24.4") | ||
| 110 | |||
| 111 | (define-obsolete-function-alias 'emacs-bzr-get-version | 111 | (define-obsolete-function-alias 'emacs-bzr-get-version |
| 112 | 'emacs-repository-get-version "24.4") | 112 | 'emacs-repository-get-version "24.4") |
| 113 | 113 | ||