Keep paragraph filling from spilling into comment and meta lines

Lines starting with # are now considered paragraph starters.

Patch by Dan Davison
This commit is contained in:
Carsten Dominik 2009-09-06 07:15:11 +02:00
parent 41def5249d
commit 760b1e7d21
1 changed files with 2 additions and 1 deletions

View File

@ -16312,7 +16312,7 @@ which make use of the date at the cursor."
;; text in a line directly attached to a headline would otherwise ;; text in a line directly attached to a headline would otherwise
;; fill the headline as well. ;; fill the headline as well.
(org-set-local 'comment-start-skip "^#+[ \t]*") (org-set-local 'comment-start-skip "^#+[ \t]*")
(org-set-local 'paragraph-separate "\f\\|\\*+ \\|[ ]*$\\|[ \t]*[:|]") (org-set-local 'paragraph-separate "\f\\|\\*+ \\|[ ]*$\\|[ \t]*[:|#]")
;; The paragraph starter includes hand-formatted lists. ;; The paragraph starter includes hand-formatted lists.
(org-set-local (org-set-local
'paragraph-start 'paragraph-start
@ -16320,6 +16320,7 @@ which make use of the date at the cursor."
"\f" "\\|" "\f" "\\|"
"[ ]*$" "\\|" "[ ]*$" "\\|"
"\\*+ " "\\|" "\\*+ " "\\|"
"[ \t]*#" "\\|"
"[ \t]*\\([-+*][ \t]+\\|[0-9]+[.)][ \t]+\\)" "\\|" "[ \t]*\\([-+*][ \t]+\\|[0-9]+[.)][ \t]+\\)" "\\|"
"[ \t]*[:|]" "\\|" "[ \t]*[:|]" "\\|"
"\\$\\$" "\\|" "\\$\\$" "\\|"