From: Eduardo Ochs <eduardoochs@gmail.com>
To: 72240@debbugs.gnu.org
Subject: bug#72240: The commit 17e26cf57e1 broke font-locking in maxima-mode
Date: Mon, 22 Jul 2024 00:05:50 -0300 [thread overview]
Message-ID: <CADs++6h-TU5WSM1hvYrdSDb+35LNLav47CmJfz-NDEmSCd1z1g@mail.gmail.com> (raw)
Hi all,
there are two Maxima modes around - one in Melpa and one in Maxima
itself. They have different bugs, and lots of people, including me,
prefer the Maxima mode that comes with Maxima. This bug report is
about a change in Emacs that broke the font-locking in the Maxima mode
that comes with Maxima - I didn't test the other Maxima mode.
Something happened between these two commits:
3f7e26e2bed 2024-04-13 10:10:19 (define-globalized-minor-mode): Fix bug#58888
17e26cf57e1 2024-04-13 10:31:28 (define-globalized-minor-mode):
Require the use of `run-mode-hooks`
Until 3f7e26e2bed font-locking in .mac files worked, but from
17e26cf57e1 onwards it doesn't work anymore. In the current Emacs from
git - where "current" means 2024jul21 - it doesn't work.
Note that 3f7e26e2bed is 17e26cf57e1~1.
I'm on Debian 11 ("oldstable").
Here's how to test it.
--snip--snip--
rm -Rv /tmp/test-maxima-mode/
mkdir /tmp/test-maxima-mode/
cd /tmp/test-maxima-mode/
wget -O maxima.el \
"https://sourceforge.net/p/maxima/code/ci/master/tree/interfaces/emacs/emaxima/maxima.el?format=raw"
wget -O maxima-font-lock.el \
"https://sourceforge.net/p/maxima/code/ci/master/tree/interfaces/emacs/emaxima/maxima-font-lock.el?format=raw"
cat > test.mac <<'%%%'
max(2, 4);
min(2, 4);
q(t) := max(0, t-2);
r(t) := min(q(t), 2);
S(x,y) := max(r(x), r(y));
plot2d (r(t), [t, 0, 6]);
plot3d (S(x,y), [x, 0, 6], [y, 0, 6]);
%%%
cat > test.el <<'%%%'
(progn
(load "/tmp/test-maxima-mode/maxima-font-lock.el")
(load "/tmp/test-maxima-mode/maxima.el")
(add-to-list 'auto-mode-alist '("\\.mac$" . maxima-mode))
(find-file "/tmp/test-maxima-mode/test.mac")
)
%%%
emacs -Q test.el
--snip--snip--
Cheers,
Eduardo Ochs
http://anggtwu.net/#eev
next reply other threads:[~2024-07-22 3:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 3:05 Eduardo Ochs [this message]
2024-07-22 7:29 ` bug#72240: The commit 17e26cf57e1 broke font-locking in maxima-mode Stefan Kangas
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=CADs++6h-TU5WSM1hvYrdSDb+35LNLav47CmJfz-NDEmSCd1z1g@mail.gmail.com \
--to=eduardoochs@gmail.com \
--cc=72240@debbugs.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).