From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: Bug: org-toggle-latex-fragment doesn't work as documented [9.2.1 (release_9.2.1-60-gb0379f @ /home/carlos/local/stow/emacs/share/emacs/site-lisp/org/)] Date: Wed, 13 Feb 2019 13:43:03 -0300 Message-ID: References: <87bm3it0u9.fsf@gmail.com> <874l98vfxw.fsf@nicolasgoaziou.fr> <87va1otypx.fsf@nicolasgoaziou.fr> <87a7izu5n4.fsf@nicolasgoaziou.fr> <87r2cbsllf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtxdH-0007C5-Bw for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 11:43:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtxd8-0003QS-Hq for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 11:43:30 -0500 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:41349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtxcz-00034c-Qe for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 11:43:18 -0500 Received: by mail-yb1-xb34.google.com with SMTP id o81so1164621yba.8 for ; Wed, 13 Feb 2019 08:43:16 -0800 (PST) In-Reply-To: <87r2cbsllf.fsf@nicolasgoaziou.fr> 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 , emacs-orgmode Ok, let's make this more concrete so I can start working on it then. Alternative A: Provide three functions: org-toggle-latex-fragment: bound to C-c C-x C-l has an optional argument arg delegates to org-preview-latex-section if necessary (outside of fragment or C-u) org-preview-latex-section: unbound has an optional argument remove org-preview-latex-all: unbound has an optional argument remove ---- Alternative B: Do some cosmetic changes to org-toggle-latex-fragment and provide the following bindings: C-c C-x C-l: toggle fragment or preview section C-u C-c C-x C-l: unpreview section C-u C-u C-c C-x C-l: preview document C-u C-u C-u C-c C-x C-l: unpreview document I favor alternative B since it's a simpler change and the only awful binding is the (by far) less useful one.