[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 104/299: Change default value of `LaTeX-default-author' and adapt
From: |
Stefan Monnier |
Subject: |
[elpa] 104/299: Change default value of `LaTeX-default-author' and adapt `LaTeX-arg-author'. |
Date: |
Sun, 02 Nov 2014 03:10:39 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit b957e894ce44aa17b2e5047c89bcccad16fdc3d7
Author: Mosè Giordano <address@hidden>
Date: Tue Apr 16 20:53:45 2013 +0200
Change default value of `LaTeX-default-author' and adapt `LaTeX-arg-author'.
* latex.el (LaTeX-default-author): Change default to 'user-full-name
(quoted) and add a new possible value.
(LaTeX-arg-author): Change accordingly.
---
ChangeLog | 3 +++
latex.el | 9 ++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5cdc377..b09750a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
(LaTeX-arg-author): New function.
(LaTeX-common-initialization): Use `LaTeX-arg-author' for the
\author macro.
+ (LaTeX-default-author): Change default to 'user-full-name (quoted)
+ and add a new possible value.
+ (LaTeX-arg-author): Change accordingly.
* doc/auctex.texi (Itemize-like): Document `TeX-arg-item-label-p'
option.
diff --git a/latex.el b/latex.el
index d647bba..b42450c 100644
--- a/latex.el
+++ b/latex.el
@@ -2196,11 +2196,12 @@ string."
TeX-left-right-braces)))
(indent-according-to-mode)))))
-(defcustom LaTeX-default-author user-full-name
+(defcustom LaTeX-default-author 'user-full-name
"Initial input to `LaTeX-arg-author' prompt.
If nil, do not prompt at all."
:group 'LaTeX-macro
- :type '(choice (const :tag "Do not prompt" nil)
+ :type '(choice (const :tag "User name in Emacs" user-full-name)
+ (const :tag "Do not prompt" nil)
string))
(defun LaTeX-arg-author (optional &optional prompt)
@@ -2211,7 +2212,9 @@ prompt string. `LaTeX-default-author' is the initial
input."
(let ((author (if LaTeX-default-author
(read-string
(TeX-argument-prompt optional prompt "Author(s)")
- LaTeX-default-author)
+ (if (symbolp LaTeX-default-author)
+ (symbol-value LaTeX-default-author)
+ LaTeX-default-author))
"")))
(TeX-argument-insert author optional nil)))
- [elpa] 92/299: Syntax fix., (continued)
- [elpa] 92/299: Syntax fix., Stefan Monnier, 2014/11/01
- [elpa] 93/299: Fix bug in TeX-evince-sync-view., Stefan Monnier, 2014/11/01
- [elpa] 86/299: Make LaTeX-outline-level work for customized outline-regexp., Stefan Monnier, 2014/11/01
- [elpa] 88/299: Improve TeX-math-input-method-off-regexp., Stefan Monnier, 2014/11/01
- [elpa] 89/299: Fix a bug in font-latex-add-to-syntax-alist., Stefan Monnier, 2014/11/01
- [elpa] 97/299: Replace completing-read-multiple with TeX-completing-read-multiple., Stefan Monnier, 2014/11/01
- [elpa] 98/299: Use crm-separator as separator in XEmacs TeX-completing-read-multiple., Stefan Monnier, 2014/11/01
- [elpa] 99/299: Add prompt argument to TeX-read-key-val and TeX-arg-key-val., Stefan Monnier, 2014/11/01
- [elpa] 101/299: Improve Evince backward search., Stefan Monnier, 2014/11/01
- [elpa] 94/299: Fix 2 bugs in DBUS communication., Stefan Monnier, 2014/11/01
- [elpa] 104/299: Change default value of `LaTeX-default-author' and adapt `LaTeX-arg-author'.,
Stefan Monnier <=
- [elpa] 96/299: Raise frame on backward search., Stefan Monnier, 2014/11/01
- [elpa] 105/299: Fix plain TeX abbrev table name., Stefan Monnier, 2014/11/01
- [elpa] 102/299: Document some missing functions and options., Stefan Monnier, 2014/11/01
- [elpa] 103/299: Use user-full-name as initial input to author macro., Stefan Monnier, 2014/11/01
- [elpa] 100/299: Better unbinding of SPC in LaTeX-arg-acro-key-val and LaTeX-arg-siunitx-unit., Stefan Monnier, 2014/11/01
- [elpa] 106/299: Add beamer class options., Stefan Monnier, 2014/11/01
- [elpa] 95/299: Add new style files acro.el and acronym.el., Stefan Monnier, 2014/11/01
- [elpa] 108/299: Some improvements to amsthm style file., Stefan Monnier, 2014/11/01
- [elpa] 107/299: Add counters and pagestyle to some class styles., Stefan Monnier, 2014/11/01
- [elpa] 110/299: Set default environment for some class styles., Stefan Monnier, 2014/11/01