diff options
Diffstat (limited to 'lisp/align.el')
-rw-r--r-- | lisp/align.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/align.el b/lisp/align.el index c1a2b691312..b2cab1c1b27 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -129,6 +129,8 @@ "Hook that gets run after the aligner has been loaded." :type 'hook :group 'align) +(make-obsolete-variable 'align-load-hook + "use `with-eval-after-load' instead." "28.1") (defcustom align-indent-before-aligning nil "If non-nil, indent the marked region before aligning it." @@ -387,7 +389,7 @@ The possible settings for `align-region-separate' are: (regexp . "\\(^\\s-+[^( \t\n]\\|(\\(\\S-+\\)\\s-+\\)\\S-+\\(\\s-+\\)") (group . 3) (modes . align-lisp-modes) - (run-if . ,(function (lambda () current-prefix-arg)))) + (run-if . ,(lambda () current-prefix-arg))) (lisp-alist-dot (regexp . "\\(\\s-*\\)\\.\\(\\s-*\\)") @@ -461,7 +463,7 @@ The possible settings for `align-region-separate' are: (regexp . ",\\(\\s-*\\)[^/ \t\n]") (repeat . t) (modes . align-c++-modes) - (run-if . ,(function (lambda () current-prefix-arg)))) + (run-if . ,(lambda () current-prefix-arg))) ; (valid ; . ,(function ; (lambda () @@ -478,7 +480,7 @@ The possible settings for `align-region-separate' are: (regexp . ",\\(\\s-*\\)[^# \t\n]") (repeat . t) (modes . (append align-perl-modes '(python-mode))) - (run-if . ,(function (lambda () current-prefix-arg)))) + (run-if . ,(lambda () current-prefix-arg))) (c++-comment (regexp . "\\(\\s-*\\)\\(//.*\\|/\\*.*\\*/\\s-*\\)$") @@ -1002,9 +1004,8 @@ to be colored." (completing-read "Title of rule to highlight: " (mapcar - (function - (lambda (rule) - (list (symbol-name (car rule))))) + (lambda (rule) + (list (symbol-name (car rule)))) (append (or align-mode-rules-list align-rules-list) (or align-mode-exclude-rules-list align-exclude-rules-list))) nil t))) |