]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-mode-variables): Prevent adaptive
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Jul 2005 20:13:45 +0000 (20:13 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Jul 2005 20:13:45 +0000 (20:13 +0000)
filling from using prefix when filling a single-line docstring.

lisp/ChangeLog
lisp/emacs-lisp/lisp-mode.el

index 22137878c2b632694dce4af8345cbb0f2319ebb7..747117a279be7ab56878224011c9f6ed583ae664 100644 (file)
@@ -1,7 +1,16 @@
+2005-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/lisp-mode.el (lisp-mode-variables): Prevent adaptive
+       filling from using prefix when filling a single-line docstring.
+
+       * progmodes/flymake.el: Remove useless eval-when-compile.
+
+       * arc-mode.el (archive-lzh-ogm): Reorder save excursion/restriction.
+
 2005-07-04  Richard M. Stallman  <rms@gnu.org>
 
        * textmodes/org.el (org-file-apps-defaults-gnu):
-       Renamed from org-file-apps-defaults-linux.
+       Rename from org-file-apps-defaults-linux.
        (org-default-apps): Don't test system-type for `linux'.
        (org-file-apps): Doc fix.
 
        (org-recalc-marks, org-table-rotate-recalc-marks)
        (org-table-get-specials): Treat "^" and "_" marks.
        (org-table-justify-field-maybe): Optional argument NEW.
-       (org-table-eval-formula): Parsing of the format simplified.  New
-       modes C,I.  Honor the %= parameter in the current table.  Avoid
-       unnecessary re-align by using the NEW argument to
+       (org-table-eval-formula): Parsing of the format simplified.
+       New modes C,I.  Honor the %= parameter in the current table.
+       Avoid unnecessary re-align by using the NEW argument to
        `org-table-justify-field-maybe'.
-       (org-calc-default-modes): Default for date-format mimicks
-       org-mode.
-       (org-agenda, org-timeline): Quote argument in
-       `org-agenda-redo-command'.
+       (org-calc-default-modes): Default for date-format mimicks org-mode.
+       (org-agenda, org-timeline): Quote argument in org-agenda-redo-command.
 
 2005-07-03  Luc Teirlinck  <teirllm@auburn.edu>
 
 
        * emulation/tpu-edt.el (tpu-emacs19-p): Var deleted.
        All references simplified.
-       (tpu-lucid-emacs-p): Renamed from tpu-lucid-emacs19-p.  Uses changed.
+       (tpu-lucid-emacs-p): Rename from tpu-lucid-emacs19-p.  Uses changed.
        (zmacs-regions): Add defvar.
        (repeat-complex-command-map): Everything about that deleted.
 
 
        * mail/rmailsum.el (rmail-summary-redo): Add defvar.
        (rmail-summary-mode-map, rmail-summary-overlay): Defvars moved up.
-       (rmail-new-summary-line-count): Renamed from new-summary-line-count.
+       (rmail-new-summary-line-count): Rename from new-summary-line-count.
        Add defvar.
        (rmail-summary-beginning-of-message): Use with-no-warnings.
        (rmail-summary-first-message, rmail-summary-last-message): Likewise.
index 75dfe313de8aaf31597a0035f8a8f3c4e2ed9fce..8469aec1362e58786e4fdc31892be7a88c4bb14d 100644 (file)
   (setq paragraph-ignore-fill-prefix t)
   (make-local-variable 'fill-paragraph-function)
   (setq fill-paragraph-function 'lisp-fill-paragraph)
+  ;; Adaptive fill mode gets the fill wrong for a one-line paragraph made of
+  ;; a single docstring.  Let's fix it here.
+  (set (make-local-variable 'adaptive-fill-function)
+       (lambda () (if (looking-at "\\s-+\"[^\n\"]+\"\\s-*$") "")))
   ;; Adaptive fill mode gets in the way of auto-fill,
   ;; and should make no difference for explicit fill
   ;; because lisp-fill-paragraph should do the job.