From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Alan L Tyree <alantyree@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [html] non-lists showing up as lists
Date: Sun, 02 Jun 2013 11:12:38 +0200 [thread overview]
Message-ID: <87hahgx4e1.fsf@gmail.com> (raw)
In-Reply-To: <87ppw5vtb2.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 02 Jun 2013 09:57:21 +0200")
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.el-Slight-change-to-filling-mechanism.patch --]
[-- Type: text/x-patch, Size: 2172 bytes --]
From 0b3480cf161d58cbf0bd337fd1a7fabbe2aae0c3 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <n.goaziou@gmail.com>
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
next prev parent reply other threads:[~2013-06-02 9:12 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-31 16:54 [html] non-lists showing up as lists Samuel Wales
2013-05-31 17:01 ` Nicolas Goaziou
2013-05-31 20:39 ` Alan L Tyree
2013-06-01 6:39 ` Nicolas Goaziou
2013-06-01 19:35 ` Alan L Tyree
2013-06-02 7:57 ` Nicolas Goaziou
2013-06-02 9:12 ` Nicolas Goaziou [this message]
2013-06-02 20:24 ` Alan L Tyree
2013-06-02 21:40 ` Nick Dokos
2013-06-02 23:05 ` Alan L Tyree
2013-06-03 2:17 ` Nick Dokos
2013-06-03 4:29 ` Alan L Tyree
2013-06-03 5:40 ` Samuel Wales
2013-06-03 5:45 ` Alan L Tyree
2013-06-03 7:52 ` Carsten Dominik
2013-06-03 19:59 ` Alan L Tyree
2013-06-06 16:37 ` Bernt Hansen
2013-06-06 17:25 ` Samuel Wales
2013-06-01 20:10 ` Samuel Wales
2013-06-01 20:18 ` Samuel Wales
2013-06-01 22:58 ` Alan L Tyree
-- strict thread matches above, loose matches on Subject: below --
2013-06-03 9:54 Michael Strey
2013-06-03 10:05 ` Carsten Dominik
2013-06-03 16:28 ` Samuel Wales
2013-06-04 10:02 ` Bastien
2013-06-04 17:49 ` Samuel Wales
2013-06-06 10:26 Michael Strey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hahgx4e1.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=alantyree@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).