[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9f346d0 1/5: Don't enable compact-docstrings-mode in Gnus'
From: |
Clément Pit--Claudel |
Subject: |
[elpa] master 9f346d0 1/5: Don't enable compact-docstrings-mode in Gnus's summary buffer |
Date: |
Wed, 11 Nov 2020 00:15:34 -0500 (EST) |
branch: master
commit 9f346d03398a15fd81c4ec507ccaa65389142310
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Don't enable compact-docstrings-mode in Gnus's summary buffer
* compact-docstrings/compact-docstrings.el (compact-docstrings--mode-on):
Don't include the current major mode among the possible parents,
otherwise derived-mode-p never returns nil.
---
compact-docstrings.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compact-docstrings.el b/compact-docstrings.el
index 5a2b856..584c9ca 100644
--- a/compact-docstrings.el
+++ b/compact-docstrings.el
@@ -77,7 +77,7 @@
(defun compact-docstrings--mode-on ()
"Turn on `compact-docstrings-mode', if appropriate."
- (when (derived-mode-p major-mode #'prog-mode)
+ (when (derived-mode-p #'prog-mode)
(compact-docstrings-mode)))
;;;###autoload