From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: 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: Mon, 11 Feb 2019 19:30:22 -0300 Message-ID: <87bm3it0u9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtK61-0004st-PX for emacs-orgmode@gnu.org; Mon, 11 Feb 2019 17:30:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtK60-0004vK-TA for emacs-orgmode@gnu.org; Mon, 11 Feb 2019 17:30:37 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:38757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtK60-0004o5-4v for emacs-orgmode@gnu.org; Mon, 11 Feb 2019 17:30:36 -0500 Received: by mail-qk1-x732.google.com with SMTP id p15so5843992qkl.5 for ; Mon, 11 Feb 2019 14:30:31 -0800 (PST) Received: from neu ([181.228.213.205]) by smtp.gmail.com with ESMTPSA id u27sm13186381qte.48.2019.02.11.14.30.29 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 14:30:30 -0800 (PST) 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: emacs-orgmode@gnu.org According to the docstring: ``` (defun org-toggle-latex-fragment (&optional arg) "Preview the LaTeX fragment at point, or all locally or globally. If the cursor is on a LaTeX fragment, create the image and overlay it over the source code, if there is none. Remove it otherwise. **If there is no fragment at point, display all fragments in the current section**. ``` Notice the last sentence. Nevertheless C-c C-x C-l acts like a toggle that will remove all previews as far as there is at least one preview active, that is a toggle with a preference to UNdisplay all fragments in the current section. Now, there is C-u C-u C-c C-x C-l for that. AFAICS, the current situation is such that there is no way to get a full preview of an entire section when at least one formula is already previewed, except for unpreviewing and repreviewing everything. This is not only inconvenient but also contradicts the docstring and mostly overlaps the C-u C-u case. I suggest to make C-c C-x C-l a toggle with preference for previewing, that is: preview everything except when everything is already previewed. Regards -- Carlos --- Emacs : GNU Emacs 26.1.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-02-10 Package: Org mode version 9.2.1 (release_9.2.1-60-gb0379f @ /home/carlos/local/stow/emacs/share/emacs/site-lisp/org/)