This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  5f31fced0fe7f83797860a08e69be711ae7f6799 (commit)
      from  3a0b1b37b0423693090824054277a6bfe447e487 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5f31fced0fe7f83797860a08e69be711ae7f6799
Author: Tassilo Horn <[email protected]>
Date:   Wed Jan 29 20:50:10 2014 +0100

    Use default parameter of completing-read.
    
    * latex.el (LaTeX-environment): Use default parameter of
    `completing-read'.

diff --git a/ChangeLog b/ChangeLog
index 74813db..7de663b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-29  Tassilo Horn  <[email protected]>
+
+       * latex.el (LaTeX-environment): Use default parameter of
+       `completing-read'.
+
 2014-01-22  Tassilo Horn  <[email protected]>
 
        * style/shortvrb.el (LaTeX-shortvrb-chars): Move from
diff --git a/latex.el b/latex.el
index 974ea42..e6ce62c 100644
--- a/latex.el
+++ b/latex.el
@@ -541,12 +541,8 @@ It may be customized with the following variables:
     (environment (completing-read (concat "Environment type: (default "
                                          default ") ")
                                  (LaTeX-environment-list-filtered) nil nil nil
-                                 'LaTeX-environment-history)))
-    ;; Get default
-    (cond ((zerop (length environment))
-          (setq environment default))
-         (t
-          (setq LaTeX-default-environment environment)))
+                                 'LaTeX-environment-history default)))
+    (setq LaTeX-default-environment environment)
 
     (let ((entry (assoc environment (LaTeX-environment-list))))
       (if (null entry)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 latex.el  |    8 ++------
 2 files changed, 7 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

_______________________________________________
auctex-diffs mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to