Don't enable compact-docstrings-mode in Gnus's summary buffer
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 15 Jul 2016 05:14:59 +0000 (01:14 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 15 Jul 2016 05:14:59 +0000 (01:14 -0400)
* 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.

packages/compact-docstrings/compact-docstrings.el

index 5a2b856..584c9ca 100644 (file)
@@ -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