emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2019-02-11 22:30 Carlos Pita
  2019-02-11 22:33 ` Carlos Pita
  2019-02-11 22:51 ` Carlos Pita
  0 siblings, 2 replies; 17+ messages in thread
From: Carlos Pita @ 2019-02-11 22:30 UTC (permalink / raw)
  To: emacs-orgmode


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

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

end of thread, other threads:[~2019-02-14 14:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-11 22:30 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/)] Carlos Pita
2019-02-11 22:33 ` Carlos Pita
2019-02-11 22:51 ` Carlos Pita
2019-02-11 23:15   ` Carlos Pita
2019-02-12 21:45     ` Nicolas Goaziou
2019-02-12 22:00       ` Carlos Pita
2019-02-12 22:43         ` Nicolas Goaziou
2019-02-12 23:23           ` Carlos Pita
2019-02-13 14:25             ` Nicolas Goaziou
2019-02-13 14:53               ` Carlos Pita
2019-02-13 15:10                 ` Carlos Pita
2019-02-13 16:24                   ` Nicolas Goaziou
2019-02-13 16:43                     ` Carlos Pita
2019-02-13 19:38                       ` Carlos Pita
2019-02-14  0:23                         ` Nicolas Goaziou
2019-02-14  1:31                           ` Carlos Pita
2019-02-14 14:52                             ` 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).