GNU bug report logs -
#69069
14.0.2; table alignment by align-current gives wrong result
Previous Next
Reported by: Uwe Siart <uwe.siart <at> tum.de>
Date: Mon, 12 Feb 2024 07:33:02 UTC
Severity: normal
Found in version 14.0.2
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Tassilo,
>>>>> Tassilo Horn <tsdh <at> gnu.org> writes:
> Shouldn't we do that change in Emacs itself, too? If so, I'd bring up
> the topic on emacs-devel in order to ask in which branch to do it (28,
> 29, master).
After my further survey, I came to think that AUCTeX should (and can)
fix this issue without change to emacs core. If my thought is correct,
emacs 30 works without any problem currently.
The point is that AUCTeX should extend this follow-up on
`derived-mode-p' to `provided-mode-derived-p'. I'll explain the detail
in a few days.
--- tex.el -----------------------------------------------------------
;; COMPATIBILITY for Emacs<30
(unless (fboundp 'derived-mode-add-parents)
(advice-add 'derived-mode-p :after-until
;; Don't quote by #'-style to avoid compiler warning.
'TeX--compat-derived-mode-p)
(defun TeX--compat-derived-mode-p (&rest modes)
"Add pseudo-parents facility to `derived-mode-p' like Emacs 30.
Modes registered in `derived-mode-extra-parents' property of the
current major mode name symbol are regarded as parent modes as
long as `derived-mode-p' is concerned."
(let ((extra-parents (get major-mode 'derived-mode-extra-parents)))
(and extra-parents
(cl-loop for parent in extra-parents
thereis (memq parent modes))))))
----------------------------------------------------------------------
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
This bug report was last modified 1 year and 94 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.