From: Michael Brand <michael.ch.brand@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: alignment of description list in Org and export old and new
Date: Sun, 10 Jun 2012 18:39:53 +0200 [thread overview]
Message-ID: <CALn3zojFG8FKHNfbAJgauaPvbu7Z-15wbquB91_X1UKhN9Hpcw@mail.gmail.com> (raw)
In-Reply-To: <CALn3zogKq8wzjzg41wk-euwxrFbziqp+fPkQkruD06ciiekteg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 955 bytes --]
Hi all
2012-06-02 Michael Brand <michael.ch.brand@gmail.com>:
> [...]
>
> - cmd --log-level=wrn -o <dst> <src> ::
> long term + long descr bla bla bla bla
> bla bla bla bla bla bla bla bla bla bla
> bla bla bla bla bla bla bla bla bla
>
> [...]
>
> M-q on the item "long term + long descr" that is aligned manually as
> shown first will be stable only after a second M-q instead of already
> after the first M-q with release_7.8.10-633 on 23.3.1.
The attached patch resolves also the above issue:
Description list: improve regexp consistency
* lisp/org-list.el (org-at-item-description-p,
org-list-item-body-column): Make the inline regexp more consistent
with `org-list-full-item-re', the inline regexp "Description list
items" from `org-set-font-lock-defaults and others'.
This resolves some issues with M-q (org-fill-paragraph) on description
lists.
Michael
[-- Attachment #2: 0001-Description-list-improve-regexp-consistency.patch.txt --]
[-- Type: text/plain, Size: 1594 bytes --]
From 6f642be9974cf153f636a2f3870f63502203fe13 Mon Sep 17 00:00:00 2001
From: Michael Brand <michael.ch.brand@gmail.com>
Date: Sun, 10 Jun 2012 18:35:39 +0200
Subject: [PATCH] Description list: improve regexp consistency
* lisp/org-list.el (org-at-item-description-p,
org-list-item-body-column): Make the inline regexp more consistent
with `org-list-full-item-re', the inline regexp "Description list
items" from `org-set-font-lock-defaults and others'.
This resolves some issues with M-q (org-fill-paragraph) on description
lists.
---
lisp/org-list.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 648497f..c6dcb79 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -489,7 +489,7 @@ group 4: description tag")
(defun org-at-item-description-p ()
"Is point at a description list item?"
- (org-list-at-regexp-after-bullet-p "\\(\\S-.+\\)[ \t]+::[ \t]+"))
+ (org-list-at-regexp-after-bullet-p "\\(\\S-.+\\)[ \t]+::\\([ \t]+\\|$\\)"))
(defun org-at-item-checkbox-p ()
"Is point at a line starting a plain-list item with a checklet?"
@@ -2035,7 +2035,7 @@ Possible values are: `folded', `children' or `subtree'. See
(let (bpos bcol tpos tcol)
(save-excursion
(goto-char item)
- (looking-at "[ \t]*\\(\\S-+\\)\\(.*[ \t]+::\\)?[ \t]+")
+ (looking-at "[ \t]*\\(\\S-+\\)\\(.*[ \t]+::\\)?\\([ \t]+\\|$\\)")
(setq bpos (match-beginning 1) tpos (match-end 0)
bcol (progn (goto-char bpos) (current-column))
tcol (progn (goto-char tpos) (current-column)))
--
1.7.4.2
next prev parent reply other threads:[~2012-06-10 16:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 9:18 alignment of description list in Org and export old and new Michael Brand
2012-06-04 3:36 ` Jambunathan K
2012-06-05 19:48 ` Michael Brand
2012-06-09 12:26 ` Nicolas Goaziou
2012-06-10 16:39 ` Michael Brand [this message]
2012-06-12 12:37 ` Nicolas Goaziou
2012-07-31 15:33 ` Michael Brand
2012-08-01 14:09 ` Michael Brand
2012-08-01 14:17 ` Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALn3zojFG8FKHNfbAJgauaPvbu7Z-15wbquB91_X1UKhN9Hpcw@mail.gmail.com \
--to=michael.ch.brand@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.