From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problems with yasnippet enabled in hidden font locking buffer Date: Wed, 27 Mar 2019 15:31:15 +0100 Message-ID: <878sx0z8wc.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h99aO-0003X6-Dj for emacs-orgmode@gnu.org; Wed, 27 Mar 2019 10:31:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h99aM-0001LL-NX for emacs-orgmode@gnu.org; Wed, 27 Mar 2019 10:31:24 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:37201) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h99aM-0001Jm-Eh for emacs-orgmode@gnu.org; Wed, 27 Mar 2019 10:31:22 -0400 In-Reply-To: (Carlos Pita's message of "Tue, 26 Mar 2019 14:43:56 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Carlos Pita Cc: emacs-orgmode Hello, Carlos Pita 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