branch: elpa
commit 53838b36fce2a774055a1303851294947c97f01f
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Fix bug#19675
* latex.el (LaTeX-section-heading): Use default parameter of
completing-read. Fixes bug#19675.
---
ChangeLog | 5 +++++
latex.el | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 33e78b0..4aa8dfd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-25 Tassilo Horn <[email protected]>
+
+ * latex.el (LaTeX-section-heading): Use default parameter of
+ completing-read. Fixes bug#19675.
+
2015-01-19 Tassilo Horn <[email protected]>
* tex.el (TeX-auto-store): Fix indentation in auto files.
diff --git a/latex.el b/latex.el
index 0da018e..8409690 100644
--- a/latex.el
+++ b/latex.el
@@ -441,11 +441,11 @@ the name of the sectioning command inserted with
`\\[LaTeX-section]'."
(let ((string (completing-read
(concat "Level: (default " name ") ")
LaTeX-section-list
- nil nil nil)))
- ; Update name
+ nil nil nil nil name)))
+ ;; Update name
(if (not (zerop (length string)))
(setq name string))
- ; Update level
+ ;; Update level
(setq level (LaTeX-section-level name))))
(defun LaTeX-section-title ()