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. 12886090ff783cb3ba472


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 12886090ff783cb3ba4725bdc34ea248e7648166
Date: Tue, 29 Mar 2016 10:49:47 +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  12886090ff783cb3ba4725bdc34ea248e7648166 (commit)
       via  201ed15e8914e11ed4398ecb322c90cc42ba19fd (commit)
       via  df60ed567cdc306b1e850b7fa70fe1186f8c5762 (commit)
       via  1cb2678f599231d151aa85f14e4ee5d608048ad2 (commit)
      from  ae34515f48c4124869025d17c70762c2f5ab941b (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 12886090ff783cb3ba4725bdc34ea248e7648166
Author: Arash Esbati <address@hidden>
Date:   Mon Mar 28 11:22:02 2016 +0200

    Add fontification support
    
    * style/environ.el ("environ"): Add fontification support.

diff --git a/style/environ.el b/style/environ.el
index bac82fc..c6b34cc 100644
--- a/style/environ.el
+++ b/style/environ.el
@@ -1,6 +1,6 @@
 ;;; environ.el --- AUCTeX style for `environ.sty' version v0.3
 
-;; Copyright (C) 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2015, 2016 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <esbati'at'gmx.de>
 ;; Maintainer: address@hidden
@@ -118,7 +118,15 @@ from `environ.sty'.")
     '("BODY")
 
     ;; Define another macro instead of \BODY
-    '("environbodyname" TeX-arg-define-macro)))
+    '("environbodyname" TeX-arg-define-macro))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("NewEnviron"      "{[[{[")
+                               ("RenewEnviron"    "{[[{[")
+                               ("environbodyname" "|{\\"))
+                             'function)))
   LaTeX-dialect)
 
 (defvar LaTeX-environ-package-options nil

commit 201ed15e8914e11ed4398ecb322c90cc42ba19fd
Author: Arash Esbati <address@hidden>
Date:   Mon Mar 28 11:18:33 2016 +0200

    Fix a misplaced closing parenthesis
    
    * style/splitidx.el (LaTeX-splitidx-auto-cleanup): Fix a misplaced
    closing parenthesis.

diff --git a/style/splitidx.el b/style/splitidx.el
index e299b5a..0c3ddf0 100644
--- a/style/splitidx.el
+++ b/style/splitidx.el
@@ -126,8 +126,8 @@
                     1 LaTeX-auto-index-entry))
       ;; Cater for completion
       (add-to-list 'TeX-complete-list
-                  `(,(concat "\\\\" elt "{\\([^{}\n\r]*\\)"
-                    1 LaTeX-index-entry-list "}"))) )))
+                  `(,(concat "\\\\" elt "{\\([^{}\n\r]*\\)")
+                    1 LaTeX-index-entry-list "}")) )))
 
 (add-hook 'TeX-auto-prepare-hook #'LaTeX-splitidx-auto-prepare t)
 (add-hook 'TeX-auto-cleanup-hook #'LaTeX-splitidx-auto-cleanup t)

commit df60ed567cdc306b1e850b7fa70fe1186f8c5762
Author: Arash Esbati <address@hidden>
Date:   Mon Mar 28 11:15:53 2016 +0200

    Fix the name of argument in function body
    
    * style/currvita.el (LaTeX-currvita-env-with-label): Fix the name
    of argument in the body of function.

diff --git a/style/currvita.el b/style/currvita.el
index 3da2738..a008753 100644
--- a/style/currvita.el
+++ b/style/currvita.el
@@ -56,7 +56,7 @@
   ;; The inserted \item may have outdented the first line to the
   ;; right.  Fill it, if appropriate.
   (when (and (not (looking-at "$"))
-            (not (assoc environment LaTeX-indent-environment-list))
+            (not (assoc env LaTeX-indent-environment-list))
             (> (- (line-end-position) (line-beginning-position))
                (current-fill-column)))
     (LaTeX-fill-paragraph nil)))

