From: Arash Esbati <arash@gnu.org>
To: Ikumi Keita <ikumi@ikumi.que.jp>
Cc: 69187@debbugs.gnu.org
Subject: bug#69187: 29.2; Poor compatibility in align.el
Date: Wed, 03 Apr 2024 14:22:16 +0200 [thread overview]
Message-ID: <m2a5mazldz.fsf@macmutant.fritz.box> (raw)
In-Reply-To: <2214.1708282932@localhost> (Ikumi Keita's message of "Mon, 19 Feb 2024 04:02:12 +0900")
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> Sorry, I included a spurious quote at
> (modes . '(latex-mode))
> in my proposal. The proposal for `tex-tabbing-separator' should have
> been:
> ----------------------------------------------------------------------
> (tex-tabbing-separator
> (regexp . ,(lambda (end reverse)
> (align-match-tex-pattern "\\\\[=>]" end reverse)))
> (group . (1 2))
> (modes . (latex-mode))
> (repeat . t))
> ----------------------------------------------------------------------
Thanks for raising this issue. I have a question though: Does the
change below fit the bill as well:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/align.el b/lisp/align.el
index 81ccc4b5e2d..21e2e12ac24 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -538,9 +538,7 @@ align-rules-list
(align-match-tex-pattern "\\\\[=>]" end reverse)))
(group . (1 2))
(modes . align-tex-modes)
- (repeat . t)
- (run-if . ,(lambda ()
- (eq major-mode 'latex-mode))))
+ (repeat . t))
(tex-record-break
(regexp . "\\(\\s-*\\)\\\\\\\\")
--8<---------------cut here---------------end--------------->8---
`align-tex-modes' is defined like this:
,----[ C-h v align-tex-modes RET ]
| align-tex-modes is a variable defined in ‘align.el’.
|
| Its value is (tex-mode plain-tex-mode latex-mode slitex-mode)
|
| A list of modes whose syntax resembles TeX (and family).
|
| You can customize this variable.
|
`----
And IIUC, the `run-if' attribute doesn't make sense, i.e., define 4
modes and then run the show only in `latex-mode'. WDYT?
Best, Arash
next prev parent reply other threads:[~2024-04-03 12:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 12:03 bug#69187: 29.2; Poor compatibility in align.el Ikumi Keita
2024-02-18 19:02 ` Ikumi Keita
2024-04-03 12:22 ` Arash Esbati [this message]
2024-04-05 16:57 ` Ikumi Keita
2024-04-05 19:59 ` Arash Esbati
2024-04-06 6:21 ` Eli Zaretskii
2024-04-06 9:30 ` Ikumi Keita
2024-04-06 11:03 ` Eli Zaretskii
2024-04-06 20:14 ` Arash Esbati
2024-04-07 5:49 ` Eli Zaretskii
2024-04-07 8:49 ` Arash Esbati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a5mazldz.fsf@macmutant.fritz.box \
--to=arash@gnu.org \
--cc=69187@debbugs.gnu.org \
--cc=ikumi@ikumi.que.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.