Hello Ikumi,
I figured that I do some more investigation before I come back to you.
The problem seems to be the latex-mode-hook .
1- I had the following
(add-hook ‘LaTeX-mode-hook
(lambda ()
(setq local-abbrev-table LaTeX-mode-abbrev-table)
))
then I changed it to
(add-hook ‘latex-mode-hook
(lambda ()
(setq local-abbrev-table LaTeX-mode-abbrev-table)
))
and now seems to work, but none of the following actually works. The
hook no longer loads the files
(add-hook ‘TeX-mode-hook
‘(lambda()
(TeX-PDF-mode t)
(load-library “my-latex.el”)
(load-library “my-abbreviations.el”)
(load-library “my-latex-abbreviation-functions.el”)
))
(add-hook ‘latex-mode-hook
‘(lambda()
(TeX-PDF-mode t)
(load-library “my-latex.el”)
(load-library “my-abbreviations.el”)
(load-library “my-latex-abbreviation-functions.el”)
))
(add-hook ‘LaTeX-mode-hook
(lambda ()
(TeX-PDF-mode 1)
(require ‘my-latex)
(require ‘my-abbreviations)
(require ‘my-latex-abbreviation-functions)))
(add-hook ‘latex-mode-hook
(lambda ()
(TeX-PDF-mode 1)
(require ‘my-latex)
(require ‘my-abbreviations)
(require ‘my-latex-abbreviation-functions)))
but I I M-x load-file and load the files manually, everything works.
Thanks
Jean
On 2026-03-22 01:50, Ikumi Keita wrote:
Hi Jean,
Jean Eid<[email protected]> writes:
On Debian, the repository version of AUCTeX is 13.2.1, while ELPA
provides a newer version (14.2). After upgrading to 14.2, my LaTeX
abbrev tables no longer work, although they function correctly under
13.2.1.
Thanks for your report.
I have read through teh documentention about some changes to
completion but because I have been relying on this setup for a while,
I would like to maintain it.
My setup includes abbrevs that rely on the backslash character. For
example, I modify the syntax table so that |\| is treated as a word
character:
(modify-syntax-entry ?\\ "w" LaTeX-mode-syntax-table)
and define abbrevs such as:
("\\z" "\\mathbb{Z}" nil :count 5) ("abb" "abbreviation " nil :count 0)
Also I have some of these assigned to lisp macros that insert
complicated mlatex macros that I typically use such as a tikz
environment wrapped around and adjustbox etc.. This setup works as
expected in AUCTeX 13.2.1, but after upgrading to 14.2, abbrev
expansion stops working.
I'm sorry for inconvenience. AUCTeX did change the detail of the
implementation of abbrev table in major version 14. We tried to maintain
the compatibility, but it seems that you encountered a corner case
unfortunately. (We haven't heard of the abbrev incompatibility since the
release of AUCTeX 14, so we think that most AUCTeX users didn't have
trouble for abbrev so far.)
Is there any changes I can implement in Auctex 14.2 that makes this
work agian?
Currently I can't see what is wrong. Could you provide your whole config
relating to AUCTeX and tell the detail about "abbrev expansion stops
working." so that we can reproduce the issue?
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopGenocide #CeasefireNOW
#IProtestAgainstTrumpAndNetanyahu'sAttackOnIran,WhichViolatesInternationalLaw
* ⚠ Notice: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know the
content is safe.
​