commit 1cb2678f599231d151aa85f14e4ee5d608048ad2
Author: Arash Esbati <address@hidden>
Date:   Mon Mar 28 11:13:56 2016 +0200

    Delete redundant code
    
    * style/enumitem.el (LaTeX-arg-SetLabelAlign)
    (LaTeX-arg-SetEnumitemKey, LaTeX-arg-SetEnumitemValue): Delete
    redundant code which is part of the function
    `LaTeX-enumitem-update-key-val-options'.
    (LaTeX-enumitem-env-with-opts): Fix the name of argument in the
    body of function.

diff --git a/style/enumitem.el b/style/enumitem.el
index 87249bc..c81cd96 100644
--- a/style/enumitem.el
+++ b/style/enumitem.el
@@ -209,7 +209,7 @@ key-val and the first item."
   ;; The inserted \item may have outdented the first line to the
   ;; right.  Fill it, if appropriate.
   (when (and (not (looking-at "$"))
-            (not (assoc environment LaTeX-indent-environment-list))
+            (not (assoc env LaTeX-indent-environment-list))
             (> (- (line-end-position) (line-beginning-position))
                (current-fill-column)))
     (LaTeX-fill-paragraph nil)))
@@ -218,13 +218,7 @@ key-val and the first item."
   "Ask for new type (value) for the \"align\" key and add it to
 `LaTeX-enumitem-key-val-options-local'."
   (LaTeX-enumitem-update-key-val-options)
-  (let* ((key "align")
-        (val (TeX-read-string "Alignment: "))
-        (val-match (cdr (assoc key LaTeX-enumitem-key-val-options-local)))
-        (temp (copy-alist LaTeX-enumitem-key-val-options-local))
-        (opts (assq-delete-all (car (assoc key temp)) temp)))
-    (pushnew (list key (delete-dups (apply 'append (list val) val-match)))
-            opts :test #'equal)
+  (let ((val (TeX-read-string "Alignment: ")))
     (TeX-argument-insert val optional)
     (LaTeX-add-enumitem-SetLabelAligns val)))
 
@@ -237,7 +231,6 @@ key-val and the first item."
                                   LaTeX-enumitem-key-val-options-local 
"Replacement")))
     (TeX-argument-insert key     optional)
     (TeX-argument-insert replace optional)
-    (add-to-list 'LaTeX-enumitem-key-val-options-local (list key))
     (LaTeX-add-enumitem-SetEnumitemKeys key)))
 
 ;; In `LaTeX-enumitem-SetEnumitemValue-regexp', we match (0 1 2).
@@ -250,17 +243,8 @@ key-val and the first item."
   "Ask for a new value added to an existing key incl. the final
 replacement of the value."
   (LaTeX-enumitem-update-key-val-options)
-  (let* ((key (completing-read  "Key: " LaTeX-enumitem-key-val-options-local))
-        (val (TeX-read-string "String value: "))
-        ;; (key-match (car (assoc key LaTeX-enumitem-key-val-options-local)))
-        (val-match (cdr (assoc key LaTeX-enumitem-key-val-options-local)))
-        (temp (copy-alist LaTeX-enumitem-key-val-options-local))
-        (opts (assq-delete-all (car (assoc key temp)) temp)))
-    (if val-match
-       (pushnew (list key (delete-dups (apply 'append (list val) val-match)))
-                opts :test #'equal)
-      (pushnew (list key (list val)) opts :test #'equal))
-    (setq LaTeX-enumitem-key-val-options-local (copy-alist opts))
+  (let ((key (completing-read  "Key: " LaTeX-enumitem-key-val-options-local))
+       (val (TeX-read-string "String value: ")))
     (TeX-argument-insert key optional)
     (TeX-argument-insert val optional)
     (LaTeX-add-enumitem-SetEnumitemValues

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

Summary of changes:
 style/currvita.el |    2 +-
 style/enumitem.el |   24 ++++--------------------
 style/environ.el  |   12 ++++++++++--
 style/splitidx.el |    4 ++--
 4 files changed, 17 insertions(+), 25 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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