emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with yasnippet enabled in hidden font locking buffer
@ 2019-03-26 17:43 Carlos Pita
  2019-03-27 14:31 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Pita @ 2019-03-26 17:43 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

Hi all,

I've been having problems with latex font locking the first time the
internal font locking buffer is created (this with native latex
fontification). It was hard to debug but at a point it became obvious that
the culprit was yas minor mode, which I had globally enabled. I don't think
this global minor mode should be enabled in hidden buffers and I requested
this to be changed [1]. I'll keep you informed of any advance regarding
this matter but, anyway, maybe org mode could also add a hook to
yas-dont-activate-functions in order to disable activation when the buffer
name matches an org mode specific pattern/prefix. Short of every concerned
user taking action here, at least one of the interacting parties (org and
snippet) would have to compromise: (i) yasnippet by disabling its global
minor mode for all hidden buffers and/or those matching an org specific
pattern and/or (ii) org by including a yasnippet specific filter. IMO the
best solution is what I described above: yasnippet disabling its global
minor mode for *all* hidden buffers.

Best regards
--
Carlos

[1] https://github.com/joaotavora/yasnippet/issues/985

[-- Attachment #2: Type: text/html, Size: 1381 bytes --]

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

* Re: Problems with yasnippet enabled in hidden font locking buffer
  2019-03-26 17:43 Problems with yasnippet enabled in hidden font locking buffer Carlos Pita
@ 2019-03-27 14:31 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2019-03-27 14:31 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode

Hello,

Carlos Pita <carlosjosepita@gmail.com> writes:

> I've been having problems with latex font locking the first time the
> internal font locking buffer is created (this with native latex
> fontification). It was hard to debug but at a point it became obvious that
> the culprit was yas minor mode, which I had globally enabled. I don't think
> this global minor mode should be enabled in hidden buffers and I requested
> this to be changed [1]. I'll keep you informed of any advance regarding
> this matter but, anyway, maybe org mode could also add a hook to
> yas-dont-activate-functions in order to disable activation when the buffer
> name matches an org mode specific pattern/prefix. Short of every concerned
> user taking action here, at least one of the interacting parties (org and
> snippet) would have to compromise: (i) yasnippet by disabling its global
> minor mode for all hidden buffers and/or those matching an org specific
> pattern and/or (ii) org by including a yasnippet specific filter. IMO the
> best solution is what I described above: yasnippet disabling its global
> minor mode for *all* hidden buffers.

I don't think the issue belongs to the Org side, and Org needs not be
aware of Yasnippets.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2019-03-27 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-26 17:43 Problems with yasnippet enabled in hidden font locking buffer Carlos Pita
2019-03-27 14:31 ` 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).