org-mode/etc
Nicolas Goaziou 1362c2d22b Change `org-toggle-latex-fragment' behaviour
* lisp/org.el (org-remove-latex-fragment-image-overlays): Allow to
  limit overlay removal through optional arguments.  Define a new
  return value.
(org-toggle-latex-fragment): Change behaviour.  Update docstring
accordingly.
(org-format-latex): Update docstring.  Remove overlay when LaTeX
fragment is deleted.

* etc/ORG-NEWS: Signal change.

The new behaviour is the following:

  - With a double prefix argument or with a single prefix argument
    when point is before the first headline, toggle overlays in the
    whole buffer;

  - With a single prefix argument, toggle overlays in the current
    subtree;

  - On latex code, toggle overlay at point;

  - Otherwise, toggle overlays in the current section.

Suggested-by: <kuangdash@163.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/95492>
2015-03-06 11:15:33 +01:00
..
schema Revert "Update copyright years." 2014-01-05 06:28:07 +01:00
styles Fix 464cd96 2014-10-07 15:20:43 +02:00
Makefile move schema files to etc/ and modify makefile to install them into $(datadir) 2012-04-20 21:04:12 +02:00
ORG-NEWS Change `org-toggle-latex-fragment' behaviour 2015-03-06 11:15:33 +01:00