emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* newline element of org-emphasis-regexp-components no longer honored?
@ 2016-11-08 21:39 Eric Abrahamsen
  2016-11-08 21:48 ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2016-11-08 21:39 UTC (permalink / raw)
  To: emacs-orgmode

So far as I can tell, the last element of this option is no longer
honored -- I've had it set to 3 for ages, but highlighting and export
only accept 1. I'm on Emacs git, and org-plus-contrib from Elpa.

Does anyone else see this?

E

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

* Re: newline element of org-emphasis-regexp-components no longer honored?
  2016-11-08 21:39 newline element of org-emphasis-regexp-components no longer honored? Eric Abrahamsen
@ 2016-11-08 21:48 ` Eric Abrahamsen
  2016-11-11 10:01   ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2016-11-08 21:48 UTC (permalink / raw)
  To: emacs-orgmode

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> So far as I can tell, the last element of this option is no longer
> honored -- I've had it set to 3 for ages, but highlighting and export
> only accept 1. I'm on Emacs git, and org-plus-contrib from Elpa.
>
> Does anyone else see this?
>
> E

To provide more information, I use this to set the final element (and
some other elements):

(setf (nth 4 org-emphasis-regexp-components) 3)

That's always done the trick in the past. I just checked `org-emph-re',
and indeed it is still at the default value.

Has anything changed about how this variable is set?

E

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

* Re: newline element of org-emphasis-regexp-components no longer honored?
  2016-11-08 21:48 ` Eric Abrahamsen
@ 2016-11-11 10:01   ` Nicolas Goaziou
  2016-11-11 16:43     ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-11-11 10:01 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

Hello,

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> So far as I can tell, the last element of this option is no longer
>> honored -- I've had it set to 3 for ages, but highlighting and export
>> only accept 1. I'm on Emacs git, and org-plus-contrib from Elpa.
>>
>> Does anyone else see this?
>>
>> E
>
> To provide more information, I use this to set the final element (and
> some other elements):
>
> (setf (nth 4 org-emphasis-regexp-components) 3)
>
> That's always done the trick in the past. I just checked `org-emph-re',
> and indeed it is still at the default value.
>
> Has anything changed about how this variable is set?

`org-emphasis-regexp-components' was moved to a defvar instead of
a defcustom a long time ago (around 8.0 release). So you probably need
to call `org-set-emph-re' with appropriate arguments to update regexps.

Regards,

-- 
Nicolas Goaziou

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

* Re: newline element of org-emphasis-regexp-components no longer honored?
  2016-11-11 10:01   ` Nicolas Goaziou
@ 2016-11-11 16:43     ` Eric Abrahamsen
  2016-11-11 22:14       ` Samuel Wales
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2016-11-11 16:43 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> So far as I can tell, the last element of this option is no longer
>>> honored -- I've had it set to 3 for ages, but highlighting and export
>>> only accept 1. I'm on Emacs git, and org-plus-contrib from Elpa.
>>>
>>> Does anyone else see this?
>>>
>>> E
>>
>> To provide more information, I use this to set the final element (and
>> some other elements):
>>
>> (setf (nth 4 org-emphasis-regexp-components) 3)
>>
>> That's always done the trick in the past. I just checked `org-emph-re',
>> and indeed it is still at the default value.
>>
>> Has anything changed about how this variable is set?
>
> `org-emphasis-regexp-components' was moved to a defvar instead of
> a defcustom a long time ago (around 8.0 release). So you probably need
> to call `org-set-emph-re' with appropriate arguments to update regexps.

Well weird, I was sure it was still working up until recently. Anyway,
I'll adjust my setup.

Thanks!
Eric

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

* Re: newline element of org-emphasis-regexp-components no longer honored?
  2016-11-11 16:43     ` Eric Abrahamsen
@ 2016-11-11 22:14       ` Samuel Wales
  2016-11-11 23:05         ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Samuel Wales @ 2016-11-11 22:14 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

fyi, it might be just me, but i do not understand the docstring to set-emph-re.

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

* Re: newline element of org-emphasis-regexp-components no longer honored?
  2016-11-11 22:14       ` Samuel Wales
@ 2016-11-11 23:05         ` Eric Abrahamsen
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Abrahamsen @ 2016-11-11 23:05 UTC (permalink / raw)
  To: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> fyi, it might be just me, but i do not understand the docstring to set-emph-re.

It's highly confusing -- the code, too. I can only guess that you're
supposed to put your modifications to org-emphasis-regexp-components
in the arguments to `org-set-emph-re'. Like:

(org-set-emph-re
  'org-emphasis-regexp-components
  (setf (nth 4 org-emphasis-regexp-components) 3))

Except if I've setf-ed, I don't need the (set var val) thing at all.
Just calling the function without that sexp, and with no args, would do
the trick.

What am I missing?

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

end of thread, other threads:[~2016-11-11 23:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-08 21:39 newline element of org-emphasis-regexp-components no longer honored? Eric Abrahamsen
2016-11-08 21:48 ` Eric Abrahamsen
2016-11-11 10:01   ` Nicolas Goaziou
2016-11-11 16:43     ` Eric Abrahamsen
2016-11-11 22:14       ` Samuel Wales
2016-11-11 23:05         ` Eric Abrahamsen

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