aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Manheimer2011-05-23 11:03:04 -0400
committerKen Manheimer2011-05-23 11:03:04 -0400
commit381987c3504943e65eb920bed05e4a3599ef3a96 (patch)
treee8575267e8cebb60573513f3ed1b7d202e19829a
parentb776bc70b7ef7d5fb88d4e66a75c9215fa2fb6a3 (diff)
downloademacs-381987c3504943e65eb920bed05e4a3599ef3a96.tar.gz
emacs-381987c3504943e65eb920bed05e4a3599ef3a96.zip
* allout.el (allout-inhibit-auto-fill-on-headline): Create new
customization variable and implement: If non-nil, auto-fill will be inhibited while on topic's header line.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/allout.el10
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7844240186e..1098bdd8224 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-05-23 Ken Manheimer <ken.manheimer@gmail.com>
2
3 * allout.el (allout-inhibit-auto-fill-on-headline): Create new
4 customization variable and implement: If non-nil, auto-fill will
5 be inhibited while on topic's header line.
6
12011-05-23 Vincent Belaïche <vincentb1@users.sourceforge.net> 72011-05-23 Vincent Belaïche <vincentb1@users.sourceforge.net>
2 8
3 * play/5x5.el: I/ Add an arithmetic solver to suggest positions to 9 * play/5x5.el: I/ Add an arithmetic solver to suggest positions to
diff --git a/lisp/allout.el b/lisp/allout.el
index 16a816549d2..168ba6edd3d 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -399,6 +399,12 @@ else allout's special hanging-indent maintaining auto-fill function,
399 :type 'boolean 399 :type 'boolean
400 :group 'allout) 400 :group 'allout)
401(make-variable-buffer-local 'allout-inhibit-auto-fill) 401(make-variable-buffer-local 'allout-inhibit-auto-fill)
402;;;_ = allout-inhibit-auto-fill-on-headline
403(defcustom allout-inhibit-auto-fill-on-headline nil
404 "If non-nil, auto-fill will be inhibited while on topic's header line."
405 :type 'boolean
406 :group 'allout)
407(make-variable-buffer-local 'allout-inhibit-auto-fill-on-headline)
402;;;_ = allout-use-hanging-indents 408;;;_ = allout-use-hanging-indents
403(defcustom allout-use-hanging-indents t 409(defcustom allout-use-hanging-indents t
404 "If non-nil, topic body text auto-indent defaults to indent of the header. 410 "If non-nil, topic body text auto-indent defaults to indent of the header.
@@ -3848,7 +3854,9 @@ topic prior to the current one."
3848Maintains outline hanging topic indentation if 3854Maintains outline hanging topic indentation if
3849`allout-use-hanging-indents' is set." 3855`allout-use-hanging-indents' is set."
3850 3856
3851 (when (not allout-inhibit-auto-fill) 3857 (when (and (not allout-inhibit-auto-fill)
3858 (or (not allout-inhibit-auto-fill-on-headline)
3859 (not (allout-on-current-heading-p))))
3852 (let ((fill-prefix (if allout-use-hanging-indents 3860 (let ((fill-prefix (if allout-use-hanging-indents
3853 ;; Check for topic header indentation: 3861 ;; Check for topic header indentation:
3854 (save-match-data 3862 (save-match-data