unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ikumi Keita <ikumi@ikumi.que.jp>
To: Arash Esbati <arash@gnu.org>, Eli Zaretskii <eliz@gnu.org>
Cc: 69187@debbugs.gnu.org, John Wiegley <johnw@gnu.org>
Subject: bug#69187: 29.2; Poor compatibility in align.el
Date: Sat, 06 Apr 2024 18:30:49 +0900	[thread overview]
Message-ID: <2364.1712395849@localhost> (raw)
In-Reply-To: <861q7j57vl.fsf@gnu.org>

Hi Arash and Eli,

>> > That would practically do the job as well, because this entry wouldn't
>> > be relevant in buffers in modes other than latex (LaTeX) mode
>> > actually. My proposal is just to keep the precise behavior the same.
>> 
>> Agreed, so the change would look like this, right?

Yes, that's exactly the same with the one at the tail of my previous
message.

>>>>> Eli Zaretskii <eliz@gnu.org> writes:
> Please explain the issue in more detail and in terms that someone who
> doesn't use AUCTeX and has only superficial understanding of align.el
> can understand and reason about.

> Three questions that pop up immediately, perhaps because I'm missing
> something:

>   . why not use derived-mode-p instead of 'equal' in the run-if form

That's what I thought. Arash and I are proposing to _remove_ the run-if
form so that `derived-mode-p' in `align-region' would do the expected
job.

>     (and why remove it in the first place)?

See above.

>   . what is the rationale for not using align-tex-modes here, only
>     latex-mode?

Because the current `tex-tabbing-separator' entry in `align-rules-list'
excludes other modes by `run-if' form. I'm just following that behavior
for AUCTeX modes. As I said in my previous message, this isn't much
relavant; using `align-tex-modes' instead of '(latex-mode) would almost
be the same for practical usage, provided that the `run-if' form is
removed.

>   . why not just add the new LaTeX-mode to the list in
>     align-tex-modes, so that people who use an old AUCTeX will not
>     have their align rules broken?

That isn't necessary. Only `latex-mode' is needed there because
`derived-mode-p' considers that `latex-mode' is parent of `LaTeX-mode'.
However, the current `run-if' form excludes `LaTeX-mode' because if uses
`eq', not `derived-mode-p'.

> (And, btw, why did AUCTeX change the name of the mode?  What useful
> purpose could that possibly serve?  Changing names of major modes is
> the last thing I'd expect from a veteran package that respects its
> users.)

Major motivation is the following two:
(1) to follow emacs standard convention about naming scheme of user
    customize option.
(2) to get rid of ugly hack and simplify the code.

The thread beginning with [1] motivated this change. This thread was
stimulated by a thread beginning with [2], which claims that
the major mode name `latex-mode' and hook name `LaTeX-mode-hook' are
inconsistent and doesn't follow the emacs standard naming convention
without good reason.
In addition, there have been very ugly hack to put dual roles on the
symbol `latex-mode', which accidentaly broke a compatibility[3]. This
topic is discussed in the thread [1], too.

Best regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW

[1] https://lists.gnu.org/r/auctex-devel/2022-09/msg00039.html
[2] https://lists.gnu.org/r/help-gnu-emacs/2022-09/msg00104.html
[3] https://lists.gnu.org/r/auctex/2022-08/msg00001.html
    https://tex.stackexchange.com/questions/648955/auctex-inconsistent-behavior-tex-vs-latex





  reply	other threads:[~2024-04-06  9:30 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2364.1712395849@localhost \
    --to=ikumi@ikumi.que.jp \
    --cc=69187@debbugs.gnu.org \
    --cc=arash@gnu.org \
    --cc=eliz@gnu.org \
    --cc=johnw@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).