auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. a54ce4d34d85338d9484b


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. a54ce4d34d85338d9484b21d62024696705fe70f
Date: Thu, 24 Jul 2014 22:03:39 +0000

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  a54ce4d34d85338d9484b21d62024696705fe70f (commit)
      from  46e68032af4a5b6962cb8cc8f88af116fd872971 (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 a54ce4d34d85338d9484b21d62024696705fe70f
Author: Mosè Giordano <address@hidden>
Date:   Fri Jul 25 00:00:18 2014 +0200

    Add customizable option for default date format.
    
    * doc/auctex.texi (Adding Macros): Document `TeX-date-format'.
    
    * doc/changes.texi: Mention `TeX-date-format'.
    
    * latex.el (TeX-date-format): New customizable option.
    Suggested by Uwe Brauer.
    (TeX-arg-date): Use it.

diff --git a/ChangeLog b/ChangeLog
index fb1e62f..40324e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-07-25  Mosè Giordano  <address@hidden>
+
+       * doc/auctex.texi (Adding Macros): Document `TeX-date-format'.
+
+       * doc/changes.texi: Mention `TeX-date-format'.
+
+       * latex.el (TeX-date-format): New customizable option.
+       Suggested by Uwe Brauer.
+       (TeX-arg-date): Use it.
+
 2014-07-17  Mosè Giordano  <address@hidden>
 
        * Makefile.in: Update copyright years.
diff --git a/doc/auctex.texi b/doc/auctex.texi
index 3961bb8..7261705 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -4394,7 +4394,12 @@ Prompt for a @LaTeX{} length completing with known 
lengths.
 Prompt for a @TeX{} macro with completion.
 
 @item TeX-arg-date
-Prompt for a date, defaulting to the current date.
address@hidden TeX-date-format
+Prompt for a date, defaulting to the current date.  The format of the
+date is specified by the @code{TeX-date-format} option.  If you want to
+change the format when the @samp{babel} package is loaded with a
+specific language, set @code{TeX-date-format} inside the appropriate
+language hook, for details @pxref{European}.
 
 @item TeX-arg-version
 Prompt for the version of a file, using as initial input the current
diff --git a/doc/changes.texi b/doc/changes.texi
index 5707cd0..b408b47 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -53,7 +53,7 @@ non-nil.  Completion for class options of the standard 
@LaTeX{} classes
 is provided as well.
 
 @item
-New user options @code{LaTeX-default-author},
+New user options @code{LaTeX-default-author}, @code{TeX-date-format},
 @code{TeX-insert-braces-alist}, @code{LaTeX-fontspec-arg-font-search},
 and @code{LaTeX-fontspec-font-list-default}.  A new possible value
 (@code{show-all-optional-args}) for
diff --git a/latex.el b/latex.el
index d9a383f..89be909 100644
--- a/latex.el
+++ b/latex.el
@@ -2251,12 +2251,17 @@ string."
                    nil t)
    optional))
 
+(defcustom TeX-date-format "%Y/%m/%d"
+  "The default date format prompted by `TeX-arg-date'."
+  :group 'LaTeX-macro
+  :type 'string)
+
 (defun TeX-arg-date (optional &optional prompt)
   "Prompt for a date, defaulting to the current date.
 If OPTIONAL is non-nil, insert the resulting value as an optional
 argument, otherwise as a mandatory one.  Use PROMPT as the prompt
 string."
-  (let ((default (format-time-string "%Y/%m/%d" (current-time))))
+  (let ((default (format-time-string TeX-date-format (current-time))))
     (TeX-argument-insert
      (TeX-read-string (TeX-argument-prompt
                       optional prompt (format "Date (default %s)" default))

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

Summary of changes:
 ChangeLog        |   10 ++++++++++
 doc/auctex.texi  |    7 ++++++-
 doc/changes.texi |    2 +-
 latex.el         |    7 ++++++-
 4 files changed, 23 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]