diff options
| author | Glenn Morris | 2018-04-20 18:34:39 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-04-20 18:34:39 -0400 |
| commit | 9c3eeba4db26ddaeead100beea7a96f9fa640918 (patch) | |
| tree | e30a07e6fd48f518c24f5abffb3974ebdef30ec1 /lisp/textmodes | |
| parent | 495963cfaf535646350051f47c085b84319572f0 (diff) | |
| download | emacs-9c3eeba4db26ddaeead100beea7a96f9fa640918.tar.gz emacs-9c3eeba4db26ddaeead100beea7a96f9fa640918.zip | |
The tedious game of whack-a-mole with compiler warnings continues
* lisp/abbrev.el (edit-abbrevs-map):
* lisp/emacs-lock.el (emacs-lock-from-exiting):
* lisp/htmlfontify.el (hfy-optimisations):
* lisp/ielm.el (inferior-emacs-lisp-mode-hook)
(inferior-emacs-lisp-mode-map):
* lisp/isearch.el (isearch-lazy-highlight-word):
* lisp/select.el (x-select-enable-clipboard, x-select-enable-primary):
* lisp/shell.el (shell-dirtrack-mode):
* lisp/skeleton.el (skeleton-transformation, skeleton-filter):
* lisp/startup.el (inhibit-splash-screen, inhibit-startup-message):
* lisp/window.el (even-window-heights):
* lisp/calendar/timeclock.el (timeclock-modeline-display):
* lisp/cedet/semantic/db-mode.el (semanticdb-mode-hook)
(semanticdb-global-mode):
* lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings):
* lisp/emacs-lisp/warnings.el (display-warning-minimum-level)
(log-warning-minimum-level):
* lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook):
* lisp/gnus/nnspool.el (news-path):
* lisp/org/org-agenda.el (org-agenda-search-view-search-words-only)
(org-agenda-remove-tags-when-in-prefix)
(org-agenda-align-tags-to-column, org-agenda-keymap):
* lisp/org/org.el (org-special-ctrl-a)
(org-log-state-notes-into-drawer)
(org-agenda-multi-occur-extra-files):
* lisp/progmodes/flymake-proc.el (flymake-err-line-patterns)
(flymake-check-file-limit):
* lisp/progmodes/make-mode.el (makefile-query-one-target-method):
* lisp/progmodes/octave.el (inferior-octave-startup-hook):
* lisp/progmodes/python.el (python-buffer)
(python-preoutput-result):
* lisp/progmodes/sql.el (sql-dialect):
* lisp/textmodes/artist.el (artist-text-renderer):
* lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert)
(bibtex-autokey-titleword-case-convert):
* lisp/textmodes/flyspell.el (flyspell-generic-check-word-p):
* lisp/textmodes/ispell.el (ispell-format-word):
* lisp/textmodes/rst.el (rst-preferred-decorations):
* lisp/textmodes/sgml-mode.el (sgml-transformation):
Move aliases before targets, to silence new compiler warning.
* lisp/term/ns-win.el (ns-option-modifier, ns-right-option-modifier):
Silence warning.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/artist.el | 3 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 10 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 6 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 3 | ||||
| -rw-r--r-- | lisp/textmodes/rst.el | 5 | ||||
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 3 |
6 files changed, 18 insertions, 12 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index e9ae6a4ce97..61ca0856bc9 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -351,13 +351,12 @@ Example: | |||
| 351 | (defvar artist-pointer-shape (if (eq window-system 'x) x-pointer-crosshair nil) | 351 | (defvar artist-pointer-shape (if (eq window-system 'x) x-pointer-crosshair nil) |
| 352 | "If in X Windows, use this pointer shape while drawing with the mouse.") | 352 | "If in X Windows, use this pointer shape while drawing with the mouse.") |
| 353 | 353 | ||
| 354 | (defvaralias 'artist-text-renderer 'artist-text-renderer-function) | ||
| 354 | 355 | ||
| 355 | (defcustom artist-text-renderer-function 'artist-figlet | 356 | (defcustom artist-text-renderer-function 'artist-figlet |
| 356 | "Function for doing text rendering." | 357 | "Function for doing text rendering." |
| 357 | :group 'artist-text | 358 | :group 'artist-text |
| 358 | :type 'symbol) | 359 | :type 'symbol) |
| 359 | (defvaralias 'artist-text-renderer 'artist-text-renderer-function) | ||
| 360 | |||
| 361 | 360 | ||
| 362 | (defcustom artist-figlet-program "figlet" | 361 | (defcustom artist-figlet-program "figlet" |
| 363 | "Program to run for `figlet'." | 362 | "Program to run for `figlet'." |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 79eb22e5ed7..89c94eb7e90 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -1038,6 +1038,9 @@ See `bibtex-generate-autokey' for details." | |||
| 1038 | :type '(repeat (cons (regexp :tag "Old") | 1038 | :type '(repeat (cons (regexp :tag "Old") |
| 1039 | (string :tag "New")))) | 1039 | (string :tag "New")))) |
| 1040 | 1040 | ||
| 1041 | (defvaralias 'bibtex-autokey-name-case-convert | ||
| 1042 | 'bibtex-autokey-name-case-convert-function) | ||
| 1043 | |||
| 1041 | (defcustom bibtex-autokey-name-case-convert-function 'downcase | 1044 | (defcustom bibtex-autokey-name-case-convert-function 'downcase |
| 1042 | "Function called for each name to perform case conversion. | 1045 | "Function called for each name to perform case conversion. |
| 1043 | See `bibtex-generate-autokey' for details." | 1046 | See `bibtex-generate-autokey' for details." |
| @@ -1049,8 +1052,6 @@ See `bibtex-generate-autokey' for details." | |||
| 1049 | (function :tag "Conversion function"))) | 1052 | (function :tag "Conversion function"))) |
| 1050 | (put 'bibtex-autokey-name-case-convert-function 'safe-local-variable | 1053 | (put 'bibtex-autokey-name-case-convert-function 'safe-local-variable |
| 1051 | (lambda (x) (memq x '(upcase downcase capitalize identity)))) | 1054 | (lambda (x) (memq x '(upcase downcase capitalize identity)))) |
| 1052 | (defvaralias 'bibtex-autokey-name-case-convert | ||
| 1053 | 'bibtex-autokey-name-case-convert-function) | ||
| 1054 | 1055 | ||
| 1055 | (defcustom bibtex-autokey-name-length 'infty | 1056 | (defcustom bibtex-autokey-name-length 'infty |
| 1056 | "Number of characters from name to incorporate into key. | 1057 | "Number of characters from name to incorporate into key. |
| @@ -1113,6 +1114,9 @@ Case is significant. See `bibtex-generate-autokey' for details." | |||
| 1113 | :group 'bibtex-autokey | 1114 | :group 'bibtex-autokey |
| 1114 | :type '(repeat regexp)) | 1115 | :type '(repeat regexp)) |
| 1115 | 1116 | ||
| 1117 | (defvaralias 'bibtex-autokey-titleword-case-convert | ||
| 1118 | 'bibtex-autokey-titleword-case-convert-function) | ||
| 1119 | |||
| 1116 | (defcustom bibtex-autokey-titleword-case-convert-function 'downcase | 1120 | (defcustom bibtex-autokey-titleword-case-convert-function 'downcase |
| 1117 | "Function called for each titleword to perform case conversion. | 1121 | "Function called for each titleword to perform case conversion. |
| 1118 | See `bibtex-generate-autokey' for details." | 1122 | See `bibtex-generate-autokey' for details." |
| @@ -1122,8 +1126,6 @@ See `bibtex-generate-autokey' for details." | |||
| 1122 | (const :tag "Capitalize" capitalize) | 1126 | (const :tag "Capitalize" capitalize) |
| 1123 | (const :tag "Upcase" upcase) | 1127 | (const :tag "Upcase" upcase) |
| 1124 | (function :tag "Conversion function"))) | 1128 | (function :tag "Conversion function"))) |
| 1125 | (defvaralias 'bibtex-autokey-titleword-case-convert | ||
| 1126 | 'bibtex-autokey-titleword-case-convert-function) | ||
| 1127 | 1129 | ||
| 1128 | (defcustom bibtex-autokey-titleword-abbrevs nil | 1130 | (defcustom bibtex-autokey-titleword-abbrevs nil |
| 1129 | "Determines exceptions to the usual abbreviation mechanism. | 1131 | "Determines exceptions to the usual abbreviation mechanism. |
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 2d0307845ca..9747f8e2ebf 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -321,14 +321,16 @@ If this variable is nil, all regions are treated as small." | |||
| 321 | ;;* (lambda () (setq flyspell-generic-check-word-predicate */ | 321 | ;;* (lambda () (setq flyspell-generic-check-word-predicate */ |
| 322 | ;;* 'mail-mode-flyspell-verify))) */ | 322 | ;;* 'mail-mode-flyspell-verify))) */ |
| 323 | ;;*---------------------------------------------------------------------*/ | 323 | ;;*---------------------------------------------------------------------*/ |
| 324 | |||
| 325 | (define-obsolete-variable-alias 'flyspell-generic-check-word-p | ||
| 326 | 'flyspell-generic-check-word-predicate "25.1") | ||
| 327 | |||
| 324 | (defvar flyspell-generic-check-word-predicate nil | 328 | (defvar flyspell-generic-check-word-predicate nil |
| 325 | "Function providing per-mode customization over which words are flyspelled. | 329 | "Function providing per-mode customization over which words are flyspelled. |
| 326 | Returns t to continue checking, nil otherwise. | 330 | Returns t to continue checking, nil otherwise. |
| 327 | Flyspell mode sets this variable to whatever is the `flyspell-mode-predicate' | 331 | Flyspell mode sets this variable to whatever is the `flyspell-mode-predicate' |
| 328 | property of the major mode name.") | 332 | property of the major mode name.") |
| 329 | (make-variable-buffer-local 'flyspell-generic-check-word-predicate) | 333 | (make-variable-buffer-local 'flyspell-generic-check-word-predicate) |
| 330 | (define-obsolete-variable-alias 'flyspell-generic-check-word-p | ||
| 331 | 'flyspell-generic-check-word-predicate "25.1") | ||
| 332 | 334 | ||
| 333 | ;;*--- mail mode -------------------------------------------------------*/ | 335 | ;;*--- mail mode -------------------------------------------------------*/ |
| 334 | (put 'mail-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify) | 336 | (put 'mail-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify) |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index ba98ea55199..18bf2630e58 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -318,12 +318,13 @@ The following values are supported: | |||
| 318 | :type 'boolean | 318 | :type 'boolean |
| 319 | :group 'ispell) | 319 | :group 'ispell) |
| 320 | 320 | ||
| 321 | (defvaralias 'ispell-format-word 'ispell-format-word-function) | ||
| 322 | |||
| 321 | (defcustom ispell-format-word-function (function upcase) | 323 | (defcustom ispell-format-word-function (function upcase) |
| 322 | "Formatting function for displaying word being spell checked. | 324 | "Formatting function for displaying word being spell checked. |
| 323 | The function must take one string argument and return a string." | 325 | The function must take one string argument and return a string." |
| 324 | :type 'function | 326 | :type 'function |
| 325 | :group 'ispell) | 327 | :group 'ispell) |
| 326 | (defvaralias 'ispell-format-word 'ispell-format-word-function) | ||
| 327 | 328 | ||
| 328 | (defcustom ispell-use-framepop-p nil | 329 | (defcustom ispell-use-framepop-p nil |
| 329 | "When non-nil ispell uses framepop to display choices in a dedicated frame. | 330 | "When non-nil ispell uses framepop to display choices in a dedicated frame. |
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el index 48c01289347..40d75a9db84 100644 --- a/lisp/textmodes/rst.el +++ b/lisp/textmodes/rst.el | |||
| @@ -796,6 +796,9 @@ Return ADO if so or signal an error otherwise." | |||
| 796 | 796 | ||
| 797 | ;; Public class methods | 797 | ;; Public class methods |
| 798 | 798 | ||
| 799 | (define-obsolete-variable-alias | ||
| 800 | 'rst-preferred-decorations 'rst-preferred-adornments "rst 1.0.0") | ||
| 801 | |||
| 799 | (defvar rst-preferred-adornments) ; Forward declaration. | 802 | (defvar rst-preferred-adornments) ; Forward declaration. |
| 800 | 803 | ||
| 801 | (defun rst-Hdr-preferred-adornments () | 804 | (defun rst-Hdr-preferred-adornments () |
| @@ -1481,8 +1484,6 @@ for modes derived from Text mode, like Mail mode." | |||
| 1481 | :group 'rst | 1484 | :group 'rst |
| 1482 | :version "21.1") | 1485 | :version "21.1") |
| 1483 | 1486 | ||
| 1484 | (define-obsolete-variable-alias | ||
| 1485 | 'rst-preferred-decorations 'rst-preferred-adornments "rst 1.0.0") | ||
| 1486 | ;; FIXME: Default must match suggestion in | 1487 | ;; FIXME: Default must match suggestion in |
| 1487 | ;; http://sphinx-doc.org/rest.html#sections for Python documentation. | 1488 | ;; http://sphinx-doc.org/rest.html#sections for Python documentation. |
| 1488 | (defcustom rst-preferred-adornments '((?= over-and-under 1) | 1489 | (defcustom rst-preferred-adornments '((?= over-and-under 1) |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 811eb6622a2..30ca11199d4 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -76,6 +76,8 @@ a DOCTYPE or an XML declaration." | |||
| 76 | :version "22.1" | 76 | :version "22.1" |
| 77 | :group 'sgml) | 77 | :group 'sgml) |
| 78 | 78 | ||
| 79 | (defvaralias 'sgml-transformation 'sgml-transformation-function) | ||
| 80 | |||
| 79 | (defcustom sgml-transformation-function 'identity | 81 | (defcustom sgml-transformation-function 'identity |
| 80 | "Default value for `skeleton-transformation-function' in SGML mode." | 82 | "Default value for `skeleton-transformation-function' in SGML mode." |
| 81 | :type 'function | 83 | :type 'function |
| @@ -92,7 +94,6 @@ a DOCTYPE or an XML declaration." | |||
| 92 | 94 | ||
| 93 | (put 'sgml-transformation-function 'variable-interactive | 95 | (put 'sgml-transformation-function 'variable-interactive |
| 94 | "aTransformation function: ") | 96 | "aTransformation function: ") |
| 95 | (defvaralias 'sgml-transformation 'sgml-transformation-function) | ||
| 96 | 97 | ||
| 97 | (defcustom sgml-mode-hook nil | 98 | (defcustom sgml-mode-hook nil |
| 98 | "Hook run by command `sgml-mode'. | 99 | "Hook run by command `sgml-mode'. |