emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/page-break-lines 4285943db3 13/80: Enable in derived modes


From: ELPA Syncer
Subject: [nongnu] elpa/page-break-lines 4285943db3 13/80: Enable in derived modes of `page-break-lines-modes'
Date: Tue, 5 Sep 2023 04:03:04 -0400 (EDT)

branch: elpa/page-break-lines
commit 4285943db3a51bab976c45a9f157878d62e070fa
Author: David Rothlisberger <david@rothlis.net>
Commit: David Rothlisberger <david@rothlis.net>

    Enable in derived modes of `page-break-lines-modes'
    
    For example if `page-break-lines-modes' contains `prog-mode',
    `global-page-break-lines-mode' will apply to `python-mode', `c-mode',
    etc.
    
    Tested on Emacs 24.2.
---
 page-break-lines.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/page-break-lines.el b/page-break-lines.el
index 22c6238439..d8a2aac364 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -122,7 +122,7 @@ horizontal line of `page-break-string-char' characters."
 When `major-mode' is listed in `page-break-lines-modes', then
 `page-break-lines-mode' will be enabled."
   (if (and (not (minibufferp (current-buffer)))
-           (memq major-mode page-break-lines-modes))
+           (apply 'derived-mode-p page-break-lines-modes))
       (page-break-lines-mode 1)))
 
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]