emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] multiline description list, partial patch


From: Carsten Dominik
Subject: Re: [Orgmode] multiline description list, partial patch
Date: Thu, 10 Sep 2009 18:40:36 +0200


On Sep 9, 2009, at 9:59 PM, Eric Schulte wrote:

Hi,

I've noticed that the bold face isn't applied to multiline description
lists.

What exactly do you mean here?

 This patch [1] partially fixes the problem, but for some reason
I keep losing the bold.  Any thoughts/ideas?

Maybe you need to add a fontilock-multiline text property?


On a related topic, I'd like to consistently indent my decision list
text, rather than sometimes moving back to the depth of the bold
portion, does anyone else feel similarly and is this supported?

Have you had a look at the variable org-description-max-indent ?
But maybe I am again not clearly understanding what you mean?

- Carsten


thanks -- Eric

Footnotes:
[1]
diff --git a/lisp/org.el b/lisp/org.el
index 39ef466..ed8d776 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4703,7 +4703,7 @@ between words."
               '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
                 (0 (org-get-checkbox-statistics-face) t)))
           ;; Description list items
-          '("^[ \t]*\\([-+*]\\|[0-9]+[.)]\\) +\\(.*? ::\\)"
+          '("^[ \t]*\\([-+*]\\|[0-9]+[.)]\\) +\\(.*?\n?.*? ::\\)"
             2 'bold prepend)
           ;; ARCHIVEd headings
           (list (concat "^\\*+ \\(.*:" org-archive-tag ":.*\\)")
@@ -16272,7 +16272,7 @@ which make use of the date at the cursor."
          (setq column (current-column)))
       ((org-in-item-p)
        (org-beginning-of-item)
- (looking-at "[ \t]*\\(\\S-+\\)[ \t]*\\(\\[[- X]\\][ \t]*\\|.*? :: \ \)?") + (looking-at "[ \t]*\\(\\S-+\\)[ \t]*\\(\\[[- X]\\][ \t]*\\|.*? \n?.*? :: \\)?")
        (setq bpos (match-beginning 1) tpos (match-end 0)
              bcol (progn (goto-char bpos) (current-column))
              tcol (progn (goto-char tpos) (current-column))
@@ -16372,7 +16372,7 @@ In particular, this makes sure hanging paragraphs for hand-formatted lists
work correctly."
  (cond ((looking-at "#[ \t]+")
         (match-string 0))
-       ((looking-at "[ \t]*\\([-*+] .*? :: \\)")
+       ((looking-at "[ \t]*\\([-*+] .*?\n?.*? :: \\)")
         (save-excursion
           (if (> (match-end 1) (+ (match-beginning 1)
                                   org-description-max-indent))




_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]