Package: elpa-dpkg-dev-el Version: 37.12 Severity: normal I have started to use Emacs from the recently created emacs-30 branch, and noticed that in debian-changelog-mode buffers font-lock-mode is nil (M-x font-lock mode fixes that for the current buffer). In the Emacs 30 NEWS file I found the following item:
,---- | ** 'define-globalized-minor-mode' requires that modes use 'run-mode-hooks'. | Minor modes defined with 'define-globalized-minor-mode', such as | 'global-font-lock-mode', will not be enabled any more in those buffers | whose major modes fail to use 'run-mode-hooks'. Major modes defined | with 'define-derived-mode' are not affected. 'run-mode-hooks' has been the | recommended way to run major mode hooks since Emacs 22. `---- The solution looks simple, but I have not tested it yet:
diff --git a/debian-changelog-mode.el b/debian-changelog-mode.el index febb60e..43891c0 100644 --- a/debian-changelog-mode.el +++ b/debian-changelog-mode.el @@ -1544,7 +1544,7 @@ interface to set it, or simply set the variable (debian-changelog-highlight-mouse-t (debian-changelog-setup-highlight-mouse-keymap) (debian-changelog-highlight-mouse))) - (run-hooks 'debian-changelog-mode-hook)) + (run-mode-hooks 'debian-changelog-mode-hook)) ;;(easy-menu-add debian-changelog-menu)) ;;
-- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.1.95-nouveau (SMP w/2 CPU threads; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages elpa-dpkg-dev-el depends on: ii dh-elpa-helper 2.0.17.1 ii elpa-debian-el 37.13 ii emacsen-common 3.0.5 Versions of packages elpa-dpkg-dev-el recommends: ii emacs 1:29.4+1-2 ii emacs-gtk [emacs] 1:29.4+1-2 elpa-dpkg-dev-el suggests no packages. -- no debconf information