diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-08-24 19:31:07 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-08-24 19:31:07 +0200 |
commit | 5f4838cc7a8c431012cb5794c1a2fa1742e41fc9 (patch) | |
tree | ca61b3f4a70776674e4663a60b7800592d87797b /ChangeLog | |
parent | Port to new advice functions (diff) | |
download | ebuild-mode-5f4838cc7a8c431012cb5794c1a2fa1742e41fc9.tar.gz ebuild-mode-5f4838cc7a8c431012cb5794c1a2fa1742e41fc9.tar.bz2 ebuild-mode-5f4838cc7a8c431012cb5794c1a2fa1742e41fc9.zip |
Update sh-must-be-shell-mode fix
* ebuild-mode.el (ebuild-mode): Refer to sh-mode directly,
instead of shell-script-mode which is its alias.
(sh-must-be-shell-mode): Test for its existence, rather than
testing emacs-major-version. Simply redefine the function,
in order to avoid obsolete defadvice and non-portable advice-add.
This fixes a byte-compile warning in Emacs 30 while keeping
compatibility with XEmacs.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2023-08-24 Ulrich Müller <ulm@gentoo.org> + * ebuild-mode.el (ebuild-mode): Refer to sh-mode directly, + instead of shell-script-mode which is its alias. + (sh-must-be-shell-mode): Test for its existence, rather than + testing emacs-major-version. Simply redefine the function, + in order to avoid obsolete defadvice and non-portable advice-add. + This fixes a byte-compile warning in Emacs 30 while keeping + compatibility with XEmacs. + * glep-mode.el (rst-classify-adornment, glep-ignore-preamble): Port from defadvice to advice-add. |