branch: externals/preview-auto
commit db0deb17f5ff8b20ee86056e179c8b875f37042d
Author: Paul Nelson <ultr...@gmail.com>
Commit: Paul Nelson <ultr...@gmail.com>

    Rename preview-auto--extra-environments
    
    This is a public customization option, so I don't know why I named it
    with a double dash.  It's been renamed to
    `preview-auto-extra-environments`.
---
 README.org      | 4 ++--
 preview-auto.el | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.org b/README.org
index afd7c90355..40ea5a9c16 100644
--- a/README.org
+++ b/README.org
@@ -97,9 +97,9 @@ According to section B.4.5 of the =preview-latex= info 
manual, support for the t
 \usepackage[displaymath,sections,graphics,floats,textmath]{preview}
 \PreviewEnvironment[{[]}]{tikzpicture}
 #+end_src
-If you want =preview-auto-mode= to preview such environments automatically 
(including when they are not wrapped in some math environment), then you should 
add "tikzpicture" to the customizable list variable 
=preview-auto--extra-environments=, e.g., by putting
+If you want =preview-auto-mode= to preview such environments automatically 
(including when they are not wrapped in some math environment), then you should 
add "tikzpicture" to the customizable list variable 
=preview-auto-extra-environments=, e.g., by putting
 #+begin_src elisp
-(add-to-list 'preview-auto--extra-environments "tikzpicture")
+(add-to-list 'preview-auto-extra-environments "tikzpicture")
 #+end_src
 in your config.  I keep this disabled by default because of the extra setup 
required in the document preamble, without which =preview-latex= would return 
"LaTeX found no preview images" errors.
 
diff --git a/preview-auto.el b/preview-auto.el
index 1e3d4993fc..5c9a5f009f 100644
--- a/preview-auto.el
+++ b/preview-auto.el
@@ -66,7 +66,7 @@ For this to have any effect, it must be set before
 (defvar-local preview-auto--keepalive t
   "Used to keep track of when we should preview some more.")
 
-(defcustom preview-auto--extra-environments nil
+(defcustom preview-auto-extra-environments nil
   "Extra environments to consider for automatic previewing."
   :type '(repeat string))
 
@@ -106,7 +106,7 @@ Should work in AUCTeX `LaTeX-mode' buffers.  Implemented 
using
                     (cons (format "\\begin{%s}" env)
                           (cons (format "\\end{%s}" env) t)))
                   (append texmathp-environments
-                          preview-auto--extra-environments)))
+                          preview-auto-extra-environments)))
          (rules (append basic-rules env-rules)))
     rules))
 

Reply via email to