[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 217/299: Use default parameter of completing-read.
From: |
Stefan Monnier |
Subject: |
[elpa] 217/299: Use default parameter of completing-read. |
Date: |
Sun, 02 Nov 2014 03:11:33 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 5f31fced0fe7f83797860a08e69be711ae7f6799
Author: Tassilo Horn <address@hidden>
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'.
---
ChangeLog | 5 +++++
latex.el | 8 ++------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 74813db..7de663b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-29 Tassilo Horn <address@hidden>
+
+ * latex.el (LaTeX-environment): Use default parameter of
+ `completing-read'.
+
2014-01-22 Tassilo Horn <address@hidden>
* 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)
- [elpa] 199/299: Fix bindings of narrowing functions., (continued)
- [elpa] 199/299: Fix bindings of narrowing functions., Stefan Monnier, 2014/11/01
- [elpa] 209/299: Fix a bug with reftex where tex-info and LaTeX interferred., Stefan Monnier, 2014/11/01
- [elpa] 206/299: New style files and a fix to imakeidx.el., Stefan Monnier, 2014/11/01
- [elpa] 203/299: Skip comment or file in parens in output., Stefan Monnier, 2014/11/01
- [elpa] 211/299: Adapt style/babel.el to babel 3.9., Stefan Monnier, 2014/11/01
- [elpa] 210/299: Make search for \begin and \end case sensitive., Stefan Monnier, 2014/11/01
- [elpa] 214/299: Fix syntactic fontification., Stefan Monnier, 2014/11/01
- [elpa] 215/299: Declare LaTeX-shortvrb-chars as safe local variable., Stefan Monnier, 2014/11/01
- [elpa] 212/299: Distinguish between numbered and unnumbered sections., Stefan Monnier, 2014/11/01
- [elpa] 216/299: Add a ^L so that the file local variable example isn't picked up., Stefan Monnier, 2014/11/01
- [elpa] 217/299: Use default parameter of completing-read.,
Stefan Monnier <=
- [elpa] 218/299: Use default parameter of `completing-read'., Stefan Monnier, 2014/11/01
- [elpa] 213/299: *** empty log message ***, Stefan Monnier, 2014/11/01
- [elpa] 219/299: Add WHEN arg to make-obsolete calls, Stefan Monnier, 2014/11/01
- [elpa] 221/299: Add an english style., Stefan Monnier, 2014/11/01
- [elpa] 220/299: Convert TeX-auto-add-type to a macro., Stefan Monnier, 2014/11/01
- [elpa] 222/299: New variable to pass options to the TeX processor., Stefan Monnier, 2014/11/01
- [elpa] 224/299: Fix selection of default environment in LaTeX-environment., Stefan Monnier, 2014/11/01
- [elpa] 225/299: Fix minor documentation bug., Stefan Monnier, 2014/11/01
- [elpa] 229/299: Advice instead of fset + redefine., Stefan Monnier, 2014/11/01
- [elpa] 228/299: Squash a byte-compiler warning., Stefan Monnier, 2014/11/01