emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda-current-time-string partly fontified with emphasis
@ 2017-09-06 21:44 Samuel Wales
  2017-09-06 23:16 ` Samuel Wales
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2017-09-06 21:44 UTC (permalink / raw)
  To: emacs-orgmode

in the new release, org-agenda-current-time-string is partly fontified
if it contains emphasis like "=== test ===".  my guess is best to not
fontify as it is not possible to
fix unless you turn it off for the entire buffer.

-- 
The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

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

* Re: org-agenda-current-time-string partly fontified with emphasis
  2017-09-06 21:44 org-agenda-current-time-string partly fontified with emphasis Samuel Wales
@ 2017-09-06 23:16 ` Samuel Wales
  2017-09-07 12:58   ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2017-09-06 23:16 UTC (permalink / raw)
  To: emacs-orgmode

On 9/6/17, Samuel Wales <samologist@gmail.com> wrote:
> in the new release, org-agenda-current-time-string is partly fontified
> if it contains emphasis like "=== test ===".  my guess is best to not
> fontify as it is not possible to
> fix unless you turn it off for the entire buffer.

the above is correct, but the cause is possibly related to the fact
that there is an emphasis change from 9.0.

before, "===" in the outline would not be fontified.  now it is.

can this be turned off?  i use "===" specifically in the outline and
would prefer it in a default font, while preserving =this emphasis=.

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

* Re: org-agenda-current-time-string partly fontified with emphasis
  2017-09-06 23:16 ` Samuel Wales
@ 2017-09-07 12:58   ` Nicolas Goaziou
  2017-09-07 23:01     ` Samuel Wales
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2017-09-07 12:58 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

> On 9/6/17, Samuel Wales <samologist@gmail.com> wrote:
>> in the new release, org-agenda-current-time-string is partly fontified
>> if it contains emphasis like "=== test ===".  my guess is best to not
>> fontify as it is not possible to
>> fix unless you turn it off for the entire buffer.
>
> the above is correct, but the cause is possibly related to the fact
> that there is an emphasis change from 9.0.
>
> before, "===" in the outline would not be fontified.  now it is.

Indeed. === really means "=" character in verbatim markup.

> can this be turned off?

You may be able to tweak fontification to ignore this special case. See
`org-font-lock-set-keywords-hook' to install a special rule for.

It will work as long as you don't export the document. For that case,
you could write a filter turning multiple "=" into "\equal".

Regards,

-- 
Nicolas Goaziou

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

* Re: org-agenda-current-time-string partly fontified with emphasis
  2017-09-07 12:58   ` Nicolas Goaziou
@ 2017-09-07 23:01     ` Samuel Wales
  2017-09-08 11:39       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2017-09-07 23:01 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

On 9/7/17, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Indeed. === really means "=" character in verbatim markup.

fyi but not in all of the agenda current time string.  just the first
part in my example.

> You may be able to tweak fontification to ignore this special case. See
> `org-font-lock-set-keywords-hook' to install a special rule for.

are there examples of the usage of this?

> It will work as long as you don't export the document. For that case,
> you could write a filter turning multiple "=" into "\equal".

is there a filter that will change instances /before/ they get
converted by a backend?  depending on the backend sometimes i want ===
and sometimes a suitable short centered separator.  i don't want to
use hyphens, and org's separator is page-wide.

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

* Re: org-agenda-current-time-string partly fontified with emphasis
  2017-09-07 23:01     ` Samuel Wales
@ 2017-09-08 11:39       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2017-09-08 11:39 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

>> You may be able to tweak fontification to ignore this special case. See
>> `org-font-lock-set-keywords-hook' to install a special rule for.
>
> are there examples of the usage of this?

There is one in "contrib/lisp/org-wikinodes.el".

>> It will work as long as you don't export the document. For that case,
>> you could write a filter turning multiple "=" into "\equal".
>
> is there a filter that will change instances /before/ they get
> converted by a backend?

There are two of them: `org-export-before-processing-hook' and
`org-export-before-parsing-hook'.

> i don't want to use hyphens, and org's separator is page-wide.

It depends on the export back-end. You can control the width of the
separator in "latex" and "ascii" back-ends.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2017-09-08 11:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 21:44 org-agenda-current-time-string partly fontified with emphasis Samuel Wales
2017-09-06 23:16 ` Samuel Wales
2017-09-07 12:58   ` Nicolas Goaziou
2017-09-07 23:01     ` Samuel Wales
2017-09-08 11:39       ` Nicolas Goaziou

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