emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug#13668: 24.2.93; strike-through in org mode
       [not found] <87fw153vsd.fsf@gnu.org>
@ 2013-02-10  4:25 ` Bastien
  2013-02-10 13:00   ` Roland Winkler
       [not found]   ` <20759.39415.151607.366601@gargle.gargle.HOWL>
  0 siblings, 2 replies; 7+ messages in thread
From: Bastien @ 2013-02-10  4:25 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 13668

Hi Roland,

"Roland Winkler" <winkler@gnu.org> writes:

> visit the following org file with emacs -Q
>
> cat > foo.org <<EOF
> * foo
>   bar (+.2 to .5)
>   baz (+.2 to .5)
>
>   bar (+.2 to .5)
>   baz  +.2 to .5)
> EOF
>
> Why are part of the second and third line striked through?

Because "+" tries to add fontification.

> According to the org info pages there is some regexp-based feature
> of that kind. 

Yes, see `org-emphasis-regexp-components'.

> But it appears to me that this feature could use a
> more sophisticated regexp matcher. Note that the 5th and 6th line
> are not striked through.

Because the space isn't allowed within +...+ fontified constructs.

> Also, as an occassional org mode user without a need for very fancy
> things, I am wondering whether I can simply switch off such
> structural markup elements. 

(setq org-fontify-emphasized-text nil)

> The org info node on structural markup
> elements does not mention such a possibility. 

Mhh.. yes, I'll perhaps update the manual, or just add a Worg 
FAQ for this.

> I would prefer if, as a
> general strategy, the default values for such features were less
> aggressive.

We try to not make them agressive.  But the text you quoted above
looks like an example that could be in fixed-with block like this :

:  bar (+.2 to .5)
:  baz (+.2 to .5)

:  bar (+.2 to .5)
:  baz  +.2 to .5)

or in another block where *...* constructs are not fontified.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13668: 24.2.93; strike-through in org mode
  2013-02-10  4:25 ` bug#13668: 24.2.93; strike-through in org mode Bastien
@ 2013-02-10 13:00   ` Roland Winkler
       [not found]   ` <20759.39415.151607.366601@gargle.gargle.HOWL>
  1 sibling, 0 replies; 7+ messages in thread
From: Roland Winkler @ 2013-02-10 13:00 UTC (permalink / raw)
  To: Bastien; +Cc: 13668

On Sun Feb 10 2013 Bastien wrote:
> > But it appears to me that this feature could use a
> > more sophisticated regexp matcher. Note that the 5th and 6th line
> > are not striked through.
> 
> Because the space isn't allowed within +...+ fontified constructs.

There are spaces both between the 2nd and 3rd line, and between the
5th and 6th line. -- Possibly, the regexp matcher could distinguish
in a smarter way between  word constituents and no word constituents.

> (setq org-fontify-emphasized-text nil)

Thanks, I'll use that.

> > The org info node on structural markup
> > elements does not mention such a possibility. 
> 
> Mhh.. yes, I'll perhaps update the manual, or just add a Worg 
> FAQ for this.

Why put this in a separate FAQ? Aren't the info pages the first
source of information for such things?

Roland

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13668: 24.2.93; strike-through in org mode
       [not found]   ` <20759.39415.151607.366601@gargle.gargle.HOWL>
@ 2013-02-10 16:27     ` Bastien
       [not found]     ` <87zjzc2kxx.fsf@bzg.ath.cx>
  1 sibling, 0 replies; 7+ messages in thread
From: Bastien @ 2013-02-10 16:27 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 13668

Hi Roland,

"Roland Winkler" <winkler@gnu.org> writes:

> There are spaces both between the 2nd and 3rd line, and between the
> 5th and 6th line. -- Possibly, the regexp matcher could distinguish
> in a smarter way between  word constituents and no word constituents.

Sorry I wasn't clear: by default, space is not allowed after the first
"*" and before the second "*".

But yes, `org-emphasis-regexp-components' is perhaps too complex and
we have been thinking of implementing this another way.  Stay tuned.

>> (setq org-fontify-emphasized-text nil)
>
> Thanks, I'll use that.
>
>> > The org info node on structural markup
>> > elements does not mention such a possibility. 
>> 
>> Mhh.. yes, I'll perhaps update the manual, or just add a Worg 
>> FAQ for this.
>
> Why put this in a separate FAQ? Aren't the info pages the first
> source of information for such things?

Depends.  We try to keep the info manual readable, and it's already
quite long.  If you can find a good place in the manual, please send
a patch.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13668: 24.2.93; strike-through in org mode
       [not found]     ` <87zjzc2kxx.fsf@bzg.ath.cx>
