* Separator "::" -> what is it for in headlines?
@ 2021-05-01 13:11 Ypo
2021-05-01 17:18 ` Diego Zamboni
0 siblings, 1 reply; 5+ messages in thread
From: Ypo @ 2021-05-01 13:11 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 466 bytes --]
Why does the separator "::" work with headlines?
Example:
* Headline with separator :: This would be the description of a list,
but what is it here?
> 2.6 Plain Lists
>
> /Description /list items are unordered list items, and contain the
> separator ‘::’ to distinguish the description term from the description.
>
> - Sean Astin :: He plays Sam, Frodo's friend. I still remember him
> very well from his role as Mikey Walsh in /The Goonies/.
>
[-- Attachment #2.1: Type: text/html, Size: 831 bytes --]
[-- Attachment #2.2: pcgahmbpkjbeolhh.png --]
[-- Type: image/png, Size: 2651 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Separator "::" -> what is it for in headlines?
2021-05-01 13:11 Separator "::" -> what is it for in headlines? Ypo
@ 2021-05-01 17:18 ` Diego Zamboni
2021-05-02 11:28 ` Ypo
0 siblings, 1 reply; 5+ messages in thread
From: Diego Zamboni @ 2021-05-01 17:18 UTC (permalink / raw)
To: Ypo; +Cc: Org-mode
[-- Attachment #1.1: Type: text/plain, Size: 464 bytes --]
Why does the separator "::" work with headlines?
>
It doesn't seem to have any effect for me, it gets handled as part of the
headline, both in fontification and in exports:
[image: image.png]
[image: image.png]
Which is, as I understand it, as it should be, since it doesn't have any
special meaning in headlines.
In your case it seems indeed to be getting fontified as if it were a list.
What version of Org do you have? I am using 9.5 on Emacs 27.2.
--Diego
[-- Attachment #1.2: Type: text/html, Size: 991 bytes --]
[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 12570 bytes --]
[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 16683 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Separator "::" -> what is it for in headlines?
2021-05-01 17:18 ` Diego Zamboni
@ 2021-05-02 11:28 ` Ypo
2021-05-02 12:21 ` Ihor Radchenko
0 siblings, 1 reply; 5+ messages in thread
From: Ypo @ 2021-05-02 11:28 UTC (permalink / raw)
To: Diego Zamboni; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 767 bytes --]
Hi!
I have updated to:
GNU Emacs 27.2 (build 1, i686-w64-mingw32)
Org mode version 9.4.5 (9.4.5-29-gc43041-elpa
Same issue:
* *To **the left of* :: it's bold
Note: I coudn't find Org mode version 9.5, just 9.4.5
Best regards,
Ypo
El 01/05/2021 a las 19:18, Diego Zamboni escribió:
>
> Why does the separator "::" work with headlines?
>
> It doesn't seem to have any effect for me, it gets handled as part of
> the headline, both in fontification and in exports:
>
> image.png
> image.png
>
> Which is, as I understand it, as it should be, since it doesn't have
> any special meaning in headlines.
>
> In your case it seems indeed to be getting fontified as if it were a
> list. What version of Org do you have? I am using 9.5 on Emacs 27.2.
>
> --Diego
[-- Attachment #2.1: Type: text/html, Size: 2279 bytes --]
[-- Attachment #2.2: image.png --]
[-- Type: image/png, Size: 12570 bytes --]
[-- Attachment #2.3: image.png --]
[-- Type: image/png, Size: 16683 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Separator "::" -> what is it for in headlines?
2021-05-02 11:28 ` Ypo
@ 2021-05-02 12:21 ` Ihor Radchenko
2021-05-02 17:31 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2021-05-02 12:21 UTC (permalink / raw)
To: Ypo; +Cc: Diego Zamboni, Org-mode
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
Ypo <ypuntot@gmail.com> writes:
> Same issue:
> * *To **the left of* :: it's bold
I can reproduce. The issue appears only in level 1 headlines because of
wrong regexp in font-lock-keywords. The attach patch should fix the
problem.
Best,
Ihor
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-description-list-item-regexp-when-fontifying-ite.patch --]
[-- Type: text/x-diff, Size: 1248 bytes --]
From 791471a5f28723f5d3b34a9345795e0f2902b9b6 Mon Sep 17 00:00:00 2001
Message-Id: <791471a5f28723f5d3b34a9345795e0f2902b9b6.1619957998.git.yantar92@gmail.com>
From: Ihor Radchenko <yantar92@gmail.com>
Date: Sun, 2 May 2021 20:16:44 +0800
Subject: [PATCH] Fix description list item regexp when fontifying "*" items
* lisp/org.el (org-set-font-lock-defaults): Avoid fontifying headlines
with "::" as description list items. Lists can start with "*", but
"*" must not be at the beginning of line. Old regexp did not require
whitespace before "*" in description list items.
---
lisp/org.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index 5cc37a57e..53ff5d463 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5582,7 +5582,7 @@ (defun org-set-font-lock-defaults ()
'("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
(0 (org-get-checkbox-statistics-face) prepend)))
;; Description list items
- '("^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)"
+ '("\\(?:^[ \t]*[-+]\\|^[ \t]+[*]\\)[ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)"
1 'org-list-dt prepend)
;; Inline export snippets
'("\\(@@\\)\\([a-z-]+:\\).*?\\(@@\\)"
--
2.26.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Separator "::" -> what is it for in headlines?
2021-05-02 12:21 ` Ihor Radchenko
@ 2021-05-02 17:31 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2021-05-02 17:31 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Ypo, Diego Zamboni, Org-mode
Hi Ihor,
Ihor Radchenko <yantar92@gmail.com> writes:
> I can reproduce. The issue appears only in level 1 headlines because of
> wrong regexp in font-lock-keywords. The attach patch should fix the
> problem.
Applied in maint, thanks a lot!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-02 17:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-01 13:11 Separator "::" -> what is it for in headlines? Ypo
2021-05-01 17:18 ` Diego Zamboni
2021-05-02 11:28 ` Ypo
2021-05-02 12:21 ` Ihor Radchenko
2021-05-02 17:31 ` Bastien
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.