[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [html] non-lists showing up as lists
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [html] non-lists showing up as lists |
Date: |
Sun, 02 Jun 2013 11:12:38 +0200 |
Completing myself:
Additionally, you may want to try the following patch (against maint
branch), which takes a slightly different approach for filling.
Regards,
--
Nicolas Goaziou
>From 0b3480cf161d58cbf0bd337fd1a7fabbe2aae0c3 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <address@hidden>
Date: Sun, 2 Jun 2013 11:12:02 +0200
Subject: [PATCH] org.el: Slight change to filling mechanism
* lisp/org.el (org-setup-filling): Set `paragraph-start' and
`paragraph-separate'.
(org-fill-paragraph-separate-nobreak-p): Remove function.
---
lisp/org.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index b9e6d9e..60c5475 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -22068,28 +22068,26 @@ hierarchy of headlines by UP levels before marking
the subtree."
;; `org-setup-filling' installs filling and auto-filling related
;; variables during `org-mode' initialization.
+(defvar org-element-paragraph-separate) ; org-element.el
(defun org-setup-filling ()
- (interactive)
+ (require 'org-element)
;; Prevent auto-fill from inserting unwanted new items.
(when (boundp 'fill-nobreak-predicate)
(org-set-local
'fill-nobreak-predicate
(org-uniquify
(append fill-nobreak-predicate
- '(org-fill-paragraph-separate-nobreak-p
- org-fill-line-break-nobreak-p
+ '(org-fill-line-break-nobreak-p
org-fill-paragraph-with-timestamp-nobreak-p)))))
+ (let ((paragraph-ending (substring org-element-paragraph-separate 1)))
+ (org-set-local 'paragraph-start paragraph-ending)
+ (org-set-local 'paragraph-separate paragraph-ending))
(org-set-local 'fill-paragraph-function 'org-fill-paragraph)
(org-set-local 'auto-fill-inhibit-regexp nil)
(org-set-local 'adaptive-fill-function 'org-adaptive-fill-function)
(org-set-local 'normal-auto-fill-function 'org-auto-fill-function)
(org-set-local 'comment-line-break-function
'org-comment-line-break-function))
-(defvar org-element-paragraph-separate) ; org-element.el
-(defun org-fill-paragraph-separate-nobreak-p ()
- "Non-nil when a new line at point would end current paragraph."
- (looking-at (substring org-element-paragraph-separate 1)))
-
(defun org-fill-line-break-nobreak-p ()
"Non-nil when a new line at point would create an Org line break."
(save-excursion
--
1.8.3
- Re: [O] [html] non-lists showing up as lists, Nicolas Goaziou, 2013/06/01
- Re: [O] [html] non-lists showing up as lists, Alan L Tyree, 2013/06/01
- Re: [O] [html] non-lists showing up as lists, Nicolas Goaziou, 2013/06/02
- Re: [O] [html] non-lists showing up as lists,
Nicolas Goaziou <=
- Re: [O] [html] non-lists showing up as lists, Alan L Tyree, 2013/06/02
- Re: [O] [html] non-lists showing up as lists, Nick Dokos, 2013/06/02
- Re: [O] [html] non-lists showing up as lists, Alan L Tyree, 2013/06/02
- Re: [O] [html] non-lists showing up as lists, Nick Dokos, 2013/06/02
- Re: [O] [html] non-lists showing up as lists, Alan L Tyree, 2013/06/03
- Re: [O] [html] non-lists showing up as lists, Samuel Wales, 2013/06/03
- Re: [O] [html] non-lists showing up as lists, Alan L Tyree, 2013/06/03
- Re: [O] [html] non-lists showing up as lists, Carsten Dominik, 2013/06/03
- Re: [O] [html] non-lists showing up as lists, Alan L Tyree, 2013/06/03
- Re: [O] [html] non-lists showing up as lists, Bernt Hansen, 2013/06/06