@ 2013-02-10 17:08       ` Roland Winkler
       [not found]       ` <20759.54259.751629.173184__25253.7636356012$1360516174$gmane$org@gargle.gargle.HOWL>
  1 sibling, 0 replies; 7+ messages in thread
From: Roland Winkler @ 2013-02-10 17:08 UTC (permalink / raw)
  To: Bastien; +Cc: 13668

On Sun Feb 10 2013 Bastien wrote:
> > Why put this in a separate FAQ? Aren't the info pages the first
> > source of information for such things?
> 
> Depends.  We try to keep the info manual readable, and it's already
> quite long.  If you can find a good place in the manual, please send
> a patch.

I do not find the info nodes on "Structural markup elements"
particularly overloaded. The node "Emphasis and monospace" is just
one short paragraph, and org-fontify-emphasized-text could esily be
mentioned there -- unless this variable also affects other things,
so that it should be mentioned higher up in the node hierarchy.

If such things get distributed among different places, an info
manual plus a separate FAQ, they get yet more confusing, in
particular for casual users of org mode. Many users will not even
know (or expect) that the info manual does not give them the full
story, but they need to consult other sources, too.

Take the elisp manual: it's pretty big. But I like it because its
authors are pretty good in making it an *efficient* and *reliable*
source of information. (Here I'd like to put these words in bold,
because I really appreciate this!)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13668: 24.2.93; strike-through in org mode
       [not found]       ` <20759.54259.751629.173184__25253.7636356012$1360516174$gmane$org@gargle.gargle.HOWL>
@ 2013-02-10 17:12         ` Bastien
       [not found]         ` <87d2w82ivf.fsf@bzg.ath.cx>
  1 sibling, 0 replies; 7+ messages in thread
From: Bastien @ 2013-02-10 17:12 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 13668

"Roland Winkler" <winkler@gnu.org> writes:

> I do not find the info nodes on "Structural markup elements"
> particularly overloaded. The node "Emphasis and monospace" is just
> one short paragraph, and org-fontify-emphasized-text could esily be
> mentioned there -- unless this variable also affects other things,
> so that it should be mentioned higher up in the node hierarchy.

Please provide a patch.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13668: 24.2.93; strike-through in org mode
       [not found]         ` <87d2w82ivf.fsf@bzg.ath.cx>
@ 2013-02-10 17:33           ` Roland Winkler
  2013-02-11 14:04             ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Roland Winkler @ 2013-02-10 17:33 UTC (permalink / raw)
  To: Bastien; +Cc: 13668

On Sun Feb 10 2013 Bastien wrote:
> Please provide a patch.

I'd much appreciate if the org developers could do that. I have
enough such things on my own emacs agenda,

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#13668: 24.2.93; strike-through in org mode
  2013-02-10 17:33           ` Roland Winkler
@ 2013-02-11 14:04             ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2013-02-11 14:04 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 13668

"Roland Winkler" <winkler@gnu.org> writes:

> On Sun Feb 10 2013 Bastien wrote:
>> Please provide a patch.
>
> I'd much appreciate if the org developers could do that. I have
> enough such things on my own emacs agenda,

Done in Org's git repository, thanks.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-11 14:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87fw153vsd.fsf@gnu.org>
2013-02-10  4:25 ` bug#13668: 24.2.93; strike-through in org mode Bastien
2013-02-10 13:00   ` Roland Winkler
     [not found]   ` <20759.39415.151607.366601@gargle.gargle.HOWL>
2013-02-10 16:27     ` Bastien
     [not found]     ` <87zjzc2kxx.fsf@bzg.ath.cx>
2013-02-10 17:08       ` Roland Winkler
     [not found]       ` <20759.54259.751629.173184__25253.7636356012$1360516174$gmane$org@gargle.gargle.HOWL>
2013-02-10 17:12         ` Bastien
     [not found]         ` <87d2w82ivf.fsf@bzg.ath.cx>
2013-02-10 17:33           ` Roland Winkler
2013-02-11 14:04             ` Bastien

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).