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

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

[nongnu] elpa/page-break-lines fc6e1c648c 14/80: Merge pull request #2 f


From: ELPA Syncer
Subject: [nongnu] elpa/page-break-lines fc6e1c648c 14/80: Merge pull request #2 from drothlis/derived-modes
Date: Tue, 5 Sep 2023 04:03:04 -0400 (EDT)

branch: elpa/page-break-lines
commit fc6e1c648cfc4ce9ef53e0dbb77865ef5a535e8a
Merge: 55d36c6af4 4285943db3
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Merge pull request #2 from drothlis/derived-modes
    
    Enable in derived modes of `page-break-lines-modes'
---
 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]