changeset 76880:def0f242e449

(lisp-fill-paragraph): Only obey emacs-lisp-docstring-fill-column in emacs-lisp-mode.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 01 Apr 2007 19:34:21 +0000
parents d703606e395a
children 7adf00808a55
files lisp/emacs-lisp/lisp-mode.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el	Sun Apr 01 19:33:44 2007 +0000
+++ b/lisp/emacs-lisp/lisp-mode.el	Sun Apr 01 19:34:21 2007 +0000
@@ -1280,7 +1280,8 @@
 				     "\\|\\s-*\\([(;:\"]\\|`(\\|#'(\\)"))
 	    (paragraph-separate
 	     (concat paragraph-separate "\\|\\s-*\".*[,\\.]$"))
-            (fill-column (if (integerp emacs-lisp-docstring-fill-column)
+            (fill-column (if (and (integerp emacs-lisp-docstring-fill-column)
+                                  (derived-mode-p 'emacs-lisp-mode))
                              emacs-lisp-docstring-fill-column
                            fill-column)))
 	(fill-paragraph justify))