diff options
| author | Stefan Kangas | 2019-09-26 12:31:37 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-10-04 17:11:53 +0200 |
| commit | dd3592564aaaee15077800a093c9e04f5da898dc (patch) | |
| tree | 4bbb72893d8962ce6089a6bfc945c968df551c8d | |
| parent | 32558cfe53b187e3bbdfb532c7ce64ab9b0cd4f5 (diff) | |
| download | emacs-dd3592564aaaee15077800a093c9e04f5da898dc.tar.gz emacs-dd3592564aaaee15077800a093c9e04f5da898dc.zip | |
Declare unused vhdl code in align.el obsolete
* lisp/align.el (align-vhdl-rules-list, align-set-vhdl-rules): Declare
obsolete. (Bug#6207)
(align-dq-string-modes, align-open-comment-modes): Move vhdl-mode to
definition instead of adding it later.
| -rw-r--r-- | lisp/align.el | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lisp/align.el b/lisp/align.el index cd72d52df47..d83f8341c9e 100644 --- a/lisp/align.el +++ b/lisp/align.el | |||
| @@ -206,7 +206,7 @@ If nil, then no messages will ever be printed to the minibuffer." | |||
| 206 | 206 | ||
| 207 | (defcustom align-dq-string-modes | 207 | (defcustom align-dq-string-modes |
| 208 | (append align-lisp-modes align-c++-modes align-perl-modes | 208 | (append align-lisp-modes align-c++-modes align-perl-modes |
| 209 | '(python-mode)) | 209 | '(python-mode vhdl-mode)) |
| 210 | "A list of modes where double quoted strings should be excluded." | 210 | "A list of modes where double quoted strings should be excluded." |
| 211 | :type '(repeat symbol) | 211 | :type '(repeat symbol) |
| 212 | :group 'align) | 212 | :group 'align) |
| @@ -219,7 +219,7 @@ If nil, then no messages will ever be printed to the minibuffer." | |||
| 219 | 219 | ||
| 220 | (defcustom align-open-comment-modes | 220 | (defcustom align-open-comment-modes |
| 221 | (append align-lisp-modes align-c++-modes align-perl-modes | 221 | (append align-lisp-modes align-c++-modes align-perl-modes |
| 222 | '(python-mode makefile-mode)) | 222 | '(python-mode makefile-mode vhdl-mode)) |
| 223 | "A list of modes with a single-line comment syntax. | 223 | "A list of modes with a single-line comment syntax. |
| 224 | These are comments as in Lisp, which have a beginning, but end with | 224 | These are comments as in Lisp, which have a beginning, but end with |
| 225 | the line (i.e., `comment-end' is an empty string)." | 225 | the line (i.e., `comment-end' is an empty string)." |
| @@ -805,9 +805,7 @@ See the variable `align-exclude-rules-list' for more details.") | |||
| 805 | (defvar align-regexp-history nil | 805 | (defvar align-regexp-history nil |
| 806 | "Input history for the full user-entered regex in `align-regexp'") | 806 | "Input history for the full user-entered regex in `align-regexp'") |
| 807 | 807 | ||
| 808 | ;; Sample extension rule set, for vhdl-mode. This should properly be | 808 | ;; Sample extension rule set for vhdl-mode. This is now obsolete. |
| 809 | ;; in vhdl-mode.el itself. | ||
| 810 | |||
| 811 | (defcustom align-vhdl-rules-list | 809 | (defcustom align-vhdl-rules-list |
| 812 | `((vhdl-declaration | 810 | `((vhdl-declaration |
| 813 | (regexp . "\\(signal\\|variable\\|constant\\)\\(\\s-+\\)\\S-") | 811 | (regexp . "\\(signal\\|variable\\|constant\\)\\(\\s-+\\)\\S-") |
| @@ -842,18 +840,14 @@ See the variable `align-exclude-rules-list' for more details.") | |||
| 842 | "Alignment rules for `vhdl-mode'. See `align-rules-list' for more info." | 840 | "Alignment rules for `vhdl-mode'. See `align-rules-list' for more info." |
| 843 | :type align-rules-list-type | 841 | :type align-rules-list-type |
| 844 | :group 'align) | 842 | :group 'align) |
| 845 | |||
| 846 | (put 'align-vhdl-rules-list 'risky-local-variable t) | 843 | (put 'align-vhdl-rules-list 'risky-local-variable t) |
| 844 | (make-obsolete-variable 'align-vhdl-rules-list "no longer used." "27.1") | ||
| 847 | 845 | ||
| 848 | (defun align-set-vhdl-rules () | 846 | (defun align-set-vhdl-rules () |
| 849 | "Setup the `align-mode-rules-list' variable for `vhdl-mode'." | 847 | "Setup the `align-mode-rules-list' variable for `vhdl-mode'." |
| 848 | (declare (obsolete nil "27.1")) | ||
| 850 | (setq align-mode-rules-list align-vhdl-rules-list)) | 849 | (setq align-mode-rules-list align-vhdl-rules-list)) |
| 851 | 850 | ||
| 852 | (add-hook 'vhdl-mode-hook 'align-set-vhdl-rules) | ||
| 853 | |||
| 854 | (add-to-list 'align-dq-string-modes 'vhdl-mode) | ||
| 855 | (add-to-list 'align-open-comment-modes 'vhdl-mode) | ||
| 856 | |||
| 857 | ;;; User Functions: | 851 | ;;; User Functions: |
| 858 | 852 | ||
| 859 | ;;;###autoload | 853 | ;;;###autoload |