From: Stefan Kangas Date: Wed, 2 Aug 2023 07:25:26 +0000 (+0200) Subject: Support python-ts-mode in align.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c0e59136a869e5cc0a35ed4ac0af81f8bef59f3;p=emacs.git Support python-ts-mode in align.el * lisp/align.el (align-dq-string-modes, align-sq-string-modes) (align-open-comment-modes, align-rules-list): Use python-base-mode instead of python-mode. --- diff --git a/lisp/align.el b/lisp/align.el index b13008b1fdf..5dfebc0e5f9 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -211,20 +211,20 @@ If nil, then no messages will ever be printed to the minibuffer." (defcustom align-dq-string-modes (append align-lisp-modes align-c++-modes align-perl-modes - '(python-mode vhdl-mode)) + '(python-base-mode vhdl-mode)) "A list of modes where double quoted strings should be excluded." :type '(repeat symbol) :group 'align) (defcustom align-sq-string-modes - (append align-perl-modes '(python-mode)) + (append align-perl-modes '(python-base-mode)) "A list of modes where single quoted strings should be excluded." :type '(repeat symbol) :group 'align) (defcustom align-open-comment-modes (append align-lisp-modes align-c++-modes align-perl-modes - '(python-mode makefile-mode vhdl-mode)) + '(python-base-mode makefile-mode vhdl-mode)) "A list of modes with a single-line comment syntax. These are comments as in Lisp, which have a beginning, but end with the line (i.e., `comment-end' is an empty string)." @@ -450,7 +450,7 @@ The possible settings for `align-region-separate' are: (regexp . ,(concat "[^=!<> \t\n]\\(\\s-*\\)=" "\\(\\s-*\\)\\([^>= \t\n]\\|$\\)")) (group . (1 2)) - (modes . '(python-mode)) + (modes . '(python-base-mode)) (tab-stop . nil)) (make-assignment @@ -478,7 +478,7 @@ The possible settings for `align-region-separate' are: (basic-comma-delimiter (regexp . ",\\(\\s-*\\)[^# \t\n]") (repeat . t) - (modes . (append align-perl-modes '(python-mode))) + (modes . (append align-perl-modes '(python-base-mode))) (run-if . ,(lambda () current-prefix-arg))) (c++-comment @@ -508,7 +508,7 @@ The possible settings for `align-region-separate' are: (python-chain-logic (regexp . "\\(\\s-*\\)\\(\\\\|\\\\)") - (modes . '(python-mode)) + (modes . '(python-base-mode)) (valid . ,(lambda () (save-excursion (goto-char (match-end 2)) @@ -525,7 +525,7 @@ The possible settings for `align-region-separate' are: (basic-line-continuation (regexp . "\\(\\s-*\\)\\\\$") - (modes . '(python-mode makefile-mode))) + (modes . '(python-base-mode makefile-mode))) (tex-record-separator (regexp . ,(lambda (end reverse)