[AUCTeX-diffs] [elpa] externals/auctex 5870187: multi-prompt.el, style/beamer*.el: Get copyright just right

2019-10-16 Thread Stefan Monnier
branch: externals/auctex
commit 58701876d3c30dc54803696d93f430faca04b7a3
Author: Stefan Monnier 
Commit: Stefan Monnier 

multi-prompt.el, style/beamer*.el: Get copyright just right
---
 multi-prompt.el| 3 +--
 style/beamerarticle.el | 2 +-
 style/beamerswitch.el  | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/multi-prompt.el b/multi-prompt.el
index f7632be..98c6dab 100644
--- a/multi-prompt.el
+++ b/multi-prompt.el
@@ -1,7 +1,6 @@
 ;;; multi-prompt.el --- Completing read of multiple strings
 
-;; Copyright (C) 1996, 1997, 2000, 2009, 2014, 2019 Free Software
-;; Foundation, Inc.
+;; Copyright (C) 1996-2019 Free Software Foundation, Inc.
 
 ;; Author: Per Abrahamsen 
 ;; Maintainer: auctex-devel@gnu.org
diff --git a/style/beamerarticle.el b/style/beamerarticle.el
index 2c5cff0..3704e61 100644
--- a/style/beamerarticle.el
+++ b/style/beamerarticle.el
@@ -1,6 +1,6 @@
 ;;; beamerarticle.el --- AUCTeX style for the latex-beamerarticle class
 
-;; Copyright (C) 2019 Free Software Foundation
+;; Copyright (C) 2019 Free Software Foundation, Inc.
 
 ;; Keywords: tex
 
diff --git a/style/beamerswitch.el b/style/beamerswitch.el
index 716d16d..501b375 100644
--- a/style/beamerswitch.el
+++ b/style/beamerswitch.el
@@ -1,6 +1,6 @@
 ;;; beamerswitch.el --- AUCTeX style for the latex-beamerswitch class
 
-;; Copyright (C) 2019 Free Software Foundation
+;; Copyright (C) 2019 Free Software Foundation, Inc.
 
 ;; Keywords: tex
 

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 5208d91 50/80: Enhance support for file names with spaces

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 5208d9197c7a7ab4c6346005f87c22a62cc2b131
Author: Ikumi Keita 
Commit: Ikumi Keita 

Enhance support for file names with spaces

* tex-buf.el (TeX-run-compile): Add an entry for file name with spaces
to localized `compilation-error-regexp-alist'.
---
 tex-buf.el | 16 +++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/tex-buf.el b/tex-buf.el
index 8b87c4c..9aaa585 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1293,7 +1293,21 @@ run of `TeX-run-TeX', use
 (defun TeX-run-compile (_name command _file)
   "Ignore first and third argument, start compile with second argument."
   (let ((default-directory (TeX-master-directory)))
-(setq TeX-command-buffer (compile command
+(setq TeX-command-buffer (compile command)))
+  ;; Make `compilation-mode' recognize file names with spaces.
+  ;; (bug#36483)
+  ;; FIXME: This is just an ad-hoc workaround and it's better to fix
+  ;; the regular expression in compile.el properly, if possible.  But
+  ;; there was no response to such request in emacs-de...@gnu.org.
+  (with-current-buffer TeX-command-buffer
+(make-local-variable 'compilation-error-regexp-alist)
+;; Add slightly modified entry of the one associated with `comma'
+;; in `compilation-error-regexp-alist-alist' to pick up file names
+;; with spaces.
+(add-to-list 'compilation-error-regexp-alist
+'("^\"\([^,\"
]+\)\", line \([0-9]+\)\
+\(?:[(. pos]+\([0-9]+\))?\)?[:.,; (-]\( warning:\|[-0-9 ]*(W)\)?" 1 2 3 (4))
+t)))
 
 (defun TeX-run-shell (_name command _file)
   "Ignore first and third argument, start shell-command with second argument."

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 3542a23 70/80: Update style/subcaption.el to package version 1.3

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 3542a23e61592b882eacd75594eb5b8ee0f33286
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/subcaption.el to package version 1.3

* style/subcaption.el ("subcaption"): Add support for \subfloat
macro.
---
 style/subcaption.el | 19 +++
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/style/subcaption.el b/style/subcaption.el
index 8bffa8a..1914a14 100644
--- a/style/subcaption.el
+++ b/style/subcaption.el
@@ -1,6 +1,6 @@
-;;; subcaption.el --- AUCTeX style for `subcaption.sty' (v1.1-100)
+;;; subcaption.el --- AUCTeX style for `subcaption.sty' (v1.3)
 
-;; Copyright (C) 2015--2018 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,8 +26,8 @@
 
 ;;; Commentary:
 
-;; This file adds support for `subcaption.sty' (v1.1-100) from
-;; 2015-09-15.  `subcaption.sty' is part of TeXLive.
+;; This file adds support for `subcaption.sty' (v1.3) from 2019-08-31.
+;; `subcaption.sty' is part of TeXLive.
 
 ;;; Code:
 
@@ -130,7 +130,8 @@ caption, insert only a caption."
 ;; check if hyperref.el is loaded and make it available directly.
 '("subref*"TeX-arg-ref)
 '("phantomcaption"0)
-'("phantomsubcaption" 0))
+'("phantomsubcaption" 0)
+'("subfloat" [ "List entry" ] [ "Sub-caption" ] t))
 
;; The next 2 macros are part of the kernel of caption.sty, but we
;; load them within subcaption.el.
@@ -151,8 +152,9 @@ caption, insert only a caption."
(TeX-argument-prompt nil nil "Type")
'("figure" "table"
 
-   ;; \subcaption(box)? macros should get their own lines
-   (LaTeX-paragraph-commands-add-locally '("subcaption" "subcaptionbox"))
+   ;; \subcaption(box)? and \subfloat macros should get their own lines
+   (LaTeX-paragraph-commands-add-locally
+'("subcaption" "subcaptionbox" "subfloat"))
 
;; The subfigure & subtable environments
(LaTeX-add-environments
@@ -175,7 +177,8 @@ caption, insert only a caption."
  (font-latex-add-keywords '(("subcaption""*[{")
("subcaptionbox" "*[{[[")
("phantomcaption""")
-   ("phantomsubcaption" ""))
+   ("phantomsubcaption" "")
+   ("subfloat"  "[["))
  'textual)
  (font-latex-add-keywords '(("subref""*{"))
  'reference)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 7cb6c19 59/80: Fix lisp example for `TeX-electric-math'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 7cb6c194778f5f0f0d21fc4ede2113852265
Author: Arash Esbati 
Commit: Arash Esbati 

Fix lisp example for `TeX-electric-math'

* doc/auctex.texi (Quotes): Use `make-local-variable' instead of
`make-variable-buffer-local' in lisp example for init file.  (bug#37124)
---
 doc/auctex.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/auctex.texi b/doc/auctex.texi
index 693fdf6..cb25757 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -459,10 +459,10 @@ and @samp{\(...\)} in @LaTeX{} files by pressing @kbd{$}, 
add the
 following to your init file
 @lisp
 (add-hook 'plain-TeX-mode-hook
- (lambda () (set (make-variable-buffer-local 'TeX-electric-math)
+ (lambda () (set (make-local-variable 'TeX-electric-math)
  (cons "$" "$"
 (add-hook 'LaTeX-mode-hook
- (lambda () (set (make-variable-buffer-local 'TeX-electric-math)
+ (lambda () (set (make-local-variable 'TeX-electric-math)
  (cons "\(" "\)"
 @end lisp
 

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex a9b5eb1 67/80: ; * style/changelog.el (font-latex-add-keywords): Silence the compiler.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit a9b5eb1000868279617c393186a29d0a62ae7280
Author: Arash Esbati 
Commit: Arash Esbati 

; * style/changelog.el (font-latex-add-keywords): Silence the compiler.
---
 style/changelog.el | 5 +
 1 file changed, 5 insertions(+)

diff --git a/style/changelog.el b/style/changelog.el
index b307ec2..feaa9dd 100644
--- a/style/changelog.el
+++ b/style/changelog.el
@@ -31,6 +31,11 @@
 
 ;;; Code:
 
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
 (defvar LaTeX-changelog-env-key-val-options
   '(("section" ("true" "false"))
 ("title"))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex a033c30 43/80: ; Use `LaTeX-extract-key-value-label'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit a033c30c90bfe01e47d7231f2f7539aceb5476d9
Author: Arash Esbati 
Commit: Arash Esbati 

; Use `LaTeX-extract-key-value-label'

* style/fancyvrb.el (LaTeX-fancyvrb-key-val-skip-regexp): Require
latex.el and use `LaTeX-extract-key-value-label' to build the
regexp.
---
 style/fancyvrb.el | 10 ++
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/style/fancyvrb.el b/style/fancyvrb.el
index 32adcd4..1354e3b 100644
--- a/style/fancyvrb.el
+++ b/style/fancyvrb.el
@@ -45,6 +45,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
@@ -129,14 +130,7 @@ Starred versions are not included in this list.")
 Starred versions are not included in this list.")
 
 (defvar LaTeX-fancyvrb-key-val-skip-regexp
-  (concat
-   "\(?:\[[^][]*"
- "\(?:{[^}{]*"
-   "\(?:{[^}{]*"
-"\(?:{[^}{]*}[^}{]*\)*"
-   "}[^}{]*\)*"
- "}[^][]*\)*"
-   "\]\)?")
+  (concat "\(?:" (LaTeX-extract-key-value-label 'none) "\)?")
   "Helper regexp to skip over an optional argument.")
 
 ;; Setup for defining new Verbatim commands:

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex aa17420 46/80: ; Silence the compiler

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit aa17420828fe63e81f917af6562a97cbacdce253
Author: Arash Esbati 
Commit: Arash Esbati 

; Silence the compiler

* style/pst-plot.el (LaTeX-pst-labels-list): Move the
`defvaralias' for `LaTeX-pst-labels-list' before setting
`LaTeX-pst-ticks-list'.
---
 style/pst-plot.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/style/pst-plot.el b/style/pst-plot.el
index d4ddfe5..0942c6e 100644
--- a/style/pst-plot.el
+++ b/style/pst-plot.el
@@ -1,6 +1,6 @@
 ;;; pst-plot.el --- AUCTeX style for `pst-plot.sty'
 
-;; Copyright (C) 2007, 2014, 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2014, 2015, 2019 Free Software Foundation, Inc.
 
 ;; Author: Holger Sparr 
 ;; Created: 21 Jun 2007
@@ -53,11 +53,11 @@
 "ticksize" "tickstyle")
   "A list of parameters' name in pst-plot.")
 
+(defvaralias 'LaTeX-pst-labels-list 'LaTeX-pst-ticks-list)
+
 (defvar LaTeX-pst-ticks-list '(t "none" "all" "x" "y")
   "A list of values for ticks in pst-plot.")
 
-(defvaralias 'LaTeX-pst-labels-list 'LaTeX-pst-ticks-list)
-
 (defvar LaTeX-pst-plotstyle-list
   '(t "dots" "line" "polygon" "curve" "ecurve" "ccurve")
   "A list of values for tickstyles in pst-plot.")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex cc52bce 77/80: Fix for revised file access controls of gs (bug#37719)

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit cc52bce708a77654e1b89048cb8dce484a5e4e88
Author: Ikumi Keita 
Commit: Ikumi Keita 

Fix for revised file access controls of gs (bug#37719)

* preview.el.in (preview-prepare-fast-conversion): Add commands for
revised file access controls introduced after gs 9.27.
(preview-gs-restart): Use "-d" option instead of "-s" because the
former does not accept "%d" in OutputFile parameter.
Don't wrap the file name into parentheses in line with this change.
(preview-gs-flag-error): Adjust the reconstructed gs command line
argument so that it matches with the above change.
Add comments about limitations of this function.
---
 preview.el.in | 27 +--
 1 file changed, 21 insertions(+), 6 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index 148f05b..03e1d9b 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -727,8 +727,8 @@ Gets the usual PROCESS and STRING parameters, see
   (setq preview-gs-sequence (list 1)))
 (setcdr preview-gs-sequence 1)
 (let* ((process-connection-type nil)
-  (outfile (format "-dOutputFile=%s"
-   (preview-ps-quote-filename
+  (outfile (format "-sOutputFile=%s"
+   (file-relative-name
 (format "%s/pr%d-%%d.%s"
 (car TeX-active-tempdir)
 (car preview-gs-sequence)
@@ -1165,9 +1165,16 @@ NONREL is not NIL."
  (list file
 (setq preview-gs-dsc (preview-dsc-parse file))
 (setq preview-gs-init-string
- (concat (format "{<> setuserparams \
+ ;; Add commands for revised file access controls introduced
+ ;; after gs 9.27 (bug#37719)
+ (concat (format "systemdict /.addcontrolpath known {%s} if
"
+ (mapconcat (lambda (f)
+  (format "/PermitFileReading %s 
.addcontrolpath"
+  (preview-ps-quote-filename f)))
+all-files "
"))
+ (format "{<> setuserparams \
 .locksafe} stopped pop "
- (mapconcat 'preview-ps-quote-filename all-files ""))
+ (mapconcat #'preview-ps-quote-filename all-files ""))
  preview-gs-init-string
  (format " %s(r)file /.preview-ST 1 index def %s exec 
.preview-ST "
  (preview-ps-quote-filename file)
@@ -1257,10 +1264,18 @@ Try \[ps-run-start] \[ps-run-buffer] and \
 
 (defun preview-gs-flag-error (ov err)
   "Make an eps error flag in overlay OV for ERR string."
+  ;; N.B.  Although this code shows command line of gs invocation and
+  ;; error together via mouse popup menu, they are not necessarilly
+  ;; associated with each other.  There is a case that the command
+  ;; line is for "[...].prv/tmpXX/pr1-2.png" while the error is
+  ;; raised for "[...].prv/tmpXX/pr1-1.png".  (c.f. bug#37719)
   (let* ((filenames (overlay-get ov 'filenames))
 (file (car (nth 0 filenames)))
-(outfile (format "-dOutputFile=%s"
- (preview-ps-quote-filename
+;; FIXME: This format isn't equal to actual invocation of gs
+;; command constructed in `preview-gs-restart', which
+;; contains "%d".
+(outfile (format "-sOutputFile=%s"
+ (file-relative-name
   (car (nth 1 filenames)
 (ps-open
  `(lambda() (interactive "@")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex eafb114 75/80: Fix preview-latex for TeXLive 2019 update

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit eafb11477c08531b823de387f7bdf0b5f8b4a4dd
Author: Ikumi Keita 
Commit: Ikumi Keita 

Fix preview-latex for TeXLive 2019 update

* preview.el.in (preview-LaTeX-command, preview-undump-replacements):
Remove the brace around the argument of \input.
---
 preview.el.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index e107d5e..a5c7797 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -2305,7 +2305,7 @@ list of LaTeX commands is inserted just before 
\begin{document}."
 (defcustom preview-LaTeX-command '("%`%l \"\nonstopmode\nofiles\
 \PassOptionsToPackage{" ("," . preview-required-option-list) "}{preview}\
 \AtBeginDocument{\ifx\ifPreview\undefined"
-preview-default-preamble "\fi}\"%' \"{\detokenize{\" %t \"}}\"")
+preview-default-preamble "\fi}\"%' \"\detokenize{\" %t \"}\"")
   ;; Since TeXLive 2018, the default encoding for LaTeX files has been
   ;; changed to UTF-8 if used with classic TeX or pdfTeX.  I.e.,
   ;; \usepackage[utf8]{inputenc} is enabled by default in (pdf)latex.
@@ -3381,7 +3381,7 @@ This is passed through `preview-do-replacements'."
   ;; Discard all other options.
   '(("\`\([^ ]+\)\
 \(?: +\(?:\(--?kanji[= ][^ ]+\)\|-\(?:[^ \\"]\|\\.\|\"[^\"]*\"\)*\)\)*.*\
- \"\\input\" \"{\\detokenize{\" \(.*\) \"}}\"\'"
+ \"\\input\" \"\\detokenize{\" \(.*\)\"} \"\'"
  . ("\1 \2 -interaction=nonstopmode -file-line-error "
preview-format-name " \"/AUCTEXINPUT{\" \3 \"}\"")))
   ;; See the ini file code below in `preview-cache-preamble' for the

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 8610189 52/80: Update style/paracol.el to package version 1.35

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 8610189a5f64de18c17ba3a372614879ca087e77
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/paracol.el to package version 1.35

* style/paracol.el: Add macro \definecolumnpreamble and the length
elowfootnoteskip.
---
 style/paracol.el | 27 +--
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/style/paracol.el b/style/paracol.el
index 308ac46..3eef88a 100644
--- a/style/paracol.el
+++ b/style/paracol.el
@@ -1,6 +1,6 @@
-;;; paracol.el --- AUCTeX style for `paracol.sty' (v1.32)
+;;; paracol.el --- AUCTeX style for `paracol.sty' (v1.35)
 
-;; Copyright (C) 2016, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2016--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,7 +26,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `paracol.sty' (v1.32) from 2015/10/10.
+;; This file adds support for `paracol.sty' (v1.35) from 2018/12/31.
 ;; `paracol.sty' is part of TeXLive.
 
 ;; `paracol.sty' provides an environment (paracol) and a command
@@ -118,6 +118,7 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
 '("switchcolumn" [ "Column" ] )
 '("switchcolumn*" [ TeX-arg-paracol-switchcolumn* ] )
 '("thecolumn")
+'("definecolumnpreamble" "Column" t)
 '("ensurevspace" TeX-arg-length)
 
 ;; 7.3 Commands for Column and Gap Width
@@ -181,7 +182,7 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
 ;; the command only here but not for fontification
 '("columncolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list))
 (TeX-arg-xcolor)
-  (TeX-arg-color))
+(TeX-arg-color))
   [ "Column" ] )
 
 ;; 
ormalcolumncolor[col]
@@ -193,7 +194,7 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
 ;; 
ormalcolseprulecolor[col]
 '("colseprulecolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list))
 (TeX-arg-xcolor)
-  (TeX-arg-color))
+(TeX-arg-color))
   [ "Column" ] )
 '("normalcolseprulecolor" [ "Column" ] )
 
@@ -208,7 +209,7 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
  "C" "G" "S" "F" "N" "P" "T" "B" "L" "R"))
   (TeX-arg-conditional (member "xcolor" (TeX-style-list))
   (TeX-arg-xcolor)
-(TeX-arg-color)))
+  (TeX-arg-color)))
 
 ;; 
obackgroundcolor{region}
 '("nobackgroundcolor"
@@ -228,20 +229,25 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
'("toc" "lof" "lot"))
   "Column")
 
+;; 7.10 Page Flushing Commands
 '("flushpage" 0))
 
-   ; \switchcolumn should get its own line:
+   ;; elowfootnoteskip is a length:
+   (LaTeX-add-lengths "belowfootnoteskip")
+
+   ;; \switchcolumn should get its own line:
(LaTeX-paragraph-commands-add-locally "switchcolumn")
 
;; Fontification
(when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
- ;; FIXME: Syntax is \switchcolumn[num]*[text].
+ (font-latex-add-keywords '(("switchcolumn""*["))
+ ;; FIXME: Syntax is
+ ;; \switchcolumn[num]*[text].
  ;; font-latex.el doesn't handle the case
  ;; where `*' comes after the first `['.
  ;; Therefore, we use this compromise to
  ;; get something fontified at least.
- (font-latex-add-keywords '(("switchcolumn""*["))
  'textual)
  (font-latex-add-keywords '(("flushpage"   "*["))
  'warning)
@@ -249,7 +255,8 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
("footnotemark" "*[")
("footnotetext" "*[{"))
  'reference)
- (font-latex-add-keywords '(("ensurevspace""{")
+ (font-latex-add-keywords '(("definecolumnpreamble" "{{")
+   ("ensurevspace" "{")
("columnratio"  "{[")
("setcolumnwidth"   "{[")
("twosided" "[")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c64d8c1 61/80: * doc/changes.texi: Mention fontification improvement for biblatex.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c64d8c1f1e32181c4c99bf810ac82c7e2a7ababb
Author: Arash Esbati 
Commit: Arash Esbati 

* doc/changes.texi: Mention fontification improvement for biblatex.
---
 doc/changes.texi | 5 +
 1 file changed, 5 insertions(+)

diff --git a/doc/changes.texi b/doc/changes.texi
index f99e62d..b1b95e2 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -64,6 +64,11 @@ Texinfo mode.  When it is enabled, typing @kbd{@@} will 
invoke
 other TeX modes of @AUCTeX{}.
 
 @item
+Fontification support for @samp{biblatex} package is improved and
+updated to macros provided by package version 3.12.  For qualified
+lists, at least 2 mandatory arguments are fontified.
+
+@item
 Support for column specifiers @samp{w} and @samp{W} provided by
 @samp{array} package is added to @file{array.el}.  The correct counting
 of columns only works when the @samp{align} parameter is enclosed in

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 7cd329f 74/80: Add fontification support for ragged2e macros

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 7cd329f06daf166fb5fb6a6e3959935c786c91a9
Author: Arash Esbati 
Commit: Arash Esbati 

Add fontification support for ragged2e macros

* style/ragged2e.el ("ragged2e"): Add provided macros to function
keywords class.  This is in line with decision in `font-latex.el'
for corresponding kernel macros.
---
 style/ragged2e.el | 15 ---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/style/ragged2e.el b/style/ragged2e.el
index 2b7050e..fd6fd1b 100644
--- a/style/ragged2e.el
+++ b/style/ragged2e.el
@@ -1,6 +1,6 @@
 ;;; ragged2e.el --- AUCTeX style for `ragged2e.sty'
 
-;; Copyright (C) 2011, 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2011, 2015, 2019 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen 
 ;; Created: 2011-04-16
@@ -54,10 +54,19 @@
 ;; \justifying
 "JustifyingParfillskip" "JustifyingParindent")
 
-   (TeX-run-style-hooks "footmisc" "everysel"))
+   (TeX-run-style-hooks "footmisc" "everysel")
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("Centering""")
+   ("justifying"   "")
+   ("RaggedRight"  "")
+   ("RaggedLeft"   ""))
+ 'function)))
  LaTeX-dialect)
 
-(defvar LaTeX-ragged2e-package-options 
+(defvar LaTeX-ragged2e-package-options
   '("originalcommands" "newcommands" "originalparameters" "document"
 "newparameters" "footnotes" "raggedrightboxes")
   "Package options for the ragged2e package.")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 01dc048 78/80: Change default for new Ghostscript

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 01dc048dedcb5e13152c9439612c817671aa560e
Author: Ikumi Keita 
Commit: Ikumi Keita 

Change default for new Ghostscript

* preview.el.in (preview-pdf-color-adjust-method): Change the default
value to t and adjust doc string.
* doc/preview-problems.texi (No images are displayed with gs 9.27 and
earlier): Adjust its contents in line with the above change and change
the title from "... newer".
---
 doc/preview-problems.texi | 29 ++---
 preview.el.in |  7 ++-
 2 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/doc/preview-problems.texi b/doc/preview-problems.texi
index e10fdd7..264e14c 100644
--- a/doc/preview-problems.texi
+++ b/doc/preview-problems.texi
@@ -19,7 +19,7 @@ newer versions of the problematic software or by simple 
patches.
 * Too small bounding boxes::
 * x-symbol interoperation:: 
 * Middle-clicks paste instead of toggling::  
-* No images are displayed with gs 9.27 and newer::
+* No images are displayed with gs 9.27 and earlier::
 @end menu
 
 If you find something not mentioned here, please send a bug report using
@@ -139,8 +139,8 @@ search with @kbd{@key{RET}} before toggling and resume with 
@kbd{C-s
 C-s} or similar afterwards.  Since previews over the current match will
 auto-open, anyway, this should not be much of a problem in practice.
 
-@node No images are displayed with gs 9.27 and newer
-@section No images are displayed with gs 9.27 and newer
+@node No images are displayed with gs 9.27 and earlier
+@section No images are displayed with gs 9.27 and earlier
 
 @previewlatex{} tries to adjust the foreground and background colors of
 generated images to those of Emacs.  Unfortunately, incompatible changes
@@ -148,22 +148,21 @@ introduced in Ghostscript 9.27 breaks the traditional 
method partially,
 and @previewlatex{} can display no images under certain circumstances.
 
 A new method implemented alternatively works only with Ghostscript >
-9.27, so is disabled by default.  If you are using those new
-Ghostscript, customize the option
-@code{preview-pdf-adjust-color-method}.
+9.27.  If you are using Ghostscript 9.27 or earlier, customize the
+option @code{preview-pdf-adjust-color-method}.
 
 @defopt preview-pdf-adjust-color-method
 Method to adjust colors of images generated from @acronym{PDF}.  It is
 not consulted when the @LaTeX{} command produces @acronym{DVI} files.
 
-When the option is @code{t}, @previewlatex{} adjusts the FG and BG colors
-of the generated images by the new method.  This method requires that
-Ghostscript has working @code{DELAYBIND} feature, thus is invalid with
-gs 9.27 (and possibly < 9.27).
+When the option is @code{t} (default), @previewlatex{} adjusts the FG
+and BG colors of the generated images by the new method.  This method
+requires that Ghostscript has working @code{DELAYBIND} feature, thus is
+invalid with gs 9.27 (and possibly < 9.27).
 
-When it is @code{compatible} (default), @previewlatex{} uses traditional
-method.  This option is provided for backward compatibility with older
-gs.  See the below explanation for detail.
+When it is @code{compatible}, @previewlatex{} uses traditional method.
+This option is provided for backward compatibility with older gs.  See
+the below explanation for detail.
 
 When @code{nil}, no adjustment is done and ``black on white'' image is
 generated regardless of Emacs color.  This is provided for fallback for
@@ -191,6 +190,6 @@ written in the image although they may not match with your 
Emacs color
 well.
 @end enumerate
 
-The default value will be changed to @code{t} after Ghostscript 9.28 is
-released.
+The default value used to be @code{compatible} for short period before
+Ghostscript 9.50 was released but now is @code{t}.
 @end defopt
diff --git a/preview.el.in b/preview.el.in
index 03e1d9b..6699387 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -602,7 +602,7 @@ tag in the mode line."
   (setq preview-error-condition nil
compilation-in-progress (delq process compilation-in-progress)
 
-(defcustom preview-pdf-color-adjust-method 'compatible
+(defcustom preview-pdf-color-adjust-method t
   "Method to adjust colors of images generated from PDF.
 It is not consulted when the latex command produces DVI files.
 
@@ -638,10 +638,7 @@ that case.
 - Choose the value nil, which forces plain \"black on white\"
 appearance for the generated image.  You can at least read what
 are written in the image although they may not match with your
-Emacs color well.
-
-The default value will be changed to t after Ghostscript 9.28 is
-released."
+Emacs color well."
   :group 'preview-appearance
   :type '(choice
  (const :tag "Adjust to Emacs color (gs > 9.27)" t)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex dbc1fa0 71/80: Support new kernel macros \Ref and \labelformat

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit dbc1fa09d37b5ce9b73e92548c311c87ab66da0f
Author: Arash Esbati 
Commit: Arash Esbati 

Support new kernel macros \Ref and \labelformat

* font-latex.el (font-latex-built-in-keyword-classes): Add \Ref to
reference and \labelformat to function class.

* latex.el (LaTeX-common-initialization): Add support for \Ref and
\labelformat which are part of LaTeX kernel 2019-10-01 release.
---
 font-latex.el | 6 --
 latex.el  | 3 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index 486f39f..4df9526 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -340,7 +340,7 @@ variable `font-latex-fontify-sectioning'." ',num)
  font-lock-constant-face 2 command)
 ("reference"
  (("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{")
-  ("vref" "*{") ("eqref" "{") ("ref" "{") ("include" "{")
+  ("vref" "*{") ("eqref" "{") ("ref" "{") ("Ref" "{") ("include" "{")
   ("input" "{") ("bibliography" "{") ("index" "{") ("glossary" "{")
   ("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{")
   ("marginpar" "[{"))
@@ -356,7 +356,9 @@ variable `font-latex-fontify-sectioning'." ',num)
   ("newcounter" "{[") ("renewenvironment" "*{[[{{")
   ("renewcommand" "*|{\[[{") ("renewtheorem" "{[{[")
   ("usepackage" "[{[") ("fbox" "{") ("mbox" "{") ("rule" "[{{")
-  ("addvspace" "{") ("vspace" "*{") ("hspace" "*{") ("thinspace" "") 
("negthinspace" "")
+  ("addvspace" "{") ("vspace" "*{") ("hspace" "*{")
+  ("thinspace" "")  ("negthinspace" "")
+  ("labelformat" "{{")
   ;; XXX: Should macros without arguments rather be listed in a
   ;; separate category with 'noarg instead of 'command handling?
   ("enspace" "") ("enskip" "") ("quad" "") ("qquad" "") ("nonumber" "")
diff --git a/latex.el b/latex.el
index 602e2df..b4cf54f 100644
--- a/latex.el
+++ b/latex.el
@@ -6222,6 +6222,9 @@ function would return non-nil and `(match-string 1)' 
would return
'("label" TeX-arg-define-label)
'("pageref" TeX-arg-ref)
'("ref" TeX-arg-ref)
+   ;; \Ref and \labelformat are part of kernel with LaTeX 2019-10-01:
+   '("Ref" TeX-arg-ref)
+   '("labelformat" TeX-arg-counter t)
'("newcommand" TeX-arg-define-macro [ TeX-arg-define-macro-arguments ] t)
'("renewcommand" TeX-arg-macro [ TeX-arg-define-macro-arguments ] t)
'("newenvironment" TeX-arg-define-environment

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex d93db40 72/80: * latex.el (LaTeX-common-initialization): Add \Ref to `TeX-complete-list'.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit d93db403327674bfb9781f40d278d40e0e727dbe
Author: Arash Esbati 
Commit: Arash Esbati 

* latex.el (LaTeX-common-initialization): Add \Ref to `TeX-complete-list'.
---
 latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index b4cf54f..514ffbb 100644
--- a/latex.el
+++ b/latex.el
@@ -6136,7 +6136,7 @@ function would return non-nil and `(match-string 1)' 
would return
  ("\\nocite{\([^{}
\%,]*\)" 1 LaTeX-bibitem-list "}")
  ("\\nocite{\([^{}
\%]*,\)\([^{}
\%,]*\)"
   2 LaTeX-bibitem-list)
- ("\\ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
+ ("\\[Rr]ef{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
  ("\\eqref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
  ("\\pageref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
  ("\\\(index\|glossary\){\([^{}
\%]*\)"

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 3e179f8 53/80: Update style/fvextra.el to package version 1.4

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 3e179f890c52657ea27ed4b0319cfc65fbd80cd0
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/fvextra.el to package version 1.4

* style/fvextra.el (LaTeX-fvextra-key-val-options): Add new keys.
("fvextra"): Add new macros.  Add fontification support for
\EscVerb macro.
---
 style/fvextra.el | 74 +---
 1 file changed, 65 insertions(+), 9 deletions(-)

diff --git a/style/fvextra.el b/style/fvextra.el
index e5f5d19..4e817ee 100644
--- a/style/fvextra.el
+++ b/style/fvextra.el
@@ -1,6 +1,6 @@
-;;; fvextra.el --- AUCTeX style for `fvextra.sty' (v1.2.1)
+;;; fvextra.el --- AUCTeX style for `fvextra.sty' (v1.4)
 
-;; Copyright (C) 2017 Free Software Foundation, Inc.
+;; Copyright (C) 2017, 2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,7 +26,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `fvextra.sty' (v1.2.1) from 2016/09/02.
+;; This file adds support for `fvextra.sty' (v1.4) from 2019/02/04.
 ;; `fvextra.sty' is part of TeXLive.
 
 ;;; Code:
@@ -35,27 +35,50 @@
 (eval-when-compile
   (require 'cl-lib))
 
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
+(declare-function font-latex-update-font-lock
+ "font-latex"
+ (&optional syntactic-kws))
+
 (declare-function LaTeX-color-definecolor-list "color" ())
 (declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
 
+;; Defined in fancyvrb.el:
 (defvar LaTeX-fancyvrb-key-val-options-local)
 
 (defvar LaTeX-fvextra-key-val-options
   '(;; 3 General options
+("beameroverlays" ("true" "false"))
 ("curlyquotes" ("true" "false"))
+("extra" ("true" "false"))
+("fontencoding" (;; Reset to default document font encoding
+"none"
+;; 128+ glyph encodings (text)
+"OT1" "OT2" "OT3" "OT4" "OT6"
+;; 256 glyph encodings (text)
+"T1" "T2A" "T2B" "T2C" "T3" "T4" "T5"
+;; 256 glyph encodings (text extended)
+"X2"
+;; Other encodings
+"LY1" "LV1" "LGR"))
 ("highlightcolor")
 ("highlightlines")
 ("linenos" ("true" "false"))
 ("mathescape" ("true" "false"))
 ("numberfirstline" ("true" "false"))
 ;; ("numbers" ("none" "left" "right" "both"))
+("retokenize" ("true" "false"))
 ("space" ("\textvisiblespace"))
 ("spacecolor" ("none"))
 ("stepnumberfromfirst" ("true" "false"))
 ("stepnumberoffsetvalues" ("true" "false"))
 ("tab" ("\FancyVerbTab"))
 ("tabcolor" ("none"))
-;; 5.1 Line breaking options
+;; 7.1 Line breaking options
 ("breakafter" ("none"))
 ("breakaftergroup" ("true" "false"))
 ("breakaftersymbolpre")
@@ -69,16 +92,23 @@
 ("breakbeforesymbolpre")
 ("breakbeforesymbolpost")
 ("breakindent")
+("breakindentnchars")
 ("breaklines" ("true" "false"))
 ("breaksymbol")
 ("breaksymbolleft")
 ("breaksymbolright")
 ("breaksymbolindent")
+("breaksymbolindentnchars")
 ("breaksymbolindentleft")
+("breaksymbolindentleftnchars")
 ("breaksymbolindentright")
+("breaksymbolindentrightnchars")
 ("breaksymbolsep")
+("breaksymbolsepnchars")
 ("breaksymbolsepleft")
-("breaksymbolsepright"))
+("breaksymbolsepleftnchars")
+("breaksymbolsepright")
+("breaksymbolseprightnchars"))
   "Key=value options for fvextra macros and environments.")
 
 (defun LaTeX-fvextra-update-key-val ()
@@ -126,17 +156,43 @@
 LaTeX-fancyvrb-key-val-options-local))
 
(TeX-add-symbols
-;; 4.1 Line and text formatting
+;; 4.1 Inline formatting with vinlineset
+'("fvinlineset" (TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local))
+
+;; 4.2 Line and text formatting
 "FancyVerbFormatText"
 
-;; 5.3.2 Breaks within macro arguments
+;; 6 New commands and environments
+;; 6.1 \EscVerb
+'("EscVerb"
+  [ TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local ] "Text")
+'("EscVerb*"
+  [ TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local ] "Text")
+
+;; 7.3.2 Breaks within macro arguments
 "FancyVerbBreakStart"
 "FancyVerbBreakStop"
 
-;; 5.3.3 Customizing break behavior
+;; 7.3.3 Customizing break behavior
 "FancyVerbBreakAnywhereBreak"
 "FancyVerbBreakBeforeBreak"
-"FancyVerbBreakAfterBreak"))
+"FancyVerbBreakAfterBreak")
+
+   ;; Add \EscVerb*? to `LaTeX-verbatim-macros-with-braces-local':
+   (add-to-list 'LaTeX-verbatim-macros-with-braces-local
+   "EscVerb" t)
+   (add-to-list 'LaTeX-verbatim-macros-with-braces-local
+   "EscVerb*" t)
+
+   ;; Fontification
+   (when (and (fboundp 'font-latex-add-keywords)
+ (fboundp 'font-latex-update-font-lock)

[AUCTeX-diffs] [elpa] externals/auctex f127145 60/80: * context.el (ConTeXt-environment): Fix docstring.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit f127145cca3659063acad102431cff7ec0999f1b
Author: Arash Esbati 
Commit: Arash Esbati 

* context.el (ConTeXt-environment): Fix docstring.
---
 context.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/context.el b/context.el
index db2f86f..87bcd38 100644
--- a/context.el
+++ b/context.el
@@ -619,7 +619,7 @@ inserted after the sectioning command."
 ;;; Environments
 
 (defgroup ConTeXt-environment nil
-  "Environments in AUCTeX."
+  "Environments in ConTeXt."
   :group 'ConTeXt-macro)
 
 ;; TODO: interface awareness

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 0a9407c 47/80: Conform to `delete-selection-mode' (bug#36385)

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 0a9407cceea625c587eac8958d9921751c03ccf9
Author: Ikumi Keita 
Commit: Ikumi Keita 

Conform to `delete-selection-mode' (bug#36385)

* latex.el (LaTeX-insert-left-brace): Put `delete-selection' property
which obeys that of `self-insert-command' when
`LaTeX-electric-left-right-brace' feature is inactive.
---
 latex.el | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/latex.el b/latex.el
index dd6c398..760c42a 100644
--- a/latex.el
+++ b/latex.el
@@ -2792,6 +2792,8 @@ Automatic right brace insertion is done only if no prefix 
ARG is given and
 `LaTeX-electric-left-right-brace' is non-nil.
 Normally bound to keys \(, { and [."
   (interactive "*P")
+  ;; If you change the condition for `auto-p', adjust the condition in
+  ;; the `delete-selection' property, just below this defun, accordingly
___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c6d6c19 79/80: Merge remote-tracking branch 'origin/master' into externals/auctex

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c6d6c19b1387dc488693f1a7407299314f485f2e
Merge: 0c8d670 01dc048
Author: Tassilo Horn 
Commit: Tassilo Horn 

Merge remote-tracking branch 'origin/master' into externals/auctex
---
 Makefile.in|  15 +-
 auctex.el.in   |  41 ++-
 context.el |   2 +-
 doc/auctex.texi|   6 +-
 doc/changes.texi   |  28 +-
 doc/install.texi   |   4 +-
 doc/preview-problems.texi  |  56 
 font-latex.el  | 130 --
 latex.el   | 124 -
 multi-prompt.el|   8 +-
 preview.el | 194 ++
 prv-emacs.el   |   9 +-
 style/AnonymousPro.el  |  10 +-
 style/babel.el | 286 ++---
 style/beamer.el|   1 +
 .../path-expansion.el => style/beamerarticle.el|  24 +-
 .../tex/path-expansion.el => style/beamerswitch.el |  24 +-
 style/bicaption.el |   9 +-
 style/breqn.el |  14 +-
 style/caption.el   |  11 +-
 style/changelog.el | 159 
 style/cleveref.el  | 141 --
 style/color.el |   6 +-
 style/expl3.el |   7 +-
 style/fancyvrb.el  |  10 +-
 style/floatrow.el  |  20 +-
 style/fontspec.el  |   2 +-
 style/fvextra.el   |  74 +-
 style/hyperref.el  |  12 +-
 style/listings.el  |  23 +-
 style/ltugboat.el  | 283 
 style/mflogo.el|  15 +-
 style/{mflogo.el => multitoc.el}   |  38 ++-
 style/paracol.el   |  27 +-
 style/pst-plot.el  |   6 +-
 style/ragged2e.el  |  15 +-
 style/subcaption.el|  19 +-
 style/tcolorbox.el |  21 +-
 style/thmtools.el  |  35 ++-
 style/titlesec.el  |  18 +-
 style/varioref.el  | 141 +-
 style/xcolor.el|   9 +-
 style/xparse.el|  10 +-
 tests/latex/preview-latex-test.el  |   2 +-
 tests/tex/navigation.el|  54 
 tests/tex/path-expansion.el|   2 +-
 tex-buf.el |  62 +++--
 tex-info.el|   6 +-
 tex-jp.el  |   3 +-
 tex.el | 126 +++--
 texmathp.el|   6 +-
 51 files changed, 1860 insertions(+), 488 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 3c07c16..bee090e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,12 +52,15 @@ PACKAGE=auctex
 PACKAGE_INFO=auctex preview-latex
 EMACS=@EMACS@
 ELCC=$(EMACS) -batch -q -no-site-file -no-init-file -l lpath.el
-AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name "$@"))) \
-  (mapcar (function update-file-autoloads) command-line-args-left) \
+AUTOLOAD=--eval '(let ((autoload-file (expand-file-name "$@"))) \
+  (mapcar (lambda (file) \
+(update-file-autoloads file nil autoload-file)) \
+  command-line-args-left) \
   (save-buffers-kill-emacs t))'
 
-PREVIEW_AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name 
"$@"))) \
-   (update-file-autoloads "preview.el")(save-buffers-kill-emacs 
t))'
+PREVIEW_AUTOLOAD=--eval '(let ((autoload-file (expand-file-name "$@"))) \
+  (update-file-autoloads "preview.el" nil autoload-file) \
+  (save-buffers-kill-emacs t))'
 
 # Files and directories excluded from distributed tar ball.
 EXCLUDEDFILES=autogen.sh .gitignore doc/.gitignore doc/tex-ref.log \
@@ -165,7 +168,9 @@ STYLESRC = style/prosper.el \
   style/arabxetex.el style/australian.el style/newzealand.el \
   style/xltabular.el style/marginnote.el style/thmtools.el \
   style/ocg-p.el style/ocgx.el  style/thm-restate.el \
-  style/pythontex.el style/dashundergaps.el
+  style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
+   

[AUCTeX-diffs] [elpa] externals/auctex 4a56103 56/80: Reduce unnecessary local variable safety inquiry

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 4a561032c2beec4ea763f83edc17f3a908ea4c79
Author: Ikumi Keita 
Commit: Ikumi Keita 

Reduce unnecessary local variable safety inquiry

* tex.el (TeX-add-local-master): Call major mode function only when
necessary.
---
 tex.el | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tex.el b/tex.el
index de8c6cf..4a28e20 100644
--- a/tex.el
+++ b/tex.el
@@ -2456,11 +2456,12 @@ Get `major-mode' from master file and enable it."
 comment-prefix "mode: " mode-string "
"
 comment-prefix "TeX-master: " (prin1-to-string TeX-master) "
"
 comment-prefix "End:
")
-   (funcall mode)
-   ;; TeX modes run `VirTeX-common-initialization' which kills all local
-   ;; variables, thus `TeX-master' will be forgotten after `(funcall
-   ;; mode)'.  Reparse local variables in order to bring it back.
-   (hack-local-variables)
+   (unless (eq mode major-mode)
+ (funcall mode)
+ ;; TeX modes run `VirTeX-common-initialization' which kills all local
+ ;; variables, thus `TeX-master' will be forgotten after `(funcall
+ ;; mode)'.  Reparse local variables in order to bring it back.
+ (hack-local-variables))
 
 (defun TeX-local-master-p ()
   "Return non-nil if there is a `TeX-master' entry in local variables spec.

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex dc5e90e 66/80: Add new style/multitoc.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit dc5e90e18ee2084ac71f18d7b6627dca3210ac80
Author: Arash Esbati 
Commit: Arash Esbati 

Add new style/multitoc.el

* Makefile.in (STYLESRC): Add new style.

* style/multitoc.el: New file
---
 Makefile.in   |  3 ++-
 style/multitoc.el | 48 
 2 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 70bd71c..bee090e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -169,7 +169,8 @@ STYLESRC = style/prosper.el \
   style/xltabular.el style/marginnote.el style/thmtools.el \
   style/ocg-p.el style/ocgx.el  style/thm-restate.el \
   style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
-  style/changelog.el style/ltugboat.el  style/beamerswitch.el
+  style/changelog.el style/ltugboat.el  style/beamerswitch.el \
+  style/multitoc.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/multitoc.el b/style/multitoc.el
new file mode 100644
index 000..43fa817
--- /dev/null
+++ b/style/multitoc.el
@@ -0,0 +1,48 @@
+;;; multitoc.el --- AUCTeX style for `multitoc.sty' (v2.01)
+
+;; Copyright (C) 2019 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati 
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2019-09-07
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `multitoc.sty' (v2.01) from 1999/06/08.
+;; `multitoc.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "multitoc"
+ (lambda ()
+   (TeX-run-style-hooks "multicol" "ifthen")
+   (TeX-add-symbols
+"multicolumntoc"
+"multicolumnlot"
+"multicolumnlof"))
+ LaTeX-dialect)
+
+(defvar LaTeX-multitoc-package-options
+  '("toc" "lof" "lot")
+  "Package options for the multitoc package.")
+
+;;; multitoc.el ends here

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 1b88eda 38/80: Fix autoload generation code (bug#35758)

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 1b88eda687913a3a355a010ed0483bfcfce28301
Author: Tassilo Horn 
Commit: Tassilo Horn 

Fix autoload generation code (bug#35758)

* Makefile.in (AUTOLOAD,PREVIEW_AUTOLOAD): Use arg instead of
  generated-autoload-file (bug#35758).
---
 Makefile.in | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 822eea9..74659f7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,12 +52,15 @@ PACKAGE=auctex
 PACKAGE_INFO=auctex preview-latex
 EMACS=@EMACS@
 ELCC=$(EMACS) -batch -q -no-site-file -no-init-file -l lpath.el
-AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name "$@"))) \
-  (mapcar (function update-file-autoloads) command-line-args-left) \
+AUTOLOAD=--eval '(let ((autoload-file (expand-file-name "$@"))) \
+  (mapcar (lambda (file) \
+(update-file-autoloads file nil autoload-file)) \
+  command-line-args-left) \
   (save-buffers-kill-emacs t))'
 
-PREVIEW_AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name 
"$@"))) \
-   (update-file-autoloads "preview.el")(save-buffers-kill-emacs 
t))'
+PREVIEW_AUTOLOAD=--eval '(let ((autoload-file (expand-file-name "$@"))) \
+  (update-file-autoloads "preview.el" nil autoload-file) \
+  (save-buffers-kill-emacs t))'
 
 # Files and directories excluded from distributed tar ball.
 EXCLUDEDFILES=autogen.sh .gitignore doc/.gitignore doc/tex-ref.log \

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex dac5503 64/80: Add new style/ltugboat.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit dac55036609b37a5f819075a695e4f077110a428
Author: Arash Esbati 
Commit: Arash Esbati 

Add new style/ltugboat.el

* Makefile.in (STYLESRC): Add new style.

* style/ltugboat.el: New file.
---
 Makefile.in   |   2 +-
 style/ltugboat.el | 283 ++
 2 files changed, 284 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index d3da99e..70bd71c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -169,7 +169,7 @@ STYLESRC = style/prosper.el \
   style/xltabular.el style/marginnote.el style/thmtools.el \
   style/ocg-p.el style/ocgx.el  style/thm-restate.el \
   style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
-  style/changelog.el style/beamerswitch.el
+  style/changelog.el style/ltugboat.el  style/beamerswitch.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/ltugboat.el b/style/ltugboat.el
new file mode 100644
index 000..4f9e9f6
--- /dev/null
+++ b/style/ltugboat.el
@@ -0,0 +1,283 @@
+;;; ltugboat.el --- AUCTeX style for `ltugboat.cls' (v2.21)
+
+;; Copyright (C) 2019 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati 
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2019-05-11
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `ltugboat.cls' (v2.21) from 2018/12/14.
+;; `ltugboat.cls' is part of TeXLive.
+
+;;; Code:
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
+(defun LaTeX-env-ltugboat-verbatim (environment)
+  "Insert verbatim environment with an optional argument."
+  (let* ((crm-separator (regexp-quote TeX-esc))
+(opts (mapconcat #'identity
+ (TeX-completing-read-multiple
+  (TeX-argument-prompt t nil "command(s)")
+  '("\tiny"  "\scriptsize" "\footnotesize"
+"\small" "\normalsize" "\large"
+"\Large" "\LARGE"  "\huge"
+"\Huge"  "\makevmeta"  "\ruled")
+  nil nil TeX-esc)
+ TeX-esc)))
+(LaTeX-insert-environment environment
+ (when (and opts
+(not (string= opts "")))
+   (concat LaTeX-optop opts LaTeX-optcl)
+
+(TeX-add-style-hook
+ "ltugboat"
+ (lambda ()
+
+   ;; Run the style hook for mflogo in order to define the macros \MF
+   ;; and \MP:
+   (TeX-run-style-hooks "mflogo")
+
+   ;; Preliminaries: ltugboat.cls suppresses \part & \subparagraph
+   (LaTeX-largest-level-set "section")
+   (LaTeX-add-counters "section" "subsection" "subsubsection" "paragraph"
+  "figure" "table")
+
+   ;; 6 Divisions of the paper
+   (TeX-add-symbols
+'("nameref" TeX-arg-ref))
+
+   (setq TeX-complete-list
+(append
+ '(("\\nameref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}"))
+ TeX-complete-list))
+
+   ;; 6.1 Abstracts
+   (LaTeX-add-environments '("abstract")
+  '("longabstract"))
+
+   ;; 6.2 Appendices: Cater for appendix environment and don't indent
+   ;; the content
+   (LaTeX-add-environments '("appendix"))
+
+   (unless (string-match-p "appendix" LaTeX-document-regexp)
+ (set (make-local-variable 'LaTeX-document-regexp)
+ (concat LaTeX-document-regexp "\|" "appendix")))
+
+   (TeX-add-symbols
+;; 7 Titles, addresses and so on
+'("shortTitle"  "Short title")
+'("shortAuthor" LaTeX-arg-author)
+'("address" "Address")
+'("netaddress"  "Email address")
+'("personalURL" "Web page")
+'("ORCID"   "Digital identifier")
+
+;; 7.1 Compilation articles
+'("contributor" "Contributor")
+'("makesignature" 0))
+
+   ;; 8 Verbatim text
+   (LaTeX-add-environments
+'("verbatim" LaTeX-env-ltugboat-verbatim))
+
+   ;; 10.1 Acronyms and logos
+   (TeX-add-symbols
+'("acro" "Acronym")
+"AMS"
+"AmS"
+"AmSLaTeX"
+"AmSTeX"
+"ANSI"
+"API"
+"ASCII"
+"aw"
+"AW"
+"BibLaTeX"
+"BibTeX"
+"BSD"
+"C

[AUCTeX-diffs] [elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 2c232474a6406fa7683ffaa70406757904423a46
Author: Arash Esbati 
Commit: Arash Esbati 

Support explicitly numbered group contructs

* latex.el (LaTeX-extract-key-value-label): Add an optional
argument for explicitly numbered group contructs.
---
 latex.el | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/latex.el b/latex.el
index 17a4462..602e2df 100644
--- a/latex.el
+++ b/latex.el
@@ -6694,10 +6694,12 @@ functions `TeX-arg-color' (style/color.el) or
  last-optional-rejected))
  ,@body))
 
-(defun LaTeX-extract-key-value-label (&optional key)
+(defun LaTeX-extract-key-value-label (&optional key num)
   "Return a regexp string to match a label in an optional argument.
 The optional KEY is a string which is the name of the key in the
-key=value, default is \"label\".
+key=value, default is \"label\".  NUM is an integer for an
+explicitly numbered group construct, useful when adding items to
+`reftex-label-regexps'.
 
 As an extra feature, the key can be the symbol none where the
 entire matching for the key=value is skipped.  The regexp then is
@@ -6723,6 +6725,9 @@ wrapped in \(?:...\)? then."
 "[[:space:]]*=[[:space:]]*"
 ;; Match the value; braces around the value are optional
 "{?\("
+;; Cater for NUM which sets the regexp group
+(when (and num (integerp num))
+  (concat "?" (number-to-string num) ":"))
 ;; One of these chars terminates the value
 "[^] ,}
%]+"
 ;; Close the group

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 85dd4fe 73/80: Delete \Ref and \labelformat from varioref.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 85dd4fe521fab8d8c37c59afb1ea22fa1b162881
Author: Arash Esbati 
Commit: Arash Esbati 

Delete \Ref and \labelformat from varioref.el

* style/varioref.el ("varioref"): Delete \Ref and \labelformat
from style hook and fontification support.
---
 style/varioref.el | 11 +++
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/style/varioref.el b/style/varioref.el
index aeaaee0..d5e7e0d 100644
--- a/style/varioref.el
+++ b/style/varioref.el
@@ -53,9 +53,6 @@
 '("vrefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
 '("vpagerefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
 
-'("labelformat" TeX-arg-counter t)
-
-'("Ref" TeX-arg-ref)
 '("Vref" TeX-arg-ref)
 '("Vref*" TeX-arg-ref)
 
@@ -69,11 +66,12 @@
 
;; Install completion for labels.  Only offer completion for
;; commands that take only one reference as an argument
+   ;; FIXME: The first 3 entries can be reduced to
+   ;; ("\\[Vv]ref\*?{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")  ???
(setq TeX-complete-list
 (append
  '(("\\[Vv]ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
("\\vref\*?{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-   ("\\Ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
("\\vref\*{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
("\\fullref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
("\\vpageref\*?\(\[[^]]*\]\)*{\([^{}
\%,]*\)"
@@ -88,12 +86,9 @@
("vpageref"  "*[[{")
("vrefrange" "*[{{")
("vpagerefrange" "*[{{")
-   ("Ref"   "{")
("Vref"  "*{")
("fullref"   "{"))
- 'reference)
- (font-latex-add-keywords '(("labelformat"   "{{"))
- 'function))
+ 'reference))
 
;; Activate RefTeX reference style.
(and LaTeX-reftex-ref-style-auto-activate

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 52e0dac 68/80: Improve detecting of rejected optional arguments

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 52e0dace561924265ecc2bd11e05001ea062bd85
Author: Arash Esbati 
Commit: Arash Esbati 

Improve detecting of rejected optional arguments

* style/bicaption.el (LaTeX-arg-bicaption-bicaption):
* style/caption.el (LaTeX-arg-caption-captionbox):
* style/floatrow.el (LaTeX-floatrow-arg-floatbox):
* style/xcolor.el (TeX-arg-xcolor-fcolorbox): Add an additional
check for detecting if last optional argument was rejected.
---
 style/bicaption.el |  3 ++-
 style/caption.el   |  3 ++-
 style/floatrow.el  | 10 ++
 style/xcolor.el|  3 ++-
 4 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/style/bicaption.el b/style/bicaption.el
index 4281bd1..7bc0a35 100644
--- a/style/bicaption.el
+++ b/style/bicaption.el
@@ -122,7 +122,8 @@ arguments."
 (completing-read (TeX-argument-prompt t nil "Width")
  (mapcar (lambda (elt) (concat TeX-esc 
(car elt)))
  (LaTeX-length-list)
-(last-optional-rejected (and width (string= width "")))
+(last-optional-rejected (or (not width)
+(and width (string= width ""
 (inpos (LaTeX-check-insert-macro-default-style
 (if (and width (not (string-equal width "")))
 (completing-read (TeX-argument-prompt t nil "Inner 
position")
diff --git a/style/caption.el b/style/caption.el
index c8f118d..60e6e5a 100644
--- a/style/caption.el
+++ b/style/caption.el
@@ -273,7 +273,8 @@ caption, insert only a caption."
 (completing-read (TeX-argument-prompt t nil "Width")
  (mapcar (lambda (elt) (concat TeX-esc (car 
elt)))
  (LaTeX-length-list)
-(last-optional-rejected (and width (string= width "")))
+(last-optional-rejected (or (not width)
+(and width (string= width ""
 (inpos (LaTeX-check-insert-macro-default-style
 (if (and width (not (string-equal width "")))
 (completing-read (TeX-argument-prompt t nil "Inner 
position")
diff --git a/style/floatrow.el b/style/floatrow.el
index d26ca29..57f58c7 100644
--- a/style/floatrow.el
+++ b/style/floatrow.el
@@ -355,13 +355,15 @@ If OPTIONAL is non-nil, indicate optional argument during 
query."
  (TeX-argument-prompt t nil "Width")
  (mapcar (lambda (x) (concat TeX-esc (car x)))
  (LaTeX-length-list)
-(last-optional-rejected (and width (string= width "")))
+(last-optional-rejected (or (not width)
+(and width (string= width ""
 (height (LaTeX-check-insert-macro-default-style
  (completing-read
   (TeX-argument-prompt t nil "Height")
   (mapcar (lambda (x) (concat TeX-esc (car x)))
   (LaTeX-length-list)
-(last-optional-rejected (and height (string= height "")))
+(last-optional-rejected (or (not height)
+(and height (string= height ""
 (vertpos (LaTeX-check-insert-macro-default-style
   (if (string= height "")
   ""
@@ -374,8 +376,8 @@ If OPTIONAL is non-nil, indicate optional argument during 
query."
 (when (and width (string= width "")
   height (not (string= height "")))
   (insert "[]"))
-(and (TeX-argument-insert height t))
-(and (TeX-argument-insert vertpos t)))
+(and height (TeX-argument-insert height t))
+(and vertpos (TeX-argument-insert vertpos t)))
   ;; Now query for the (short-)caption.  Also check for the
   ;; float-type; if we're inside (sub)?floatrow*?, then check for the
   ;; next outer environment:
diff --git a/style/xcolor.el b/style/xcolor.el
index 2d6b3c5..43c5637 100644
--- a/style/xcolor.el
+++ b/style/xcolor.el
@@ -350,7 +350,8 @@ xcolor package.")
 (TeX-argument-prompt t nil "(Frame) Color model")
 LaTeX-xcolor-color-models)))
 ;; Set `last-optional-rejected' acc. to `xfrmodel'
-(last-optional-rejected (and xfrmodel (string= xfrmodel "")))
+(last-optional-rejected (or (not xfrmodel)
+(and xfrmodel (string= xfrmodel ""
 (xfrspec  (if (or (null xfrmodel)
   (string= xfrmodel "")
   (string= xfrmodel "named"))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex dc2c2d6 65/80: Make "PDF Tools" viewer available under Windows and macOS

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit dc2c2d60bd0ddcb8bd2af421662d6bf251683d8c
Author: Arash Esbati 
Commit: Arash Esbati 

Make "PDF Tools" viewer available under Windows and macOS

* tex.el (TeX-view-program-list-builtin): Make entry for "PDF
Tools" available under Windows and macOS.  (bug#37152)

* doc/changes.texi: Mention availability of "PDF Tools" under
Windows and macOS in `TeX-view-program-list-builtin'.

* doc/install.texi (Prerequisites): Replace "Mac OS X" with
"macOS".
---
 doc/changes.texi | 9 +
 doc/install.texi | 4 ++--
 tex.el   | 2 ++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/doc/changes.texi b/doc/changes.texi
index b1b95e2..41e73da 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -74,6 +74,15 @@ Support for column specifiers @samp{w} and @samp{W} provided 
by
 of columns only works when the @samp{align} parameter is enclosed in
 braces, e.g., @samp{w@{l@}@{3cm@}}.  The short version @samp{wl@{3cm@}}
 is not supported.
+
+@item
+Entries for @samp{PDF Tools} are added in
+@code{TeX-view-program-list-builtin} for Windows and macOS.  This viewer
+can be configured under these operating systems with an entry like this
+in an init file:
+@lisp
+(setq TeX-view-program-selection '((output-pdf "PDF Tools")))
+@end lisp
 @end itemize
 
 @heading News in 12.1
diff --git a/doc/install.texi b/doc/install.texi
index 1940d9d..0e88cec 100644
--- a/doc/install.texi
+++ b/doc/install.texi
@@ -94,8 +94,8 @@ support.
 @item Windows
 Precompiled versions are available from
 @uref{https://ftp.gnu.org/gnu/emacs/windows/}.
-@item Mac OS X
-For an overview of precompiled versions of Emacs for Mac OS X see for
+@item macOS
+For an overview of precompiled versions of Emacs for macOS see for
 example @uref{https://www.emacswiki.org/emacs/EmacsForMacOS}.
 @item GNU/Linux
 Most GNU/Linux distributions nowadays provide a recent variant of Emacs
diff --git a/tex.el b/tex.el
index 4a28e20..95448d8 100644
--- a/tex.el
+++ b/tex.el
@@ -1266,6 +1266,7 @@ viewer."
 (paper-letter "-y=Letter ")
 (paper-executive "-y=Executive ")
 "%d" (mode-io-correlate " \"# %n '%b'\"")) "dviout")
+  ("PDF Tools" TeX-pdf-tools-sync-view)
   ("SumatraPDF"
("SumatraPDF -reuse-instance"
(mode-io-correlate " -forward-search \"%b\" %n") " %o")
@@ -1275,6 +1276,7 @@ viewer."
((eq system-type 'darwin)
 '(("Preview.app" "open -a Preview.app %o" "open")
   ("Skim" "open -a Skim.app %o" "open")
+  ("PDF Tools" TeX-pdf-tools-sync-view)
   ("displayline" "displayline %n %o %b" "displayline")
   ("open" "open %o" "open")))
(t

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c5e47f8 80/80: ; Recompile using GNUMakefile after merge from origin/master

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c5e47f87152d6d95cf3cd7a091abd8af5a42339f
Author: Tassilo Horn 
Commit: Tassilo Horn 

; Recompile using GNUMakefile after merge from origin/master
---
 auctex.info| 259 +
 preview-latex.info | 144 -
 tex-site.el|   4 +-
 3 files changed, 247 insertions(+), 160 deletions(-)

diff --git a/auctex.info b/auctex.info
index af1c6ab..8ecee0b 100644
--- a/auctex.info
+++ b/auctex.info
@@ -1,6 +1,6 @@
-This is auctex.info, produced by makeinfo version 6.5 from auctex.texi.
+This is auctex.info, produced by makeinfo version 6.7 from auctex.texi.
 
-This manual is for AUCTeX (version 12.1.2 from 2019-02-08), a
+This manual is for AUCTeX (version 12.1.2.2019-10-16 from 2019-10-16), a
 sophisticated TeX environment for Emacs.
 
Copyright (C) 1992-1995, 2001, 2002, 2004-2018 Free Software
@@ -361,10 +361,9 @@ File: auctex.info,  Node: Prerequisites,  Next: Configure, 
 Up: Installation
  Windows
   Precompiled versions are available from
   .
- Mac OS X
-  For an overview of precompiled versions of Emacs for Mac OS X
-  see for example
-  .
+ macOS
+  For an overview of precompiled versions of Emacs for macOS see
+  for example .
  GNU/Linux
   Most GNU/Linux distributions nowadays provide a recent variant
   of Emacs via their package repositories.
@@ -1484,10 +1483,10 @@ the customizable variable 'TeX-electric-math'.
 '\(...\)' in LaTeX files by pressing '$', add the following to your init
 file
  (add-hook 'plain-TeX-mode-hook
- (lambda () (set (make-variable-buffer-local 'TeX-electric-math)
+ (lambda () (set (make-local-variable 'TeX-electric-math)
  (cons "$" "$"
  (add-hook 'LaTeX-mode-hook
- (lambda () (set (make-variable-buffer-local 'TeX-electric-math)
+ (lambda () (set (make-local-variable 'TeX-electric-math)
  (cons "\(" "\)"
 
 Braces
@@ -2917,7 +2916,7 @@ following stanza into your init file:
  (eval-after-load "font-latex"
'(setq-default
  font-latex-match-reference-keywords-local
- (remove (TeX-assoc-string "footnote"
+ (remove (assoc-string "footnote"
  font-latex-match-reference-keywords-local)
  font-latex-match-reference-keywords-local)))
 
@@ -3407,12 +3406,11 @@ Emacs 25 is able to prettify symbols in programming 
language buffers,
 
AUCTeX can use this feature in order to display certain math macros
 and greek letters using their Unicode representation, too.  For example,
-the TeX code 'lphaimes eta' will be displayed as 'α × β'.
-When point is on one of the characters, it'll be unprettified
-automatically, meaning you see the verbatim text again.  For this
-behaviour however you need to set 'prettify-symbols-unprettify-at-point'
-to t or 'right-edge' which will unprettify the symbol when point moves
-into or near it.
+the TeX code 'lphaimes eta' will be displayed as 'α × β'.  When
+point is on one of the characters, it'll be unprettified automatically,
+meaning you see the verbatim text again.  For this behaviour however you
+need to set 'prettify-symbols-unprettify-at-point' to t or 'right-edge'
+which will unprettify the symbol when point moves into or near it.
 
To enable prettification in AUCTeX, simply add
 'prettify-symbols-mode' to 'TeX-mode-hook'.  If you enabled
@@ -5876,8 +5874,8 @@ A.1 Copying this Manual
 
 The copyright notice for this manual is:
 
-   This manual is for AUCTeX (version 12.1.2 from 2019-02-08), a
-sophisticated TeX environment for Emacs.
+   This manual is for AUCTeX (version 12.1.2.2019-10-16 from
+2019-10-16), a sophisticated TeX environment for Emacs.
 
Copyright (C) 1992-1995, 2001, 2002, 2004-2018 Free Software
 Foundation, Inc.
@@ -6386,6 +6384,18 @@ A.2 Changes and New Features
 News in 12.2
 
 
+   * A new method is implemented in preview-latex to adjust the
+ foreground colors of generated images to those of Emacs, when the
+ LaTeX command produces PDF.  The traditional method became invalid
+ because of the change introduced in Ghostscript 9.27.
+ Unfortunately, the new method doesn't work due to a bug in
+ Ghostscript 9.27 and is valid only for Ghostscript > 9.27.  There
+ is also a fallback method for gs 9.27 users which displays plain
+ "black on white" images.  For successful function of preview-latex,
+ the users are encouraged to set up the new user option
+ 'preview-pdf-color-adjust-method' to choose appropriate option
+ among the three: new, traditional and fallback method.
+
* AUCTeX has support for the Flymake package in Emacs 26 or newer.
  To enabl

[AUCTeX-diffs] [elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 9127647b84d06d2e2c83fc9f0274f15480a6a454
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/varioref.el to package version 1.6b

* style/varioref.el ("varioref"): Rearrange macros acc. to the
manual.  Add missing starred version of \Vref.  Add fontification
support for \labelformat.
(LaTeX-varioref-package-options): Update package options.
---
 style/varioref.el | 146 +-
 1 file changed, 79 insertions(+), 67 deletions(-)

diff --git a/style/varioref.el b/style/varioref.el
index ce840e7..aeaaee0 100644
--- a/style/varioref.el
+++ b/style/varioref.el
@@ -1,6 +1,6 @@
-;;; varioref.el --- AUCTeX style file with support for varioref.sty
+;;; varioref.el --- AUCTeX style for `varioref.sty' (v1.6b)
 
-;; Copyright (C) 1999, 2013, 2015, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2013, 2015, 2018, 2019 Free Software Foundation, Inc.
 
 ;; Author: Carsten Dominik 
 ;; Mads Jensen 
@@ -23,6 +23,11 @@
 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 ;; 02110-1301, USA.
 
+;;; Commentary:
+
+;; This file adds support for `varioref.sty' (v1.6b) from 2019/09/08.
+;; `varioref.sty' is a standard LaTeX package and part of TeXLive.
+
 ;;; Code:
 
 ;; Silence the compiler:
@@ -30,73 +35,80 @@
  "font-latex"
  (keywords class))
 
-(TeX-add-style-hook "varioref"
-   (lambda ()
-
- (TeX-add-symbols
-
-  ;; The macros with label arguments
-  '("vref" TeX-arg-ref)
-  '("Vref" TeX-arg-ref)
-  '("vrefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
-  '("vrefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
-  '("vref*" TeX-arg-ref)
-  '("Vref" TeX-arg-ref)
-  '("Ref" TeX-arg-ref)
-  '("vpageref" [ "Same page text" ] [ "Different page text" ] TeX-arg-ref)
-  '("vpageref*" [ "Same page text" ] [ "Different page text" ]
-TeX-arg-ref)
-  '("fullref" TeX-arg-ref)
-  '("labelformat" TeX-arg-counter t)
-
-  '("vpagerefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
-  '("vpagerefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
-
-  ;; And the other macros used for customization
-  "reftextbefore" "reftextfacebefore"
-  "reftextafter"  "reftextfaceafter" "reftexlabelrange"
-  "reftextfaraway" "vreftextvario" "vrefwarning"
-  "vpagerefnum" "vrefshowerrors")
-
- ;; Install completion for labels.  Only offer completion for
- ;; commands that take only one reference as an argument
- (setq TeX-complete-list
-  (append
-   '(("\\[Vv]ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-  ("\\vref\*?{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-  ("\\Ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-  ("\\vref\*{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-  ("\\fullref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-  ("\\vpageref\*?\(\[[^]]*\]\)*{\([^{}
\%,]*\)"
-  2 LaTeX-label-list "}"))
-   TeX-complete-list))
-
- ;; Fontification
- (when (and (fboundp 'font-latex-add-keywords)
-   (eq TeX-install-font-lock 'font-latex-setup))
-   (font-latex-add-keywords '(;; vref is already in font-latex.el,
- ;; so don't add it here again
- ("Vref"  "*{")
- ("vpageref"  "*[[{")
- ("vrefrange" "*[{{")
- ("Ref"   "{")
- ("fullref"   "{")
- ("vpagerefrange" "*[{{"))
-   'reference))
-
- ;; Activate RefTeX reference style.
- (and LaTeX-reftex-ref-style-auto-activate
- (fboundp 'reftex-ref-style-activate)
- (reftex-ref-style-activate "Varioref")))
-   LaTeX-dialect)
+(TeX-add-style-hook
+ "varioref"
+ (lambda ()
+
+   (TeX-add-symbols
+;; 3 The user interface
+'("vref" TeX-arg-ref)
+'("vpageref" [ "Same page text" ] [ "Different page text" ] TeX-arg-ref)
+'("vrefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+'("vpagerefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+"vpagerefnum"
+'("vpagerefcompare" 4)
+'("vpagerefnearby"  3)
+'("vref*" TeX-arg-ref)
+'("vpageref*" [ "Same page text" ] [ "Different page text" ] TeX-arg-ref)
+'("vrefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+'("vpagerefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+
+'("labelformat" TeX-arg-counter t)
+
+'("Ref" TeX-arg-ref)
+'("Vref" TeX-arg-ref)
+'("Vref*" TeX-arg-ref)
+
+;; 5 Customization
+"reftextbefore" "reftextfacebefore"
+"reftextafter"  "reftextfaceafter"
+"reftextfaraway" "vreftextvario"
+"reftextpagerange" "reftexlabelrange"
+"vrefwarning"  "vrefshowerrors"
+'("full

[AUCTeX-diffs] [elpa] externals/auctex 799c844 63/80: Add new style/changelog.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 799c844ae4fa2b4cde098a7b42b93c0455bf4acb
Author: Arash Esbati 
Commit: Arash Esbati 

Add new style/changelog.el

* Makefile.in (STYLESRC): Add new style.

* style/changelog.el: New file.
---
 Makefile.in|   2 +-
 style/changelog.el | 154 +
 2 files changed, 155 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 74659f7..d3da99e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -169,7 +169,7 @@ STYLESRC = style/prosper.el \
   style/xltabular.el style/marginnote.el style/thmtools.el \
   style/ocg-p.el style/ocgx.el  style/thm-restate.el \
   style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
-  style/beamerswitch.el
+  style/changelog.el style/beamerswitch.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/changelog.el b/style/changelog.el
new file mode 100644
index 000..b307ec2
--- /dev/null
+++ b/style/changelog.el
@@ -0,0 +1,154 @@
+;;; changelog.el --- AUCTeX style for `changelog.sty' (v2.0.0)
+
+;; Copyright (C) 2019 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati 
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2019-05-05
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `changelog.sty' (v2.0.0).
+;; `changelog.sty' is part of TeXLive.
+
+;;; Code:
+
+(defvar LaTeX-changelog-env-key-val-options
+  '(("section" ("true" "false"))
+("title"))
+  "Key=value options for changelog environment.
+The keys sectioncmd and label are added in the function
+`LaTeX-env-changelog'.")
+
+(defvar LaTeX-changelog-version-env-key-val-options
+  '(("version")
+("v")
+("author")
+("date")
+("yanked" ("true" "false"))
+("simple" ("true" "false"))
+("short"  ("true" "false")))
+  "key=value options for version environment.")
+
+(defun LaTeX-env-changelog (environment)
+  "Insert ENVIRONMENT, ask for optional argument and insert a label."
+  (let* ((seccmds (mapcar #'car LaTeX-section-list))
+;; Collect the key=vals acc. to environment & documentclass
+(opts (TeX-read-key-val
+   t
+   (if (string= environment "changelog")
+   (append
+`(("sectioncmd"
+   ,(if (< (LaTeX-largest-level) 2)
+(append
+ (mapcar (lambda (cmd) (concat TeX-esc cmd))
+ seccmds)
+ (mapcar (lambda (cmd) (concat TeX-esc cmd "*"))
+ seccmds))
+  (append
+   (mapcar (lambda (cmd) (concat TeX-esc cmd))
+   (remove "chapter" seccmds))
+   (mapcar (lambda (cmd) (concat TeX-esc cmd "*"))
+   (remove "chapter" seccmds))
+LaTeX-changelog-env-key-val-options
+LaTeX-changelog-version-env-key-val-options)
+ LaTeX-changelog-version-env-key-val-options)))
+;; Extract the chosen sectioning command
+(sec (progn
+   (string-match "sectioncmd=\\\([a-z]+\)\(\*?\)" opts)
+   (match-string-no-properties 1 opts)))
+;; Temp. re-bind `LaTeX-label-alist' and pick the label
+;; prefix from `LaTeX-section-label'
+(LaTeX-label-alist
+ (when (and (string= environment "changelog")
+(match-string 2 opts)
+(not (string= (match-string 2 opts) "*")))
+   `(,(cons environment
+(cdr (assoc sec LaTeX-section-label))
+;; Temp. re-bind `reftex-label-alist' as well and make
+;; `reftex-label' DTRT:
+(reftex-label-alist
+ (when (and (boundp 'reftex-label-alist)
+LaTeX-label-alist
+(string= environment "changelog"))
+   `((,environment ?s ,(cdr (assoc sec LaTeX-section-label)) nil t)
+(LaTeX-insert-environment
+ environment
+ (when (and opts (not (string= opts "")))
+   (concat LaTeX-optop opts LaTeX-optcl)))
+

[AUCTeX-diffs] [elpa] externals/auctex 2a642a4 19/80: Add support for ChangeLog entries for LaTeX files

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 2a642a45814b57243a6c78aa876211175afc992e
Author: Arash Esbati 
Commit: Arash Esbati 

Add support for ChangeLog entries for LaTeX files

* tex.el (TeX-current-defun-name): New function returning the name
of current sectioning command when `C-x 4 a' is invoked.

* latex.el (LaTeX-common-initialization): Set a local version
`add-log-current-defun-function' to `TeX-current-defun-name'.
---
 latex.el |  8 ++--
 tex.el   | 53 -
 2 files changed, 58 insertions(+), 3 deletions(-)

diff --git a/latex.el b/latex.el
index 898eec8..6a96cb4 100644
--- a/latex.el
+++ b/latex.el
@@ -1,6 +1,6 @@
 ;;; latex.el --- Support for LaTeX documents.
 
-;; Copyright (C) 1991, 1993-2018 Free Software Foundation, Inc.
+;; Copyright (C) 1991, 1993-2019 Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Keywords: tex
@@ -6516,7 +6516,11 @@ function would return non-nil and `(match-string 1)' 
would return
   ;; emacs 24.4.
   (when (and LaTeX-electric-left-right-brace
 (boundp 'electric-pair-mode))
-(set (make-local-variable 'electric-pair-mode) nil)))
+(set (make-local-variable 'electric-pair-mode) nil))
+
+  ;; Initialization of `add-log-current-defun-function':
+  (set (make-local-variable 'add-log-current-defun-function)
+   #'TeX-current-defun-name))
 
 (defun LaTeX-imenu-create-index-function ()
   "Imenu support function for LaTeX."
diff --git a/tex.el b/tex.el
index f469a6c..6c2cbb6 100644
--- a/tex.el
+++ b/tex.el
@@ -1,6 +1,6 @@
 ;;; tex.el --- Support for TeX documents.
 
-;; Copyright (C) 1985-1987, 1991, 1993-2018 Free Software Foundation, Inc.
+;; Copyright (C) 1985-1987, 1991, 1993-2019 Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Keywords: tex
@@ -6575,6 +6575,57 @@ Used as function for validating a variable's 
`safe-local-variable' property."
   (setq lst (cdr lst)))
 all-strings)))
 
+;; add-log.el: This function is a variation of
+;; `tex-current-defun-name' defined in `tex-mode.el'.  In `latex.el',
+;; the variable `add-log-current-defun-function' is set to this
+;; function.
+(defun TeX-current-defun-name ()
+  "Return the name of the TeX section/paragraph/chapter at point, or nil."
+  (save-excursion
+(let (s1 e1 s2 e2)
+  ;; If we are now precisely at the beginning of a sectioning
+  ;; command, move forward and make sure `re-search-backward'
+  ;;  finds this one rather than the previous one:
+  (or (eobp) (progn
+   (when (looking-at-p "\\")
+ (forward-char))
+   (unless (eolp)
+ (forward-sexp
+  ;; Search backward for sectioning command.  If
+  ;; `LaTeX-section-label' is buffer-local, assume that a style
+  ;; has changed the value and recalculate the string.  Otherwise
+  ;; take the standard one:
+  (when (re-search-backward
+ (if (local-variable-p 'LaTeX-section-label)
+ (concat (regexp-opt
+  (remove "part" (mapcar #'car LaTeX-section-label)))
+ "\*?")
+   "\\\(sub\)*\(section\|paragraph\|chapter\)\*?")
+ nil t)
+;; Skip over the backslash:
+(setq s1 (1+ (point)))
+;; Skip over the sectioning command, incl. the *:
+(setq e1 (goto-char (match-end 0)))
+;; Skip over the optional argument, if any:
+(when (looking-at-p "[ ]*\[")
+  (forward-sexp))
+;; Skip over any chars until the mandatory argument:
+(skip-chars-forward "^{")
+;; Remember the points for the mandatory argument:
+(setq s2 (point))
+(setq e2 (progn (forward-sexp)
+(point)))
+;; Now pick the content: For one-line title, return it
+;; incl. the closing brace.  For multi-line, return the first
+;; line of the mandatory argument incl. ellipsis and a brace;
+(concat
+ (buffer-substring-no-properties s1 e1)
+ (buffer-substring-no-properties
+  (goto-char s2)
+  (min (line-end-position) e2))
+ (when (> e2 (line-end-position))
+   (concat "..." TeX-grcl)))
+
 (provide 'tex)
 
 ;; Local Variables:

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex d4660dd 18/80: * style/xparse.el ("xparse"): Fix fontification of alternatives.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit d4660ddd110be7e5cd3a8dd9f6557f2c14350b0f
Author: Arash Esbati 
Commit: Arash Esbati 

* style/xparse.el ("xparse"): Fix fontification of alternatives.
---
 style/xparse.el | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/style/xparse.el b/style/xparse.el
index a65f2d1..271ec61 100644
--- a/style/xparse.el
+++ b/style/xparse.el
@@ -100,11 +100,11 @@
;; Fontification
(when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
- (font-latex-add-keywords '(("DeclareDocumentCommand" "|{{{")
-   ("NewDocumentCommand" "|{{{")
-   ("RenewDocumentCommand" "|{{{")
-   ("ProvideDocumentCommand" "|{{{")
-   ("DeclareExpandableDocumentCommand" "|{{{")
+ (font-latex-add-keywords '(("DeclareDocumentCommand" "|{\{{")
+   ("NewDocumentCommand" "|{\{{")
+   ("RenewDocumentCommand" "|{\{{")
+   ("ProvideDocumentCommand" "|{\{{")
+   ("DeclareExpandableDocumentCommand" "|{\{{")
("DeclareDocumentEnvironment" "")
("NewDocumentEnvironment" "")
("RenewDocumentEnvironment" "")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 3b3c224 26/80: Remove compatibility code for xemacs

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 3b3c224493de2c5b5a36d30da6d5f7daa0002146
Author: Ikumi Keita 
Commit: Ikumi Keita 

Remove compatibility code for xemacs

* prv-emacs.el (preview-mark-active): Remove.
(): Update Copyright year.
* preview.el.in (LaTeX-preview-setup): Remove the above macro.
(): Update Copyright year.
---
 preview.el.in | 6 +++---
 prv-emacs.el  | 6 +-
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index 9dd1cef..4c40534 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -1,7 +1,7 @@
 ;;; preview.el --- embed preview LaTeX images in source buffer
 
 ;; Copyright (C) 2001-2006, 2010-2015,
-;;   2017, 2018  Free Software Foundation, Inc.
+;;   2017-2019  Free Software Foundation, Inc.
 
 ;; Author: David Kastrup
 ;; Keywords: tex, wp, convenience
@@ -2497,14 +2497,14 @@ to add the preview functionality."
["(or toggle) at point" preview-at-point]
["for environment" preview-environment]
["for section" preview-section]
-   ["for region" preview-region (preview-mark-active)]
+   ["for region" preview-region mark-active]
["for buffer" preview-buffer]
["for document" preview-document]
"---"
"Remove previews"
["at point" preview-clearout-at-point]
["from section" preview-clearout-section]
-   ["from region" preview-clearout (preview-mark-active)]
+   ["from region" preview-clearout mark-active]
["from buffer" preview-clearout-buffer]
["from document" preview-clearout-document]
"---"
diff --git a/prv-emacs.el b/prv-emacs.el
index fe0f8f9..0afef66 100644
--- a/prv-emacs.el
+++ b/prv-emacs.el
@@ -1,6 +1,6 @@
 ;;; prv-emacs.el --- GNU Emacs specific code for preview.el
 
-;; Copyright (C) 2001-2005, 2018  Free Software Foundation, Inc.
+;; Copyright (C) 2001-2005, 2018, 2019  Free Software Foundation, Inc.
 
 ;; Author: David Kastrup
 ;; Keywords: convenience, tex, wp
@@ -568,10 +568,6 @@ The fourth value is the transparent border thickness."
   (setq mask nil))
 (vector bg fg mask preview-transparent-border)))
 
-(defmacro preview-mark-active ()
-  "Return t if the mark is active."
-  'mark-active)
-
 (defun preview-import-image (image)
   "Convert the printable IMAGE rendition back to an image."
   (cond ((stringp image)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 3543e45 06/80: New styles for beamerarticle & beamerswitch triggering beamer

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 3543e45b30558f112a14f148ba631138da13dcfe
Author: Tassilo Horn 
Commit: Tassilo Horn 

New styles for beamerarticle & beamerswitch triggering beamer

* style/beamerarticle.el: New style.
* style/beamerswitch.el: New style.
* Makefile.in (STYLESRC): Enable them.
---
 Makefile.in|  3 ++-
 style/beamerarticle.el | 33 +
 style/beamerswitch.el  | 33 +
 3 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 3c07c16..822eea9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,7 +165,8 @@ STYLESRC = style/prosper.el \
   style/arabxetex.el style/australian.el style/newzealand.el \
   style/xltabular.el style/marginnote.el style/thmtools.el \
   style/ocg-p.el style/ocgx.el  style/thm-restate.el \
-  style/pythontex.el style/dashundergaps.el
+  style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
+  style/beamerswitch.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/beamerarticle.el b/style/beamerarticle.el
new file mode 100644
index 000..2c5cff0
--- /dev/null
+++ b/style/beamerarticle.el
@@ -0,0 +1,33 @@
+;;; beamerarticle.el --- AUCTeX style for the latex-beamerarticle class
+
+;; Copyright (C) 2019 Free Software Foundation
+
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; Triggers the beamer style when using the beamerarticle style.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "beamerarticle"
+ (lambda ()
+   (TeX-run-style-hooks "beamer")))
diff --git a/style/beamerswitch.el b/style/beamerswitch.el
new file mode 100644
index 000..716d16d
--- /dev/null
+++ b/style/beamerswitch.el
@@ -0,0 +1,33 @@
+;;; beamerswitch.el --- AUCTeX style for the latex-beamerswitch class
+
+;; Copyright (C) 2019 Free Software Foundation
+
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; Triggers the beamer style when using the beamerswitch style.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "beamerswitch"
+ (lambda ()
+   (TeX-run-style-hooks "beamer")))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex a9eb155 37/80: Fix regression

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit a9eb15592ff350e56ea1b172805e1d5449a572b3
Author: Ikumi Keita 
Commit: Ikumi Keita 

Fix regression

* latex.el (LaTeX-arg-usepackage-insert, LaTeX-arg-usepackage): Move
`TeX-run-style-hooks' from `LaTeX-arg-usepackage' to
`LaTeX-arg-usepackage-insert'.  Due to my commit "Defer running style
hook until options are given actually", style hooks associated with
\usepackage were not run when the document is newly created with
`LaTeX-env-document'.
---
 latex.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/latex.el b/latex.el
index 064199d..dd6c398 100644
--- a/latex.el
+++ b/latex.el
@@ -2352,7 +2352,8 @@ of the options, nil otherwise."
packages))
 (insert LaTeX-optop options LaTeX-optcl))
   (insert TeX-grop (mapconcat 'identity packages ",") TeX-grcl)
-  (run-hooks 'LaTeX-after-usepackage-hook))
+  (run-hooks 'LaTeX-after-usepackage-hook)
+  (apply #'TeX-run-style-hooks packages))
 
 (defun LaTeX-arg-usepackage (_optional)
   "Insert arguments to usepackage.
@@ -2360,8 +2361,7 @@ OPTIONAL is ignored."
   (let* ((packages-options (LaTeX-arg-usepackage-read-packages-with-options))
 (packages (car packages-options))
 (options (cdr packages-options)))
-(LaTeX-arg-usepackage-insert packages options)
-(apply #'TeX-run-style-hooks packages)))
+(LaTeX-arg-usepackage-insert packages options)))
 
 (defun LaTeX-insert-usepackages ()
   "Prompt for the insertion of usepackage macros until empty

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex b7083ee 51/80: Change color adjustment method (bug#35571, bug#35696, bug#36039)

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit b7083eeaca861322c3b5daa1400e2067bda033fb
Author: Ikumi Keita 
Commit: Ikumi Keita 

Change color adjustment method (bug#35571, bug#35696, bug#36039)

* preview.el.in (preview-pdf-color-adjust-method): New option.
(preview-pdf-color-string): Use new code using DELAYBIND feature when
the new option is t.
(preview-gs-color-string): Add new optional argument to suppress code
for explicit colors.
(preview-gs-open): Don't adjust color when the latex command produces
PDF and `preview-pdf-color-adjust-method' is nil.
(preview-pdf2dsc-sentinel): Add "-dDELAYBIND" option to gs invocation
when `preview-pdf-color-adjust-method' is t.
* doc/changes.texi: Add a new entiry.
* doc/preview-problems.texi: Add a section to explain how to do with
the case no images are displayed with gs 9.27 and newer.
---
 doc/changes.texi  |  14 +-
 doc/preview-problems.texi |  57 +++
 preview.el.in | 115 --
 3 files changed, 172 insertions(+), 14 deletions(-)

diff --git a/doc/changes.texi b/doc/changes.texi
index 8475ced..f99e62d 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -1,5 +1,5 @@
 @c This is part of the AUCTeX manual.
-@c Copyright (C) 1994-2002, 2004-2010, 2012-2017 Free Software
+@c Copyright (C) 1994-2002, 2004-2010, 2012-2019 Free Software
 @c Foundation, Inc.
 @c See file auctex.texi for copying conditions.
 @include macros.texi
@@ -12,6 +12,18 @@
 
 @itemize @bullet
 @item
+A new method is implemented in @previewlatex{} to adjust the foreground
+colors of generated images to those of Emacs, when the @LaTeX{} command
+produces @acronym{PDF}.  The traditional method became invalid because
+of the change introduced in Ghostscript 9.27.  Unfortunately, the new
+method doesn't work due to a bug in Ghostscript 9.27 and is valid only
+for Ghostscript > 9.27.  There is also a fallback method for gs 9.27
+users which displays plain ``black on white'' images.  For successful
+function of @previewlatex{}, the users are encouraged to set up the new
+user option @code{preview-pdf-color-adjust-method} to choose appropriate
+option among the three: new, traditional and fallback method.
+
+@item
 @AUCTeX{} has support for the Flymake package in Emacs 26 or newer.  To
 enable, call @kbd{M-x flymake-mode RET} or add this to your
 @file{.emacs} file:
diff --git a/doc/preview-problems.texi b/doc/preview-problems.texi
index 824892c..e10fdd7 100644
--- a/doc/preview-problems.texi
+++ b/doc/preview-problems.texi
@@ -19,6 +19,7 @@ newer versions of the problematic software or by simple 
patches.
 * Too small bounding boxes::
 * x-symbol interoperation:: 
 * Middle-clicks paste instead of toggling::  
+* No images are displayed with gs 9.27 and newer::
 @end menu
 
 If you find something not mentioned here, please send a bug report using
@@ -137,3 +138,59 @@ such a complicated mess that no patch is in sight.  Better 
just end the
 search with @kbd{@key{RET}} before toggling and resume with @kbd{C-s
 C-s} or similar afterwards.  Since previews over the current match will
 auto-open, anyway, this should not be much of a problem in practice.
+
+@node No images are displayed with gs 9.27 and newer
+@section No images are displayed with gs 9.27 and newer
+
+@previewlatex{} tries to adjust the foreground and background colors of
+generated images to those of Emacs.  Unfortunately, incompatible changes
+introduced in Ghostscript 9.27 breaks the traditional method partially,
+and @previewlatex{} can display no images under certain circumstances.
+
+A new method implemented alternatively works only with Ghostscript >
+9.27, so is disabled by default.  If you are using those new
+Ghostscript, customize the option
+@code{preview-pdf-adjust-color-method}.
+
+@defopt preview-pdf-adjust-color-method
+Method to adjust colors of images generated from @acronym{PDF}.  It is
+not consulted when the @LaTeX{} command produces @acronym{DVI} files.
+
+When the option is @code{t}, @previewlatex{} adjusts the FG and BG colors
+of the generated images by the new method.  This method requires that
+Ghostscript has working @code{DELAYBIND} feature, thus is invalid with
+gs 9.27 (and possibly < 9.27).
+
+When it is @code{compatible} (default), @previewlatex{} uses traditional
+method.  This option is provided for backward compatibility with older
+gs.  See the below explanation for detail.
+
+When @code{nil}, no adjustment is done and ``black on white'' image is
+generated regardless of Emacs color.  This is provided for fallback for
+gs 9.27 users with customized foreground color.  See the below
+explanation for detail.
+
+When the @LaTeX{} command produces @acronym{PDF} rather than
+@acronym{DVI} and Emacs has non-trivial foreground color, the
+traditional method (@code{compatible}) makes gs >= 9.27 to stop with
+error.  Here, ``non-trivial foreground color'' includes customized
+theme

[AUCTeX-diffs] [elpa] externals/auctex 36d06e2 44/80: ; * tests/latex/preview-latex-test.el: Fix typo.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 36d06e2f6cbe21d6cd2e76b5a2b9f89d97635f60
Author: Ikumi Keita 
Commit: Ikumi Keita 

; * tests/latex/preview-latex-test.el: Fix typo.
---
 tests/latex/preview-latex-test.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/latex/preview-latex-test.el 
b/tests/latex/preview-latex-test.el
index 0249683..ecc05fe 100644
--- a/tests/latex/preview-latex-test.el
+++ b/tests/latex/preview-latex-test.el
@@ -42,7 +42,7 @@ emacs' coding system later."
   (dolist (str '("prim\xC3\xA1rias" "prim^^c3\xA1rias" "prim^^c3^^a1rias"))
 (should (string= (preview--decode-^^ab str 'utf-8) "primárias"
 
-;;; preview-latex.el ends here
+;;; preview-latex-test.el ends here
 
 ;; Local Variables:
 ;; coding: utf-8

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex cdb98c6 34/80: Fix last commit

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit cdb98c69f2ac5787b00cdd6647b4bf54f63da2b4
Author: Ikumi Keita 
Commit: Ikumi Keita 

Fix last commit

* tex-buf.el (TeX-command-expand): Redefine the value of `file' just
once per call of `TeX-command-expand'.  Previous code could give
spurious quote when the given command string contains more than one
"%" expanders tied with the symbol `file'.
---
 tex-buf.el | 29 +++--
 1 file changed, 11 insertions(+), 18 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index 0849198..8b87c4c 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -554,6 +554,17 @@ without further expansion."
 "%"))
(or list (TeX-expand-list)))
  pat (regexp-opt (mapcar #'car list)))
+;; `TeX-command-expand' is called with `file' argument being one
+;; of `TeX-master-file', `TeX-region-file' and
+;; `TeX-active-master'.  The return value of these functions
+;; sometimes needs suitable "decorations" for an argument for
+;; underlying shell or latex executable, or both, when the
+;; relavant file name involves some special characters such as
+;; space and multibyte characters.  Hence embed that function in a
+;; template prepared for that purpose.
+(setq file (apply-partially
+   #'TeX--master-or-region-file-with-extra-quotes
+   file))
 (while (setq pos (string-match pat command pos))
   (setq string (match-string 0 command)
entry (assoc string list)
@@ -570,24 +581,6 @@ without further expansion."
 (functionp expansion))
(apply expansion arguments))
   ((boundp expansion)
-   (if (eq expansion 'file)
-   ;; `TeX-command-expand' is called with
-   ;; `file' argument being one of
-   ;; `TeX-master-file',
-   ;; `TeX-region-file' and
-   ;; `TeX-active-master'.  The return
-   ;; value of these functions sometimes
-   ;; needs suitable "decorations" for an
-   ;; argument for underlying shell or
-   ;; latex executable, or both, when the
-   ;; relavant file name involves some
-   ;; special characters such as space
-   ;; and multibyte characters.  Hence
-   ;; embed that function in a template
-   ;; prepared for that purpose.
-   (setq file (apply-partially
-   
#'TeX--master-or-region-file-with-extra-quotes
-   file)))
 (setq expansion-res
   (apply (symbol-value expansion) arguments))
 (when (eq expansion 'file)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 0cc2578 39/80: ; Use the correct variable `LaTeX-fontspec-font-features'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 0cc2578b4ad066dfab4b1dc2df0f94a8004ed45b
Author: Arash Esbati 
Commit: Arash Esbati 

; Use the correct variable `LaTeX-fontspec-font-features'

* style/fontspec.el (LaTeX-fontspec-update-font-features): Copy
the correct variable `LaTeX-fontspec-font-features' and not the
local one.
---
 style/fontspec.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/style/fontspec.el b/style/fontspec.el
index 03e5178..0688e98 100644
--- a/style/fontspec.el
+++ b/style/fontspec.el
@@ -215,7 +215,7 @@ to retrieve the list of fonts."
 (let* ((colorcmd (if (member "xcolor" (TeX-style-list))
 #'LaTeX-xcolor-definecolor-list
   #'LaTeX-color-definecolor-list))
-  (tmp (copy-alist LaTeX-fontspec-font-features-local)))
+  (tmp (copy-alist LaTeX-fontspec-font-features)))
   (setq tmp (assq-delete-all (car (assoc "Color" tmp)) tmp))
   (push (list "Color" (mapcar #'car (funcall colorcmd))) tmp)
   (setq LaTeX-fontspec-font-features-local

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex ddd7894 20/80: ; Fix last commit

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit ddd78945c0c82b4601e55b0bea100d095106403b
Author: Arash Esbati 
Commit: Arash Esbati 

; Fix last commit

* tex.el (TeX-current-defun-name): Include missing backslash in
search regexp.
---
 tex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 6c2cbb6..d79e604 100644
--- a/tex.el
+++ b/tex.el
@@ -6597,7 +6597,8 @@ Used as function for validating a variable's 
`safe-local-variable' property."
   ;; take the standard one:
   (when (re-search-backward
  (if (local-variable-p 'LaTeX-section-label)
- (concat (regexp-opt
+ (concat "\\"
+(regexp-opt
   (remove "part" (mapcar #'car LaTeX-section-label)))
  "\*?")
"\\\(sub\)*\(section\|paragraph\|chapter\)\*?")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 0fd9848 35/80: Improve style/mflogo.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 0fd9848c5339dcd84152956e9856aa720e99e7c3
Author: Arash Esbati 
Commit: Arash Esbati 

Improve style/mflogo.el

* style/mflogo.el ("mflogo"): Ask for Text when extlogo is
invoked.  Change \logofamily into a declaration.  Add missing
macros \MF and \MP.  Adjust fontification for   extlogo and
\logofamily.
---
 style/mflogo.el | 15 ++-
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/style/mflogo.el b/style/mflogo.el
index 1d4b96d..52fa44b 100644
--- a/style/mflogo.el
+++ b/style/mflogo.el
@@ -1,5 +1,7 @@
 ;;; mflogo.el --- AUCTeX style for `mflogo.sty'
 
+;; Copyright (C) 2012, 2019 Free Software Foundation, Inc.
+
 ;; Author: Mads Jensen 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Created: 2011-02-02
@@ -37,15 +39,18 @@
  "mflogo"
  (lambda ()
(TeX-add-symbols
-'("textlogo" 1)
-'("logofamily" 1))
+'("textlogo"   "Text")
+'("logofamily" -1)
+'("MF"  0)
+'("MP"  0))
 
;; Fontification
(when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
- (font-latex-add-keywords '(("logofamily" "{")
-   ("textlogo" "{"))
- 'function)))
+ (font-latex-add-keywords '(("textlogo" "{"))
+ 'type-command)
+ (font-latex-add-keywords '(("logofamily" ""))
+ 'type-declaration)))
  LaTeX-dialect)
 
 (defvar LaTeX-mflogo-package-options nil

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex a30db7c 24/80: Allow the user to customize which TeX commands are available in each mode.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit a30db7c0409aa7d15e87633ff9d2b73430c4d40c
Author: Mohammad Hossein Bateni 
Commit: Mosè Giordano 

Allow the user to customize which TeX commands are available in each mode.

Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful in
ConTeXt.  ConTeXt generates a PDF directly and has its own indexing
mechanism.

In Mark IV (which has been the preferred version for over a decade and
is actively developed), a new bibliography package is also available,
which can process old bibtex files as well.  So there is no need for
BibTeX.

Having so many commands in context-mode clutters the menus.  In the
definition of TeX-command-list, we either provide a list of relevant
modes, or set the value to `t' indicating that this command should
always be available.  In the latter case, the user cannot customize
it.  Here we provide sensible defaults as well as the ability for the
user to customize.

* tex.el (TeX-command-list): Hide by default some commands from 
context-mode.

Signed-off-by: Mosè Giordano 
---
 tex.el | 34 --
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/tex.el b/tex.el
index d79e604..f5e8801 100644
--- a/tex.el
+++ b/tex.el
@@ -136,27 +136,41 @@ If nil, none is specified."
 ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
  TeX-run-TeX nil
  (context-mode) :help "Run ConTeXt until completion")
-("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
-("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
+("BibTeX" "bibtex %s" TeX-run-BibTeX nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode
+context-mode)
+ :help "Run BibTeX")
+("Biber" "biber %s" TeX-run-Biber nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run Biber")
 ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
 ("Print" "%p" TeX-run-command t t :help "Print the file")
 ("Queue" "%q" TeX-run-background nil t :help "View the printer queue"
  :visible TeX-queue-command)
-("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t
+("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Generate PostScript file")
-("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t
+("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert DVI file to PostScript")
-("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t
+("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert DVI file to PDF with dvipdfmx")
-("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t
+("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert PostScript file to PDF")
 ("Glossaries" "makeglossaries %s" TeX-run-command nil
- t :help "Run makeglossaries to create glossary file")
-("Index" "makeindex %s" TeX-run-index nil t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run makeglossaries to create glossary
+ file")
+("Index" "makeindex %s" TeX-run-index nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Run makeindex to create index file")
-("upMendex" "upmendex %s" TeX-run-index t t
+("upMendex" "upmendex %s" TeX-run-index t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Run upmendex to create index file")
-("Xindy" "texindy %s" TeX-run-command nil t
+("Xindy" "texindy %s" TeX-run-command nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Run xindy to create index file")
 ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
  :help "Check LaTeX file for correctness")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex fcaef6b 11/80: Improve fontification of \href macro

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit fcaef6bab89e6a629d60f1b43038a2433e34fbd5
Author: Arash Esbati 
Commit: Arash Esbati 

Improve fontification of \href macro

* style/hyperref.el ("hyperref"): Add "href" to
`LaTeX-verbatim-macros-with-braces-local'.
Check for feature font-latex and not for functions.
Declare and use `font-latex-update-font-lock' instead of
`font-latex-set-syntactic-keywords'.
---
 style/hyperref.el | 12 
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/style/hyperref.el b/style/hyperref.el
index 02d886e..3b25491 100644
--- a/style/hyperref.el
+++ b/style/hyperref.el
@@ -1,6 +1,6 @@
 ;;; hyperref.el --- AUCTeX style for `hyperref.sty' v6.83m
 
-;; Copyright (C) 2008, 2013--2016, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2008, 2013--2019 Free Software Foundation, Inc.
 
 ;; Author: Ralf Angeli 
 ;; Maintainer: auctex-devel@gnu.org
@@ -35,6 +35,10 @@
  "font-latex"
  (keywords class))
 
+(declare-function font-latex-update-font-lock
+ "font-latex"
+ (&optional syntactic-kws))
+
 (defvar LaTeX-hyperref-package-options-list
   '(;; See https://www.tug.org/applications/hyperref/manual.html#x1-40003
 ;; General options
@@ -286,6 +290,7 @@
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
+   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
 
;; In hyperref package, \url macro is redefined and \url|...| can't be used,
;; while it's possible when only url package (required by hyperref) is 
loaded
@@ -293,8 +298,7 @@
 (remove "url"  LaTeX-verbatim-macros-with-delims-local))
 
;; Fontification
-   (when (and (fboundp 'font-latex-add-keywords)
- (fboundp 'font-latex-set-syntactic-keywords)
+   (when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
  (font-latex-add-keywords '(("href" "[{{")
("nolinkurl" "{")
@@ -312,7 +316,7 @@
  (font-latex-add-keywords '(("hypersetup" "{"))
  'function)
  ;; For syntactic fontification, e.g. verbatim constructs.
- (font-latex-set-syntactic-keywords))
+ (font-latex-update-font-lock t))
 
;; Option management
(if (and (LaTeX-provided-package-options-member "hyperref" "dvipdfmx")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 945ffaf 40/80: Update style/babel.el to package version 3.31

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 945ffaf985884b768acaeb1c05086a4f69d3a63a
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/babel.el to package version 3.31

* style/babel.el (LaTeX-babel-language-list): Add azerbaijani and
remove frenchb.
(LaTeX-babel-babelprovide-key-val-options): New variable.
(LaTeX-babel-babeltags-regexp, LaTeX-babel-cleanup-babeltags): Add
parsing support for abeltags macro.
(LaTeX-babel-babelfont-regexp, LaTeX-babel-cleanup-babelfont): Add
parsing support for abelfont macro.
(TeX-arg-babel-lang): Use the arguments optional and prompt
properly.
("babel"): Add missing macros incl. fontification.
(LaTeX-babel-package-options): Add missing package options.
---
 style/babel.el | 287 +++--
 1 file changed, 258 insertions(+), 29 deletions(-)

diff --git a/style/babel.el b/style/babel.el
index 52ee8ee..38a51ab 100644
--- a/style/babel.el
+++ b/style/babel.el
@@ -1,6 +1,6 @@
-;;; babel.el --- AUCTeX style for `babel.sty' version 3.9h.
+;;; babel.el --- AUCTeX style for `babel.sty' version 3.31.
 
-;; Copyright (C) 2005, 2007, 2013-2014, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2005, 2007, 2013-2019 Free Software Foundation, Inc.
 
 ;; Author: Ralf Angeli 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,13 +26,16 @@
 
 ;;; Commentary:
 
-;; This file adds support for `babel.sty' version 3.9h.
+;; This file adds support for `babel.sty' version 3.31 from 2019/05/04.
 
 ;;; Code:
 
 (eval-when-compile
   (require 'cl-lib))
 
+;; Needed for auto-parsing.
+(require 'tex)
+
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
  "font-latex"
@@ -40,6 +43,7 @@
 
 (defvar LaTeX-babel-language-list
   '("afrikaans"
+"azerbaijani"
 "bahasa" "indonesian" "indon" "bahasai" "bahasam" "malay" "meyalu"
 "basque"
 "breton"
@@ -85,9 +89,21 @@
 "albanian" "hindi" "thai" "thaicjk" "latvian" "turkmen" "hungarian" 
"magyar"
 "mongolian" "romansh" "lithuanian" "spanglish" "vietnamese" "japanese"
 "pinyin" "arabinc" "farsi" "ibygreek" "bgreek" "serbianic" "frenchle"
-"ethiop" "friulan" "frenchb")
+"ethiop" "friulan")
   "List of languages supported by the babel LaTeX package.")
 
+(defvar LaTeX-babel-babelprovide-key-val-options
+  `(("import")
+("captions")
+("hyphenrules" ,(append '("+") LaTeX-babel-language-list))
+("main")
+("script")
+("language")
+("mapfont")
+("intraspace")
+("intrapenalty"))
+  "Key=value options for `\babelprovide' macro from `babel' package.")
+
 (defun LaTeX-babel-active-languages ()
   "Return a list of languages used in the document."
   (let (main-language active-languages)
@@ -117,13 +133,109 @@
;; except if it is set with the `main' option.
(cl-pushnew elt active-languages :test #'equal
 (if main-language
-(cl-pushnew main-language active-languages :test #'equal))
+   (cl-pushnew main-language active-languages :test #'equal))
 (nreverse active-languages)))
 
-(defun TeX-arg-babel-lang (_optional &optional _prompt)
+;; Setup for abeltags: Note that the macros is abeltags, we use
+;; the version without `s' in order to reduce the hassle with AUCTeX
+;; auto-generating the plural form:
+(TeX-auto-add-type "babel-babeltag" "LaTeX")
+
+(defvar LaTeX-babel-babeltags-regexp
+  '("\\babeltags{\([^}]+\)}" 1 LaTeX-auto-babel-babeltag)
+  "Matches the argument of `\babeltags' from `babel' package.")
+
+(defun LaTeX-babel-cleanup-babeltags ()
+  "Parse defined babel tags and add them to AUCTeX."
+  ;; Check if we parsed something at all
+  (when (LaTeX-babel-babeltag-list)
+(let (results tag tags cmds)
+  ;; Clean up the parsed results from characters we don't want;
+  ;; also remove possible comment lines
+  (setq results
+   (replace-regexp-in-string
+"\(%.*$\|[ 
]\)" ""
+(mapconcat #'car (LaTeX-babel-babeltag-list) ",")))
+  ;; Look if abeltags was issued once with multiple entries or
+  ;; more than once in the document:
+  (if (string-match-p "," results)
+ (progn
+   (dolist (elt (split-string results "," t))
+ (setq tag (car (split-string elt "=" t)))
+ (push tag tags)
+ (push (list (concat "text" tag) t) cmds)
+ (push (list tag -1) cmds)))
+   ;; One abeltags with one entry only
+   (setq tag (car (split-string results "=" t)))
+   (push tag tags)
+   (push (list (concat "text" tag) t) cmds)
+   (push (list tag -1) cmds))
+  (mapc #'TeX-add-symbols cmds)
+  (mapc #'LaTeX-add-environments tags)
+  ;; Fontification
+  (when (and (featurep 'font-latex)
+(eq TeX-install-font-lock 'font-latex-setup))
+   (font-latex-add-keywords (mapcar (lambda (x)
+  (list (concat "text" x)  "{"))
+ 

[AUCTeX-diffs] [elpa] externals/auctex ab57cb0 21/80: Add new function `LaTeX-extract-key-value-label'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit ab57cb076d148321ef859422dd1b158fc7652c74
Author: Arash Esbati 
Commit: Arash Esbati 

Add new function `LaTeX-extract-key-value-label'

* latex.el (LaTeX-extract-key-value-label): Add new utility
function to return a regexp string to extract label value in an
optional key=val argument.

* style/breqn.el (LaTeX-breqn-key-val-label-regexp):
* style/listings.el (LaTeX-listings-key-val-label-regexp)
(LaTeX-listings-auto-cleanup): Use
`LaTeX-extract-key-value-label'.
Delete now unused variable `LaTeX-listings-key-val-label-extract'.
---
 latex.el  | 36 
 style/breqn.el| 14 --
 style/listings.el | 20 
 3 files changed, 44 insertions(+), 26 deletions(-)

diff --git a/latex.el b/latex.el
index 6a96cb4..f5f186d 100644
--- a/latex.el
+++ b/latex.el
@@ -6664,6 +6664,42 @@ functions `TeX-arg-color' (style/color.el) or
  last-optional-rejected))
  ,@body))
 
+(defun LaTeX-extract-key-value-label (&optional key)
+  "Return a regexp string to match a label in an optional argument.
+The optional KEY is a string which is the name of the key in the
+key=value, default is \"label\".
+
+As an extra feature, the key can be the symbol none where the
+entire matching for the key=value is skipped.  The regexp then is
+useful for skipping complex optional arguments.  It should be
+wrapped in \(?:...\)? then."
+  ;; The regexp produced here is ideally in sync with the complex one
+  ;; in `reftex-label-regexps'.
+  (concat
+   ;; Match the opening [ and the following chars
+   "\[[^][]*"
+   ;; Allow nested levels of chars enclosed in braces
+   "\(?:{[^}{]*"
+ "\(?:{[^}{]*"
+   "\(?:{[^}{]*}[^}{]*\)*"
+ "}[^}{]*\)*"
+   "}[^][]*\)*"
+   ;; If KEY is the symbol none, don't look for any key=val:
+   (unless (eq key 'none)
+ (concat "\<"
+;; Match the key, default is label
+(or key "label")
+;; Optional spaces
+"[[:space:]]*=[[:space:]]*"
+;; Match the value; braces around the value are optional
+"{?\("
+;; One of these chars terminates the value
+"[^] ,}
%]+"
+;; Close the group
+"\)}?"))
+   ;; We are done.  Just search until the next closing bracket
+   "[^]]*\]"))
+
 (provide 'latex)
 
 ;;; latex.el ends here
diff --git a/style/breqn.el b/style/breqn.el
index 63821f2..f22696c 100644
--- a/style/breqn.el
+++ b/style/breqn.el
@@ -1,6 +1,6 @@
 ;;; breqn.el --- AUCTeX style for `breqn.sty' (v0.98e)
 
-;; Copyright (C) 2017 Free Software Foundation, Inc.
+;; Copyright (C) 2017--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -48,6 +48,8 @@
 
 ;;; Code:
 
+(require 'latex)
+
 ;; Silence the compiler:
 (declare-function LaTeX-color-definecolor-list "color" ())
 (declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
@@ -77,15 +79,7 @@ The keys \"label\" and \"labelprefix\" are omitted.")
   "\\begin{"
   (regexp-opt '("dmath" "dseries" "dgroup" "darray"))
   "}"
-  "\(?:\[[^][]*"
-   "\(?:{[^}{]*"
- "\(?:{[^}{]*"
-   "\(?:{[^}{]*}[^}{]*\)*"
- "}[^}{]*\)*"
-   "}[^][]*\)*"
-  "label[  ]*=[]*{\([^}]+\)}"
-  "\(?:[^]]*\)*"
-  "\]\)")
+  (LaTeX-extract-key-value-label))
 1 LaTeX-auto-label)
   "Matches the label inside an optional argument after \begin{}.")
 
diff --git a/style/listings.el b/style/listings.el
index 598574c..5c20308 100644
--- a/style/listings.el
+++ b/style/listings.el
@@ -1,6 +1,6 @@
 ;;; listings.el --- AUCTeX style for `listings.sty'
 
-;; Copyright (C) 2004, 2005, 2009, 2013-2018 Free Software Foundation, Inc.
+;; Copyright (C) 2004, 2005, 2009, 2013--2019 Free Software Foundation, Inc.
 
 ;; Author: Ralf Angeli 
 ;; Maintainer: auctex-devel@gnu.org
@@ -48,6 +48,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
@@ -273,22 +274,9 @@ from `listings' package.")
 
 ;; Setup for parsing the labels inside optional arguments:
 
-(defvar LaTeX-listings-key-val-label-extract
-  (concat
-   "\(?:\[[^][]*"
- "\(?:{[^}{]*"
-   "\(?:{[^}{]*"
-"\(?:{[^}{]*}[^}{]*\)*"
-   "}[^}{]*\)*"
- "}[^][]*\)*"
-   "label[ ]*=[]*{\([^}]+\)}"
-   "\(?:[^]]*\)*"
-   "\]\)")
-  "Helper regexp to extract the label out of optional argument.")
-
 (defvar LaTeX-listings-key-val-label-regexp
   `(,(concat
-  "\\begin{lstlisting}" LaTeX-listings-key-val-label-extract)
+  "\\begin{lstlisting}" (LaTeX-extract-key-value-label))
 1 LaTeX-auto-label)
   "Matches the label inside an optional argument after \begin{lstlisting}.")
 
@@ -338,7 +326,7 @@ with user-defined values via the \"lstdefinestyle\" macro."
   (add-to-list 'LaTeX-label-alist `(,env . LaTeX-listing-label) t)
   ;;

[AUCTeX-diffs] [elpa] externals/auctex 92c090d 30/80: Fix treatment of class and package options

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 92c090dae23076cc4f017ad6fedde79a21fa
Author: Ikumi Keita 
Commit: Ikumi Keita 

Fix treatment of class and package options

* preview.el.in (preview-auctex-font-size): Consult
`LaTeX-provided-{class,package}-options' instead of
`(TeX-style-list)'.  This function has been accidentally disabled
since AUCTeX began not to include the class and package options into
the styles.  Similar problem with bug#25563.
* latex.el (LaTeX-match-class-option): Update doc string because the
above change depends on its implicit behavior.
---
 latex.el  |  3 ++-
 preview.el.in | 15 ++-
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/latex.el b/latex.el
index f5f186d..064199d 100644
--- a/latex.el
+++ b/latex.el
@@ -1701,7 +1701,8 @@ The value is actually the tail of the list of options 
given to CLASS."
   (member option (cdr (assoc class LaTeX-provided-class-options
 
 (defun LaTeX-match-class-option (regexp)
-  "Check if a documentclass option matching REGEXP is active."
+  "Check if a documentclass option matching REGEXP is active.
+Return first found class option matching REGEXP, or nil if not found."
   (TeX-member regexp (apply #'append
(mapcar #'cdr LaTeX-provided-class-options))
  'string-match))
diff --git a/preview.el.in b/preview.el.in
index 3134232..30bf45b 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -1363,11 +1363,16 @@ This is for matching screen font size and previews."
 If packages, classes or styles were called with an option
 like 10pt, size is taken from the first such option if you
 had let your document be parsed by AucTeX."
-  (catch 'return (dolist (option (TeX-style-list))
-  (if (string-match "\`\([0-9]+\)pt\'" option)
-  (throw 'return
- (string-to-number
-  (match-string 1 option)))
+  (let* ((regexp "\`\([0-9]+\)pt\'")
+(option
+ (or
+  (LaTeX-match-class-option regexp)
+  ;; We don't have `LaTeX-match-package-option'.
+  (TeX-member regexp
+  (apply #'append
+ (mapcar #'cdr LaTeX-provided-package-options))
+  #'string-match
+(if option (string-to-number (match-string 1 option)
 
 (defsubst preview-document-pt ()
   "Calculate the default font size of document."

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 400b002 28/80: Remove obsolete codes

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 400b0027a5cd3bd6c01f28ff97d55d9de9225863
Author: Ikumi Keita 
Commit: Ikumi Keita 

Remove obsolete codes

* preview.el.in (preview-mouse-open-eps): Remove xemacs compatibility
code.
Don't use obsolete variable `default-major-mode'.
---
 preview.el.in | 17 +++--
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index 8748c8f..3134232 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -1149,25 +1149,22 @@ for the file extension."
 (defun preview-mouse-open-eps (file &optional position)
   "Display eps FILE in a view buffer on click.
 Place point at POSITION, else beginning of file."
-  (let ((default-major-mode
+  (let ((default-mode
   ;; FIXME: Yuck!  Just arrange for the file name to have the right
   ;; extension instead!
- (or
-  (assoc-default "x.ps" auto-mode-alist #'string-match)
-  (default-value 'major-mode)))
+ (assoc-default "x.ps" auto-mode-alist #'string-match))
(buff (get-file-buffer file)))
 (save-excursion
   (if buff
  (pop-to-buffer buff)
(view-file-other-window file))
+  (if (and (eq major-mode (default-value 'major-mode))
+  default-mode)
+ (funcall default-mode))
   (goto-char (or position (point-min)))
-  (if (eq major-mode 'ps-mode)  ; Bundled with GNU Emacs
- (message "%s" (substitute-command-keys "\
+  (message "%s" (substitute-command-keys "\
 Try \[ps-run-start] \[ps-run-buffer] and \
-\\[ps-run-mouse-goto-error] on error offset." )))
-  (if (eq major-mode 'postscript-mode) ; Bundled with XEmacs, limited
- (message "%s" (substitute-command-keys "\
-Try \[ps-shell] and \[ps-execute-buffer]."))
+\\[ps-run-mouse-goto-error] on error offset.")
 
 (defun preview-gs-flag-error (ov err)
   "Make an eps error flag in overlay OV for ERR string."

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 43e98f1 55/80: Update style/titlesec.el to package version 2.11

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 43e98f1e3c6497d884de66f26d4ec7982d245ab2
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/titlesec.el to package version 2.11

* style/titlesec.el ("titlesec"): Add 
ostruts macro.
(LaTeX-titlesec-package-options): Add `nostruts' option.
---
 style/titlesec.el | 18 ++
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/style/titlesec.el b/style/titlesec.el
index 519ce4e..e8922af 100644
--- a/style/titlesec.el
+++ b/style/titlesec.el
@@ -1,6 +1,6 @@
-;;; titlesec.el --- AUCTeX style for `titlesec.sty' (v2.10.0)
+;;; titlesec.el --- AUCTeX style for `titlesec.sty' (v2.11)
 
-;; Copyright (C) 2016, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2016--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,8 +26,8 @@
 
 ;;; Commentary:
 
-;; This file adds support for `titlesec.sty' (v2.10.0) from
-;; 2011/12/15.  `titlesec.sty' is part of TeXLive.
+;; This file adds support for `titlesec.sty' (v2.11) from
+;; 2019/07/16.  `titlesec.sty' is part of TeXLive.
 
 ;;; Code:
 
@@ -121,11 +121,11 @@ insert the argument in brackets."
 '("titleformat"
   (LaTeX-arg-titlesec-titlespec)
   [TeX-arg-eval completing-read
-(TeX-argument-prompt optional nil "Shape")
-LaTeX-titlesec-section-shape-list]
+   (TeX-argument-prompt optional nil "Shape")
+   LaTeX-titlesec-section-shape-list]
   (TeX-arg-conditional (y-or-n-p "With optional after-code? ")
   (4 [nil])
-(4)))
+  (4)))
 
 '("chaptertitlename" 0)
 
@@ -152,7 +152,8 @@ insert the argument in brackets."
 '("fillast"   0)
 '("filinner"  0)
 '("filouter"  0)
-'("wordsep"  0)
+'("wordsep"   0)
+'("nostruts"  0)
 
 ;; 3.4. Rules
 '("titleline"
@@ -240,6 +241,7 @@ insert the argument in brackets."
 "rigidchapters" "rubberchapters"
 "bottomtitles"  "nobottomtitles" "nobottomtitles*"
 "aftersep"  "largestsep" "pageatnewline"
+"nostruts"
 
 ;; 3.4. Rules
 "calcwidth"

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 78c0f09 07/80: Fix fontification of simple macros

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 78c0f0961941178aad974e721e7964482ab9bbad
Author: Arash Esbati 
Commit: Arash Esbati 

Fix fontification of simple macros

* font-latex.el (font-latex-match-simple-command): Change second
part of regexp in order to be less greedy.  This function now
fontifies only letters and characters defined in
`font-latex-match-simple-include-list' (bug#34712).
(font-latex-match-simple-include-list): New variable.

* style/expl3.el ("expl3"): Add "_" and ":" to
`font-latex-match-simple-include-list'.
---
 font-latex.el  | 25 +++--
 style/expl3.el |  5 -
 2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index bd504a8..8e8b4fc 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1,6 +1,6 @@
 ;;; font-latex.el --- LaTeX fontification for Font Lock mode.
 
-;; Copyright (C) 1996-2017  Free Software Foundation, Inc.
+;; Copyright (C) 1996-2019  Free Software Foundation, Inc.
 
 ;; Authors:Peter S. Galbraith 
 ;; Simon Marshall 
@@ -1714,6 +1714,14 @@ marks boundaries for searching for group ends."
   "List of characters directly after \"\\" excluded from fontification.
 Each character is a string.")
 
+(defvar font-latex-match-simple-include-list '("@")
+  "List of characters allowed in a macro for fontification.
+Each character is a string.  This variable is initialized to
+\"@\" since internal LaTeX commands are very often redefined in a
+.tex file and the fontification should work correctly in those
+cases.")
+(make-variable-buffer-local 'font-latex-match-simple-include-list)
+
 (defun font-latex-match-simple-command (limit)
   "Search for command like \foo before LIMIT."
   ;; \s_ matches chars with symbol syntax, \sw chars with word syntax,
@@ -1726,7 +1734,20 @@ Each character is a string.")
   ;; like `\__module_foo:nnn'
   (let* ((search (lambda ()
   (TeX-re-search-forward-unescaped
-   "\\\(\s_\|\sw\|\s.\)\(?:\s_\|\sw\)*" limit t)))
+   (concat
+ ;; Chars directly after backslash
+ "\\\(\s_\|\sw\|\s.\)"
+ ;; Start group of the following chars
+ "\(?:["
+ ;; a-zA-Z are always allowed:
+ "a-zA-Z"
+ ;; Additional characters added by AUCTeX styles
+ (mapconcat #'identity
+  font-latex-match-simple-include-list
+  "")
+ ;; End group
+ "]\)*")
+   limit t)))
 (pos (funcall search)))
 (while (and pos
(member (match-string 1)
diff --git a/style/expl3.el b/style/expl3.el
index c1bb029..4fdea24 100644
--- a/style/expl3.el
+++ b/style/expl3.el
@@ -1,6 +1,6 @@
 ;;; expl3.el --- AUCTeX style for `expl3.sty'
 
-;; Copyright (C) 2015, 2017, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2015, 2017-2019 Free Software Foundation, Inc.
 
 ;; Author: Tassilo Horn 
 ;; Maintainer: auctex-devel@gnu.org
@@ -48,6 +48,9 @@
(set-syntax-table LaTeX-expl3-syntax-table)
(when (and (fboundp 'font-latex-update-font-lock)
  (eq TeX-install-font-lock 'font-latex-setup))
+ ;; Fontify _ and : as part of macros.
+ (add-to-list 'font-latex-match-simple-include-list "_" t)
+ (add-to-list 'font-latex-match-simple-include-list ":" t)
  ;; Tell font-lock about the update.
  (font-latex-update-font-lock t)))
  LaTeX-dialect)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex a8bbd1f 31/80: ; Fix document

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit a8bbd1fb14eeb3d75856d8140364b59a1bf35a87
Author: Ikumi Keita 
Commit: Ikumi Keita 

; Fix document

* doc/auctex.texi (Deactivating defaults of built-in keyword classes):
In lisp code example, use `assoc-string' instead of `TeX-assoc-string',
which no longer exists.
---
 doc/auctex.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/auctex.texi b/doc/auctex.texi
index 8843fa9..693fdf6 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -2163,7 +2163,7 @@ following stanza into your init file:
 (eval-after-load "font-latex"
   '(setq-default
 font-latex-match-reference-keywords-local
-(remove (TeX-assoc-string "footnote"
+(remove (assoc-string "footnote"
 font-latex-match-reference-keywords-local)
 font-latex-match-reference-keywords-local)))
 @end lisp

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 4d0cf0f 10/80: ; Silence the compiler

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 4d0cf0f74aa8308ef04d60fdc057d00078152686
Author: Arash Esbati 
Commit: Arash Esbati 

; Silence the compiler

* style/expl3.el (font-latex-match-simple-include-list): Silence
the compiler.
---
 style/expl3.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/style/expl3.el b/style/expl3.el
index 4fdea24..1ee605e 100644
--- a/style/expl3.el
+++ b/style/expl3.el
@@ -35,6 +35,8 @@
  "font-latex"
  (&optional syntactic-kws))
 
+(defvar font-latex-match-simple-include-list)
+
 (defvar LaTeX-expl3-syntax-table
   (let ((st (copy-syntax-table LaTeX-mode-syntax-table)))
 ;; Make _ and : symbol chars

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 23b3405 23/80: ; Fix typos

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 23b34057e44b4c42a393d1fa4e0e8c11171b7ea2
Author: Ikumi Keita 
Commit: Ikumi Keita 

; Fix typos

* texmathp.el (texmathp-allow-detached-args,texmathp-why): Fix typos
in doc strings.
---
 texmathp.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/texmathp.el b/texmathp.el
index 9f32179..ba5aba3 100644
--- a/texmathp.el
+++ b/texmathp.el
@@ -237,8 +237,8 @@ empty lines we go back to fix the search limit."
 
 (defcustom texmathp-allow-detached-args nil
   "*Non-nil means, allow arguments of macros to be detached by whitespace.
-When this is t, `aaa' will be interpreted as an argument of b in the
-following construct:  bb [xxx] {aaa}
+When this is t, `aaa' will be interpreted as an argument of \bbb in the
+following construct:  \bbb [xxx] {aaa}
 This is legal in TeX.  The disadvantage is that any number of braces 
expressions
 will be considered arguments of the macro independent of its definition."
   :group 'texmathp
@@ -247,7 +247,7 @@ will be considered arguments of the macro independent of 
its definition."
 (defvar texmathp-why nil
   "After a call to `texmathp' this variable shows why math-mode is on or off.
 The value is a cons cell (MATCH . POSITION).
-MATCH is a string like a car of an entry in `texmathp-tex-commands', e.q
___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 1b6e513 22/80: ; Use `LaTeX-extract-key-value-label'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 1b6e5136b2a634ea9747d3515bbc6e98faa1f45c
Author: Arash Esbati 
Commit: Arash Esbati 

; Use `LaTeX-extract-key-value-label'

* style/tcolorbox.el (LaTeX-tcolorbox-newtcolorbox-regexp)
(LaTeX-tcolorbox-newtcbox-regexp): Use
`LaTeX-extract-key-value-label' to build the regexp.
---
 style/tcolorbox.el | 21 +++--
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/style/tcolorbox.el b/style/tcolorbox.el
index d8e9ffb..cae2662 100644
--- a/style/tcolorbox.el
+++ b/style/tcolorbox.el
@@ -46,6 +46,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
@@ -405,13 +406,9 @@
 (defvar LaTeX-tcolorbox-newtcolorbox-regexp
   `(,(concat "\\\(re\)?newtcolorbox"
 "[ 
%]*"
-"\(?:\[[^][]*"
-  "\(?:{[^}{]*"
-"\(?:{[^}{]*"
-  "\(?:{[^}{]*}[^}{]*\)*"
-"}[^}{]*\)*"
-  "}[^][]*\)*"
-"\]\)?"
+"\(?:"
+(LaTeX-extract-key-value-label 'none)
+"\)?"
 "[ 
%]*"
 "{\([a-zA-Z0-9]+\)}"
 "[ 
%]*"
@@ -427,13 +424,9 @@
 (defvar LaTeX-tcolorbox-newtcbox-regexp
   `(,(concat "\\\(re\)?newtcbox"
 "[ 
%]*"
-"\(?:\[[^][]*"
-  "\(?:{[^}{]*"
-"\(?:{[^}{]*"
-  "\(?:{[^}{]*}[^}{]*\)*"
-"}[^}{]*\)*"
-  "}[^][]*\)*"
-"\]\)?"
+"\(?:"
+(LaTeX-extract-key-value-label 'none)
+"\)?"
 "[ 
%]*"
 "{\\\([a-zA-Z]+\)}"
 "[ 
%]*"

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 686366e 48/80: ; Add Emacs 24 compatibility to the previous commit

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 686366eebe9668b702b9f1db9859b45e0f2b4ba7
Author: Ikumi Keita 
Commit: Ikumi Keita 

; Add Emacs 24 compatibility to the previous commit

* latex.el (LaTeX-insert-left-brace): Don't add lambda function as
`delete-selection' property for Emacs < 24.3.
---
 latex.el | 42 --
 1 file changed, 24 insertions(+), 18 deletions(-)

diff --git a/latex.el b/latex.el
index 760c42a..17a4462 100644
--- a/latex.el
+++ b/latex.el
@@ -2834,24 +2834,30 @@ Normally bound to keys \(, { and [."
 ;; Cater for `delete-selection-mode' (bug#36385)
 ;; See the header comment of delsel.el for detail.
 (put #'LaTeX-insert-left-brace 'delete-selection
- (lambda ()
-   ;; Consult `delete-selection' property when
-   ;; `LaTeX-insert-left-brace' works just the same as
-   ;; `self-insert-command'.
-   (and (or (not LaTeX-electric-left-right-brace)
-   current-prefix-arg)
-   (let ((f (get #'self-insert-command 'delete-selection)))
- ;; If `delete-selection' property of
- ;; `self-insert-command' is one of the predefined
- ;; special symbols, just return itself.
- (if (memq f '(yank supersede kill t nil))
- ;; FIXME: if this list of special symbols is
- ;; extended in future delsel.el, this discrimination
- ;; will become wrong.
- f
-   ;; Otherwise, call it as a function and return
-   ;; its value.
-   (funcall f))
+ ;; COMPATIBILITY for Emacs < 24.3
+ (if (and (= emacs-major-version 24)
+ (< emacs-minor-version 3))
+;; Emacs < 24.3 doesn't support a function as value of
+;; `delete-selection' property.
+nil
+   (lambda ()
+;; Consult `delete-selection' property when
+;; `LaTeX-insert-left-brace' works just the same as
+;; `self-insert-command'.
+(and (or (not LaTeX-electric-left-right-brace)
+ current-prefix-arg)
+ (let ((f (get #'self-insert-command 'delete-selection)))
+   ;; If `delete-selection' property of
+   ;; `self-insert-command' is one of the predefined
+   ;; special symbols, just return itself.
+   (if (memq f '(yank supersede kill t nil))
+   ;; FIXME: if this list of special symbols is
+   ;; extended in future delsel.el, this discrimination
+   ;; will become wrong.
+   f
+ ;; Otherwise, call it as a function and return
+ ;; its value.
+ (funcall f)))
 
 (defun LaTeX-insert-corresponding-right-macro-and-brace
   (lmacro lbrace &optional optional prompt)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex b82ab0c 08/80: Support up to 12 command arguments.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit b82ab0cbcff581148e1004dca14aecffad941c6f
Author: Tassilo Horn 
Commit: Tassilo Horn 

Support up to 12 command arguments.

* font-latex.el (font-latex-keyword-matcher): Support up to 12 command
  arguments.
---
 font-latex.el | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/font-latex.el b/font-latex.el
index 8e8b4fc..9279df4 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -523,7 +523,11 @@ use."
   (4 (font-latex-matched-face 4) append t)
   (5 (font-latex-matched-face 5) append t)
   (6 (font-latex-matched-face 6) append t)
-  (7 (font-latex-matched-face 7) append t)))
+  (7 (font-latex-matched-face 7) append t)
+  (8 (font-latex-matched-face 8) append t)
+  (9 (font-latex-matched-face 9) append t)
+  (10 (font-latex-matched-face 10) append t)
+  (11 (font-latex-matched-face 11) append t)))
((eq type 'noarg)
 `(,(intern (concat prefix name))
   (0 ,face)))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c07e4bf 49/80: Update style/AnonymousPro.el to package version 2.2

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c07e4bf51133bb05570adbce428736f2fdca0179
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/AnonymousPro.el to package version 2.2

* style/AnonymousPro.el (LaTeX-AnonymousPro-package-options): Add
the `scaled' key.
---
 style/AnonymousPro.el | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/style/AnonymousPro.el b/style/AnonymousPro.el
index a9a436b..c88a917 100644
--- a/style/AnonymousPro.el
+++ b/style/AnonymousPro.el
@@ -1,6 +1,6 @@
-;;; AnonymousPro.el --- AUCTeX style for `AnonymousPro.sty' (v2.1)
+;;; AnonymousPro.el --- AUCTeX style for `AnonymousPro.sty' (v2.2)
 
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,8 +26,8 @@
 
 ;;; Commentary:
 
-;; This file adds support for `AnonymousPro.sty' (v2.1) from
-;; 2014/03/22.  `AnonymousPro.sty' is part of TeXLive.
+;; This file adds support for `AnonymousPro.sty' (v2.2) from
+;; 2019/07/07.  `AnonymousPro.sty' is part of TeXLive.
 
 ;;; Code:
 
@@ -84,7 +84,7 @@
  LaTeX-dialect)
 
 (defvar LaTeX-AnonymousPro-package-options
-  '("ttdefault" "scale")
+  '("ttdefault" "scale" "scaled")
   "Package options for the AnonymousPro package.")
 
 ;;; AnonymousPro.el ends here

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex af15814 42/80: ; * style/babel.el: Fix typo, remove code remainder.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit af158140f343305967dfc0d4d3ca763e28c540aa
Author: Arash Esbati 
Commit: Arash Esbati 

; * style/babel.el: Fix typo, remove code remainder.
---
 style/babel.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/style/babel.el b/style/babel.el
index 38a51ab..24d6cbb 100644
--- a/style/babel.el
+++ b/style/babel.el
@@ -136,7 +136,7 @@
(cl-pushnew main-language active-languages :test #'equal))
 (nreverse active-languages)))
 
-;; Setup for abeltags: Note that the macros is abeltags, we use
+;; Setup for abeltags: Note that the macro is abeltags, we use
 ;; the version without `s' in order to reduce the hassle with AUCTeX
 ;; auto-generating the plural form:
 (TeX-auto-add-type "babel-babeltag" "LaTeX")
@@ -310,7 +310,6 @@
  (TeX-argument-prompt optional nil "Language(s)")
  LaTeX-babel-language-list)
 "," ]
-  ;; LaTeX-arg-babel-babelfont
   (TeX-arg-eval let ((fontfam (completing-read
   (TeX-argument-prompt optional nil "font 
family")
   '("rm" "sf" "tt"

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 8530cd0 45/80: Support cleveref labels

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 8530cd0c25d07c182ccef54bee5645cc309cce62
Author: Arash Esbati 
Commit: Arash Esbati 

Support cleveref labels

* style/cleveref.el (TeX-arg-cleveref-crossref-type): New
function.
(LaTeX-cleveref-label-regexp): New variable for parsing \label
macros with an optional argument.
("cleveref"): Add missing package macros.
Update expert commands and fontification.
Update `reftex-label-regexps' enabling RefTeX to handle \label
with an optional argument as well.
Update description line and add Commentary section.  (bug#36111)
---
 style/cleveref.el | 141 --
 1 file changed, 115 insertions(+), 26 deletions(-)

diff --git a/style/cleveref.el b/style/cleveref.el
index 2774dcb..290bc2f 100644
--- a/style/cleveref.el
+++ b/style/cleveref.el
@@ -1,6 +1,6 @@
-;;; cleveref.el --- Style hook for the `cleveref.sty' package.
+;;; cleveref.el --- AUCTeX style for `cleveref.sty' (v0.21.4)
 
-;; Copyright (C) 2014--2016, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2014--2019 Free Software Foundation, Inc.
 
 ;; Author: Matthew Leach 
 ;; Maintainer: auctex-devel@gnu.org
@@ -23,6 +23,11 @@
 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 ;; 02110-1301, USA.
 
+;;; Commentary:
+
+;; This file adds support for `cleveref.sty' (v0.21.4), dated
+;; 2018/03/27.
+
 ;;; Code
 
 ;; Silence the compiler:
@@ -47,22 +52,41 @@ string."
   (labels-string (mapconcat #'identity labels ",")))
   (TeX-argument-insert labels-string optional
 
+(defun TeX-arg-cleveref-crossref-type (optional &optional prompt)
+  "Insert the cross-reference type for macros of cleveref package.
+If OPTIONAL is non-nil, insert the resulting value in brackets.
+Use PROMPT as the prompt string."
+  (let* ((type (mapcar #'list
+  '("appendix" "subappendix" "subsubappendix"
+"subsubsubappendix" "subfigure" "subtable"
+"subequation")))
+(types (append (LaTeX-counter-list) type)))
+(TeX-argument-insert
+ (completing-read (TeX-argument-prompt optional prompt "Type") types)
+ optional)))
+
+(defvar LaTeX-cleveref-label-regexp
+  '("\\label\[[^]]*\]{\([^
%\{}]+\)}" 1 LaTeX-auto-label)
+  "Regexp matching a \label incl. an optional argument.")
+
 (TeX-add-style-hook
  "cleveref"
  (lambda ()
+
(TeX-add-symbols
+;; 4 Typesetting Cross-References
 '("cref" TeX-arg-cleveref-multiple-labels)
 '("Cref" TeX-arg-cleveref-multiple-labels)
 '("crefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
 '("Crefrange" (TeX-arg-ref "key (first)") (TeX-arg-ref "Key (last)"))
-'("cpageref" TeX-arg-cleveref-multiple-labels)
-'("Cpageref" TeX-arg-cleveref-multiple-labels)
-'("cpagerefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
-'("Cpagerefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
 '("cref*" TeX-arg-cleveref-multiple-labels)
 '("Cref*" TeX-arg-cleveref-multiple-labels)
 '("crefrange*" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
 '("Crefrange*" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
+'("cpageref" TeX-arg-cleveref-multiple-labels)
+'("Cpageref" TeX-arg-cleveref-multiple-labels)
+'("cpagerefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
+'("Cpagerefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)"))
 '("namecref" TeX-arg-ref)
 '("nameCref" TeX-arg-ref)
 '("lcnamecref" TeX-arg-ref)
@@ -70,35 +94,100 @@ string."
 '("nameCrefs" TeX-arg-ref)
 '("lcnamecrefs" TeX-arg-ref)
 '("labelcref" TeX-arg-cleveref-multiple-labels)
-'("labelcpageref" TeX-arg-cleveref-multiple-labels))
+'("labelcpageref" TeX-arg-cleveref-multiple-labels)
+;; 6 Overriding the Cross-Reference Type
+'("crefalias" TeX-arg-counter "Type")
+'("label" [ TeX-arg-cleveref-crossref-type ] TeX-arg-define-label)
+
+;; 8.1.1 Global Customisation
+'("crefdefaultlabelformat" t)
+
+;; 8.1.2 Customising Individual Cross-Reference Types
+'("crefname" TeX-arg-cleveref-crossref-type
+  "Singular name" "Plural name")
+'("Crefname" TeX-arg-cleveref-crossref-type
+  "Singular name" "Plural name")
+'("creflabelformat" TeX-arg-cleveref-crossref-type t)
+'("crefrangelabelformat" TeX-arg-cleveref-crossref-type t)
+
+;; 8.2.1 Single Cross-References
+'("crefformat" TeX-arg-cleveref-crossref-type t)
+'("Crefformat" TeX-arg-cleveref-crossref-type t)
+
+;; 8.2.2 Reference Ranges
+'("crefrangeformat" TeX-arg-cleveref-crossref-type t)
+'("Crefrangeformat" TeX-arg-cleveref-crossref-type t)
+
+;; 8.2.3 Multiple Cross-References
+'("crefmultiformat"  TeX-arg-cleveref-crossref-type 4)
+'("Crefmultiformat"  TeX-arg-cleveref-crossref-type 4)
+'("crefrangemultiformat" TeX-arg-cleveref-crossref-type 4)
+'("Cref

[AUCTeX-diffs] [elpa] externals/auctex 65607e5 76/80: * preview.el.in (preview-undump-replacements): Fix last commit.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 65607e58baeedd85d31c7f1db2e7d1ee25f5031b
Author: Ikumi Keita 
Commit: Ikumi Keita 

* preview.el.in (preview-undump-replacements): Fix last commit.
---
 preview.el.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preview.el.in b/preview.el.in
index a5c7797..148f05b 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -3381,7 +3381,7 @@ This is passed through `preview-do-replacements'."
   ;; Discard all other options.
   '(("\`\([^ ]+\)\
 \(?: +\(?:\(--?kanji[= ][^ ]+\)\|-\(?:[^ \\"]\|\\.\|\"[^\"]*\"\)*\)\)*.*\
- \"\\input\" \"\\detokenize{\" \(.*\)\"} \"\'"
+ \"\\input\" \"\\detokenize{\" \(.*\) \"}\"\'"
  . ("\1 \2 -interaction=nonstopmode -file-line-error "
preview-format-name " \"/AUCTEXINPUT{\" \3 \"}\"")))
   ;; See the ini file code below in `preview-cache-preamble' for the

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit ccfd3d91a57102b03d488828ba93ec7494daea26
Author: Ikumi Keita 
Commit: Ikumi Keita 

Restore syntax fontify in Texinfo mode

* tex-info.el (TeX-texinfo-mode): Set `syntax-propertize-function',
mimicking texinfo.el.  Now comments in Texinfo mode buffer are
displayed with comment face again.
---
 tex-info.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tex-info.el b/tex-info.el
index f7da017..4f8165d 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -664,6 +664,8 @@ value of `Texinfo-mode-hook'."
 
   (set (make-local-variable 'font-lock-defaults)
'(texinfo-font-lock-keywords nil nil nil backward-paragraph))
+  (set (make-local-variable 'syntax-propertize-function)
+   texinfo-syntax-propertize-function)
 
   ;; Outline settings.
   (set (make-local-variable 'outline-regexp)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex b62181c 29/80: ; Remove unused code fragment

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit b62181c0ef7c9b80c16618be97d17c59d644683a
Author: Ikumi Keita 
Commit: Ikumi Keita 

; Remove unused code fragment

* tex.el (defvar): Remove unused code fragment once introduced to
silence byte compiler.
---
 tex.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tex.el b/tex.el
index f5e8801..684b6f7 100644
--- a/tex.el
+++ b/tex.el
@@ -1177,8 +1177,6 @@ focus."
   :group 'TeX-view
   :type 'boolean)
 
-(defvar url-unreserved-chars)
-
 (defun TeX-evince-sync-view-1 (de app)
   "Focus the focused page/paragraph in Evince with the position
 of point in emacs by using Evince's DBUS API.  Used by default

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c531148 04/80: ; Improve previous change in auctex.el.in

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c5311488289e204f644151c8fed68a2e89177fa7
Author: Arash Esbati 
Commit: Arash Esbati 

; Improve previous change in auctex.el.in

* auctex.el.in: Replace GNU Emacs with AUCTeX.  Remove duplicate
comment.  Add trailer.
---
 auctex.el.in | 29 ++---
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/auctex.el.in b/auctex.el.in
index d7c06c0..93c9284 100644
--- a/auctex.el.in
+++ b/auctex.el.in
@@ -2,26 +2,28 @@
 
 ;; Copyright (C) 2014-2019 Free Software Foundation, Inc.
 
-;; URL: http://www.gnu.org/software/auctex/
+;; URL: https://www.gnu.org/software/auctex/
 ;; Maintainer: auctex-devel@gnu.org
 ;; Notifications-To: auctex-di...@gnu.org
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 ;; Keywords: TeX LaTeX Texinfo ConTeXt docTeX preview-latex
 
-;; This file is part of GNU Emacs.
+;; This file is part of AUCTeX.
 
-;; GNU Emacs is free software: you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
+;; AUCTeX is free software: you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation, either version 3 of the License, or
 ;; (at your option) any later version.
 
-;; GNU Emacs is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;; GNU General Public License for more details.
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
 
 ;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs.  If not, see .
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
 
 ;;; Commentary:
 
@@ -29,18 +31,15 @@
 ;; strange trick causes tex-site.el to be loaded in a way that can be
 ;; safely undone using (unload-feature 'tex-site).
 
+;;; Code:
+
 ;; FIXME: I don't quite understand in which way this is better than less
 ;; strange code such as
 ;; (require 'tex-site (expand-file-name "tex-site.el"
 ;; (file-name-directory load-file-name))
 
-;;; Code:
-
-;; This can be used for starting up AUCTeX.  The following somewhat
-;; strange trick causes tex-site.el to be loaded in a way that can be
-;; safely undone using (unload-feature 'tex-site).
-
 (autoload 'TeX-load-hack
   @lisptexsite@)
 (TeX-load-hack)
 
+;;; auctex.el ends here

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 18a09f0 03/80: * auctex.el: Add requireds, keywords, and trailer

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 18a09f022ea41c7556a3f556a2547fe26488f6a2
Author: Stefan Monnier 
Commit: Tassilo Horn 

* auctex.el: Add requireds, keywords, and trailer

(cherry picked from commit 0c8d6703d16097eb64f014c56e4135a5a1f9600f)
---
 auctex.el.in | 42 +++---
 1 file changed, 39 insertions(+), 3 deletions(-)

diff --git a/auctex.el.in b/auctex.el.in
index f75b53e..d7c06c0 100644
--- a/auctex.el.in
+++ b/auctex.el.in
@@ -1,9 +1,45 @@
-;;; auctex.el
-;;
+;;; auctex.el --- Integrated environment for *TeX*
+
+;; Copyright (C) 2014-2019 Free Software Foundation, Inc.
+
+;; URL: http://www.gnu.org/software/auctex/
+;; Maintainer: auctex-devel@gnu.org
+;; Notifications-To: auctex-di...@gnu.org
+;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
+;; Keywords: TeX LaTeX Texinfo ConTeXt docTeX preview-latex
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see .
+
+;;; Commentary:
+
 ;; This can be used for starting up AUCTeX.  The following somewhat
 ;; strange trick causes tex-site.el to be loaded in a way that can be
 ;; safely undone using (unload-feature 'tex-site).
-;;
+
+;; FIXME: I don't quite understand in which way this is better than less
+;; strange code such as
+;; (require 'tex-site (expand-file-name "tex-site.el"
+;; (file-name-directory load-file-name))
+
+;;; Code:
+
+;; This can be used for starting up AUCTeX.  The following somewhat
+;; strange trick causes tex-site.el to be loaded in a way that can be
+;; safely undone using (unload-feature 'tex-site).
+
 (autoload 'TeX-load-hack
   @lisptexsite@)
 (TeX-load-hack)

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 4776fd0 25/80: ; Remove compatibility code for older emacsen

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 4776fd0327e44038c895b9ba35959f7f7f4e9fb5
Author: Ikumi Keita 
Commit: Ikumi Keita 

; Remove compatibility code for older emacsen

* multi-prompt.el (multi-prompt): Remove fallback for older emacsen.
(): Update copyright year.
---
 multi-prompt.el | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/multi-prompt.el b/multi-prompt.el
index 8337ebc..f7632be 100644
--- a/multi-prompt.el
+++ b/multi-prompt.el
@@ -1,6 +1,7 @@
 ;;; multi-prompt.el --- Completing read of multiple strings
 
-;; Copyright (C) 1996, 1997, 2000, 2009, 2014 Free Software Foundation, Inc.
+;; Copyright (C) 1996, 1997, 2000, 2009, 2014, 2019 Free Software
+;; Foundation, Inc.
 
 ;; Author: Per Abrahamsen 
 ;; Maintainer: auctex-devel@gnu.org
@@ -52,10 +53,7 @@ are the arguments to `completing-read'.  See that."
 minibuffer-local-must-match-map
   minibuffer-local-completion-map))
(new-map (make-sparse-keymap)))
-(if (fboundp 'set-keymap-parent)
-   ;; `set-keymap-parent' was introduced in Emacs 19.32.
-   (set-keymap-parent new-map old-map)
-  (setq new-map (copy-keymap old-map)))
+(set-keymap-parent new-map old-map)
 (define-key new-map separator (if require-match
  'multi-prompt-next-must-match
'multi-prompt-next))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 5592f7d 17/80: Reset `TeX-PDF-from-DVI' if xetex engine is in use

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 5592f7d3cd5c3db24253e1cc22c939e34b0e04ba
Author: Ikumi Keita 
Commit: Ikumi Keita 

Reset `TeX-PDF-from-DVI' if xetex engine is in use

* tex.el (TeX-engine-set): Reset `TeX-PDF-from-DVI' when the new
engine is `xetex'.  Fix bug#34593.
---
 tex.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 6cf2e48..f469a6c 100644
--- a/tex.el
+++ b/tex.el
@@ -1579,7 +1579,9 @@ For available TYPEs, see variable `TeX-engine'."
 (setq type (intern type)))
   (setq TeX-engine type)
   ;; Automatically enable or disable TeX PDF mode as a convenience
-  (cond ((eq type 'xetex) (TeX-PDF-mode 1))
+  (cond ((eq type 'xetex)
+(TeX-PDF-mode 1)
+(setq TeX-PDF-from-DVI nil))
((eq type 'omega) (TeX-PDF-mode 0
 
 (define-minor-mode TeX-Omega-mode

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 90fcbd4 41/80: Make navigation function robust

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 90fcbd44a0f69b7b6511ef3af33bbc1a09670221
Author: Ikumi Keita 
Commit: Ikumi Keita 

Make navigation function robust

* tex.el (TeX-find-macro-end-helper): Cater for corner case that the
`while' loop is exited or skipped.
* tests/tex/navigation.el: Add new test.
---
 tests/tex/navigation.el | 54 +
 tex.el  |  8 +---
 2 files changed, 59 insertions(+), 3 deletions(-)

diff --git a/tests/tex/navigation.el b/tests/tex/navigation.el
new file mode 100644
index 000..daf1840
--- /dev/null
+++ b/tests/tex/navigation.el
@@ -0,0 +1,54 @@
+;;; navigation.el --- tests for navigation function in TeX buffer
+
+;; Copyright (C) 2019 Free Software Foundation, Inc.
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Code:
+
+(require 'ert)
+(require 'tex)
+
+(defun TeX-check-f-m-e-h (string &optional position)
+  "Check whether `TeX-find-macro-end-helper' works for exceptional case."
+  (with-temp-buffer
+(insert string)
+(should (= (or position (point-max))
+  (TeX-find-macro-end-helper (point-min))
+
+(ert-deftest TeX-find-macro-end-helper-single ()
+  ;; single macro ending at EOB
+  (TeX-check-f-m-e-h "\foo"))
+
+(ert-deftest TeX-find-macro-end-helper-curly ()
+  ;; curly braces ending at EOB
+  (TeX-check-f-m-e-h "\foo{bar}"))
+
+(ert-deftest TeX-find-macro-end-helper-curly-fail ()
+  ;; curly brace failing to close at EOB
+  (TeX-check-f-m-e-h "\foo{bar"))
+
+(ert-deftest TeX-find-macro-end-helper-square ()
+  ;; square brackets ending at EOB
+  (TeX-check-f-m-e-h "\foo{bar}[baz]"))
+
+(ert-deftest TeX-find-macro-end-helper-square-fail ()
+  ;; square bracket failing to close at EOB
+  (TeX-check-f-m-e-h "\foo{bar}[baz" (1+ (length "\foo{bar}"
+
+;;; navigation.el ends here
diff --git a/tex.el b/tex.el
index 0fda0d5..de8c6cf 100644
--- a/tex.el
+++ b/tex.el
@@ -5484,10 +5484,12 @@ those will be considered part of it."
   ;; If we cannot find a regular end, use the
   ;; next whitespace.
   (save-excursion (skip-chars-forward "^   
")
-  (point
-   (when (eobp) (throw 'found (point
+  (point)
   (t
-   (throw 'found (point)
+   (throw 'found (point)
+   ;; Make sure that this function does not return nil, even
+   ;; when the above `while' loop is totally skipped. (bug#35638)
+   (throw 'found (point))
 
 (defun TeX-find-macro-start (&optional limit)
   "Return the start of a macro.

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit f477383b7365ae25c04f9932185a49de4773f3a4
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/thmtools.el to package version 67

* style/thmtools.el (LaTeX-thmtools-declaretheoremstyle-regexp)
(LaTeX-thmtools-declaretheorem-regexp): Use the function
`LaTeX-extract-key-value-label' to build the regexp.
(LaTeX-thmtools-listoftheorems-key-val): Add new key `title'.
(LaTeX-thmtools-package-options): Add new variable.
---
 style/thmtools.el | 35 +--
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/style/thmtools.el b/style/thmtools.el
index b344c62..20ddb69 100644
--- a/style/thmtools.el
+++ b/style/thmtools.el
@@ -1,6 +1,6 @@
-;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v66)
+;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v67)
 
-;; Copyright (C) 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2018, 2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,7 +26,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `thmtools.sty' (v66) from 2014/04/21.
+;; This file adds support for `thmtools.sty' (v67) from 2019/07/31.
 ;; `thmtools.sty' is part of TeXLive.
 
 ;;; Code:
@@ -38,6 +38,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Setup for \declaretheoremstyle:
 (TeX-auto-add-type "thmtools-declaretheoremstyle" "LaTeX")
@@ -45,13 +46,9 @@
 (defvar LaTeX-thmtools-declaretheoremstyle-regexp
   `(,(concat "\\declaretheoremstyle"
 "[ 
%]*"
-"\(?:\[[^][]*"
-  "\(?:{[^}{]*"
-"\(?:{[^}{]*"
-  "\(?:{[^}{]*}[^}{]*\)*"
-"}[^}{]*\)*"
-  "}[^][]*\)*"
-"\]\)?"
+"\(?:"
+(LaTeX-extract-key-value-label 'none)
+"\)?"
 "[ 
%]*"
 "{\([^}]+\)}")
 1 LaTeX-auto-thmtools-declaretheoremstyle)
@@ -63,13 +60,9 @@
 (defvar LaTeX-thmtools-declaretheorem-regexp
   `(,(concat "\\declaretheorem"
 "[ 
%]*"
-"\(?:\[[^][]*"
-  "\(?:{[^}{]*"
-"\(?:{[^}{]*"
-  "\(?:{[^}{]*}[^}{]*\)*"
-"}[^}{]*\)*"
-  "}[^][]*\)*"
-"\]\)?"
+"\(?:"
+(LaTeX-extract-key-value-label 'none)
+"\)?"
 "[ 
%]*"
 "{\([^}]+\)}")
 1 LaTeX-auto-thmtools-declaretheorem)
@@ -210,7 +203,8 @@ minibuffer.  PROMPT replaces the standard one."
("onlynamed" ,thms)
("show" ,thms)
("ignoreall" ("true" "false"))
-   ("showall" ("true" "false"))
+   ("showall" ("true" "false"))
+   ("title")
 
 (defun LaTeX-arg-thmtools-listoftheorems (optional &optional prompt)
   "Insert the key=val to \listoftheorems macro.
@@ -301,4 +295,9 @@ RefTeX users should customize or add ENVIRONMENT to
  'function)))
  LaTeX-dialect)
 
+;; The package has only one option `debug'.  We ignore that in order
+;; to make loading faster:
+(defvar LaTeX-thmtools-package-options nil
+  "Package options for the thmtools package.")
+
 ;;; thmtools.el ends here

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 8a36595 12/80: Fix handling of function entries in `TeX-complete-list'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 8a36595fb116cd3c6e3f429c9be2101b211c49af
Author: Arash Esbati 
Commit: Arash Esbati 

Fix handling of function entries in `TeX-complete-list'

* tex.el (TeX-complete-symbol): Check if the fourth argument of
entry in `TeX-complete-list' is a list and eval it.  (Bug#35074)
---
 tex.el | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 3c3f176..6cf2e48 100644
--- a/tex.el
+++ b/tex.el
@@ -3109,7 +3109,11 @@ Or alternatively:
 (when entry
   (if (numberp (nth 1 entry))
  (let* ((sub (nth 1 entry))
-(close (nth 3 entry))
+(close (if (and (nth 3 entry)
+ (listp (nth 3 entry))
+ (symbolp (car (nth 3 entry
+(eval (nth 3 entry))
+  (nth 3 entry)))
 (begin (match-beginning sub))
 (end (match-end sub))
 (pattern (TeX-match-buffer 0))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit d56a596f415e3469a2a2a62cb1c46614cf041a27
Author: Ikumi Keita 
Commit: Ikumi Keita 

; * tests/tex/path-expansion.el (): Fix typo.
---
 tests/tex/path-expansion.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tex/path-expansion.el b/tests/tex/path-expansion.el
index 3a1d72e..42eb665 100644
--- a/tests/tex/path-expansion.el
+++ b/tests/tex/path-expansion.el
@@ -32,4 +32,4 @@
 (TeX-search-files-by-type 'abc 'global)
 (should (equal var '("str1" "str2")
 
-;;; command-expansion.el ends here
+;;; path-expansion.el ends here

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex ff688b9 33/80: Stop depreciated usage of undeclared dynamic variable

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit ff688b98e8837387ca5a22f8ff2d57f8bf8fffcd
Author: Ikumi Keita 
Commit: Ikumi Keita 

Stop depreciated usage of undeclared dynamic variable

* tex-buf.el (TeX--master-or-region-file-with-extra-quotes): Redefine
as template.  On accepting one of `TeX-master-file', `TeX-region-file'
or `TeX-active-master' as its first argument, it becomes a wrapper for
those three, like previous definition.
(TeX-command-expand): Arrage in accord with the above change.
With these two changes, we no longer need implicit dynamic binding of
non-special variable `orig-file'.
* tex.el (TeX-expand-list-builtin): Update supplementary comment for
"%T".
---
 tex-buf.el | 53 +
 tex.el |  5 +++--
 2 files changed, 40 insertions(+), 18 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index e89df51..0849198 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1,6 +1,6 @@
 ;;; tex-buf.el --- External commands for AUCTeX.
 
-;; Copyright (C) 1991-1999, 2001-2018 Free Software Foundation, Inc.
+;; Copyright (C) 1991-1999, 2001-2019 Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Keywords: tex, wp
@@ -547,8 +547,6 @@ without further expansion."
   (let (pat
pos ;;FIXME: Should this be dynamically scoped?
entry TeX-command-text TeX-command-pos
-   (orig-file file)
-   (file #'TeX--master-or-region-file-with-extra-quotes)
 expansion-res case-fold-search string expansion arguments)
 (setq list (cons
(list "%%" (lambda nil
@@ -572,6 +570,24 @@ without further expansion."
 (functionp expansion))
(apply expansion arguments))
   ((boundp expansion)
+   (if (eq expansion 'file)
+   ;; `TeX-command-expand' is called with
+   ;; `file' argument being one of
+   ;; `TeX-master-file',
+   ;; `TeX-region-file' and
+   ;; `TeX-active-master'.  The return
+   ;; value of these functions sometimes
+   ;; needs suitable "decorations" for an
+   ;; argument for underlying shell or
+   ;; latex executable, or both, when the
+   ;; relavant file name involves some
+   ;; special characters such as space
+   ;; and multibyte characters.  Hence
+   ;; embed that function in a template
+   ;; prepared for that purpose.
+   (setq file (apply-partially
+   
#'TeX--master-or-region-file-with-extra-quotes
+   file)))
 (setq expansion-res
   (apply (symbol-value expansion) arguments))
 (when (eq expansion 'file)
@@ -587,24 +603,29 @@ without further expansion."
   command)
 
 (defun TeX--master-or-region-file-with-extra-quotes
-(&optional extension nondirectory ask extra)
+(file-fn &optional extension nondirectory ask extra)
   "Return file name with quote for shell.
-Wrapper for `TeX-master-file', `TeX-region-file' or
-`TeX-active-master' to be used in `TeX-command-expand'.
-It is assumed that `orig-file' has dynamic binding of the value
-of `TeX-master-file', `TeX-region-file' or `TeX-active-master'.
-Pass EXTENSION, NONDIRECTORY and ASK to that function as-is, and
-arrange the returned file name for use with command shell.
-Enclose the file name with space within quotes `\"' first when
-\" \input\" is supplemented (indicated by dynamically binded
-variable `TeX-command-text' having string value.)
-Enclose the file name within \detokenize{} when the following three
+Helper function of `TeX-command-expand'.
+
+This is a kind of template.  How to use:
+Fix, by `apply-partially', the first argument FILE-FN as one of
+the three functions `TeX-master-file', `TeX-region-file' or
+`TeX-active-master'.  Then the result is just a wrapper for that
+function suitable in `TeX-command-expand'.
+
+As a wrapper described above, it passes EXTENSION, NONDIRECTORY
+and ASK to the \"bare\" function as-is, and arranges the returned
+file name for use with command shell.  I.e. it encloses the file
+name with space within quotes `\"' first when \" \input\" is
+supplemented (indicated by dynamically binded variable
+`TeX-command-text' having string value.)  It also encloses the
+file name within \detokenize{} when the following three
 conditions are met:
 1. compiling with standard (pdf)LaTeX or upLaTeX
 2. \" \input\" is supplemented
-3. EXTRA is non-nil. (default when expanding \"%T\")"
+3. EXTRA is 

[AUCTeX-diffs] [elpa] externals/auctex 5b97c38 01/80: Add dependencies file auctex-pkg.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 5b97c3881a6ecd2481dc20594faee11a4ef32943
Author: Arash Esbati 
Commit: Arash Esbati 

Add dependencies file auctex-pkg.el

* auctex-pkg.el: Add new file containing AUCTeX's dependencies for
ELPA releases.
---
 auctex-pkg.el | 9 +
 1 file changed, 9 insertions(+)

diff --git a/auctex-pkg.el b/auctex-pkg.el
new file mode 100644
index 000..58cc6ef
--- /dev/null
+++ b/auctex-pkg.el
@@ -0,0 +1,9 @@
+;; -*- no-byte-compile: t -*-
+
+(define-package "auctex" "12.1.1" "Integrated environment for *TeX*"
+  '((emacs "24.1") (cl-lib "0.5"))
+  :url "https://www.gnu.org/software/auctex/";
+  :keywords '("TeX" "LaTeX" "Texinfo" "ConTeXt" "docTeX"
+ "preview-latex"))
+
+(setq byte-compile-warnings '(not unresolved))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex b141ded 27/80: Remove compatibility code for xemacs

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit b141ded9327bedf7aa7e72d575f31ec020123975
Author: Ikumi Keita 
Commit: Ikumi Keita 

Remove compatibility code for xemacs

* prv-emacs.el (preview-compatibility-macros): Remove.
* preview.el.in (eval-when-compile,makunbound): Remove useless
codes.
---
 preview.el.in | 9 -
 prv-emacs.el  | 3 ---
 2 files changed, 12 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index 4c40534..8748c8f 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -3634,14 +3634,5 @@ If not a regular release, the date of the last change.")
 file exhibiting the problem might help."
  )))
 
-(eval-when-compile
-  (when (boundp 'preview-compatibility-macros)
-(dolist (elt preview-compatibility-macros)
-  (if (consp elt)
- (fset (car elt) (cdr elt))
-   (fmakunbound elt)
-
-(makunbound 'preview-compatibility-macros)
-
 (provide 'preview)
 ;;; preview.el ends here
diff --git a/prv-emacs.el b/prv-emacs.el
index 0afef66..0ccce7b 100644
--- a/prv-emacs.el
+++ b/prv-emacs.el
@@ -30,9 +30,6 @@
 (require 'tex)
 (require 'latex)
 
-(defvar preview-compatibility-macros nil
-  "List of macros only present when compiling/loading.")
-
 (defcustom preview-transparent-color '(highlight :background)
   "Color to appear transparent in previews.
 Set this to something unusual when using `preview-transparent-border',

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 1a83f1b 09/80: ; Remove `eval-when-compile' for latex.el

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 1a83f1bd9f9602f60afde77941e7649e2cad261b
Author: Arash Esbati 
Commit: Arash Esbati 

; Remove `eval-when-compile' for latex.el

* style/bicaption.el:
* style/caption.el:
* style/color.el:
* style/floatrow.el:
* style/xcolor.el: Require latex.el, not only at compile time.
---
 style/bicaption.el |  6 +++---
 style/caption.el   |  8 +---
 style/color.el |  6 +++---
 style/floatrow.el  | 10 ++
 style/xcolor.el|  6 +++---
 5 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/style/bicaption.el b/style/bicaption.el
index 5dc4063..4281bd1 100644
--- a/style/bicaption.el
+++ b/style/bicaption.el
@@ -1,6 +1,6 @@
 ;;; bicaption.el --- AUCTeX style for `bicaption.sty' (v1.1-158)
 
-;; Copyright (C) 2016--2018 Free Software Foundation, Inc.
+;; Copyright (C) 2016--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -34,8 +34,8 @@
 
 ;;; Code:
 
-(eval-when-compile
-  (require 'latex))
+;; Needed for compiling `LaTeX-check-insert-macro-default-style':
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
diff --git a/style/caption.el b/style/caption.el
index c38c1fa..c8f118d 100644
--- a/style/caption.el
+++ b/style/caption.el
@@ -1,6 +1,6 @@
 ;;; caption.el --- AUCTeX style for `caption.sty' (v3.3-111)
 
-;; Copyright (C) 2015--2018 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -35,8 +35,10 @@
 ;;; Code:
 
 (eval-when-compile
-  (require 'cl-lib)
-  (require 'latex))
+  (require 'cl-lib))
+
+;; Needed for compiling `LaTeX-check-insert-macro-default-style':
+(require 'latex)
 
 ;; Needed for auto-parsing:
 (require 'tex)
diff --git a/style/color.el b/style/color.el
index 30e575e..f8f850a 100644
--- a/style/color.el
+++ b/style/color.el
@@ -1,6 +1,6 @@
 ;;; color.el --- AUCTeX style for `color.sty' (v1.1a)
 
-;; Copyright (C) 2015--2018 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -34,8 +34,8 @@
 
 ;;; Code:
 
-(eval-when-compile
-  (require 'latex))
+;; Needed for compiling `LaTeX-check-insert-macro-default-style':
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
diff --git a/style/floatrow.el b/style/floatrow.el
index baad7cf..d26ca29 100644
--- a/style/floatrow.el
+++ b/style/floatrow.el
@@ -1,6 +1,6 @@
 ;;; floatrow.el --- AUCTeX style for `floatrow.sty' (v0.3b)
 
-;; Copyright (C) 2017, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2017--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -58,10 +58,12 @@
 
 ;;; Code:
 
-;; Needed for compiling `cl-pushnew' & 
`LaTeX-check-insert-macro-default-style':
+;; Needed for compiling `cl-pushnew':
 (eval-when-compile
-  (require 'cl-lib)
-  (require 'latex))
+  (require 'cl-lib))
+
+;; Needed for compiling `LaTeX-check-insert-macro-default-style':
+(require 'latex)
 
 ;; Needed for auto-parsing:
 (require 'tex)
diff --git a/style/xcolor.el b/style/xcolor.el
index db820c7..2d6b3c5 100644
--- a/style/xcolor.el
+++ b/style/xcolor.el
@@ -1,6 +1,6 @@
 ;; xcolor.el --- AUCTeX style for `xcolor.sty' (v2.12)
 
-;; Copyright (C) 2016--2018 Free Software Foundation, Inc.
+;; Copyright (C) 2016--2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati 
 ;; Maintainer: auctex-devel@gnu.org
@@ -44,8 +44,8 @@
 
 ;;; Code:
 
-(eval-when-compile
-  (require 'latex))
+;; Needed for compiling `LaTeX-check-insert-macro-default-style':
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c92251c 36/80: Load hyperref.el in `LaTeX-beamer-class-options'

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c92251cb8dca5a35c818b0ce903277dd36e893ec
Author: Arash Esbati 
Commit: Arash Esbati 

Load hyperref.el in `LaTeX-beamer-class-options'

* style/beamer.el (LaTeX-beamer-class-options): Load "hyperref.el"
in order to have `LaTeX-hyperref-package-options-list' defined
when the document class is requested and the style hook hasn't run
yet.  (bug#35649)
---
 style/beamer.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/style/beamer.el b/style/beamer.el
index fb69fc4..5de0d32 100644
--- a/style/beamer.el
+++ b/style/beamer.el
@@ -363,6 +363,7 @@ also be a string.  Then the length of the string is used."
 
 (defun LaTeX-beamer-class-options ()
   "Read the beamer class options from the user."
+  (TeX-load-style "hyperref")
   (TeX-read-key-val t '(("usepdftitle" ("false")) ("envcountsect")
("notheorems") ("noamsthm") ("compress") ("t") ("c")
("leqno") ("fleqn") ("handout") ("trans") ("pdftex")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 4611580 32/80: * tex-jp.el (AUCTeX-jp): Add keyword :link to info node.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 46115800305ed7bbd5c7d74b3800649681200ea8
Author: Ikumi Keita 
Commit: Ikumi Keita 

* tex-jp.el (AUCTeX-jp): Add keyword :link to info node.
---
 tex-jp.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tex-jp.el b/tex-jp.el
index c20e62d..dff1b11 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -41,7 +41,8 @@
 
 (defgroup AUCTeX-jp nil
   "Japanese support in AUCTeX."
-  :group 'AUCTeX)
+  :group 'AUCTeX
+  :link '(custom-manual "(auctex)Japanese"))
 
 (defcustom japanese-TeX-engine-default 'ptex
   "Default TeX engine for Japanese TeX."

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex cd39966 14/80: ; Fix typos

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit cd3996645123ff65659f06acb2851b26720309af
Author: Ikumi Keita 
Commit: Ikumi Keita 

; Fix typos

* latex.el (LaTeX--after-math-macro-prefix-p):
* preview.el.in (preview-TeX-style-cooked, preview-TeX-style-dir):
Fix typos in doc strings.
---
 latex.el  | 2 +-
 preview.el.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/latex.el b/latex.el
index 510d4bf..898eec8 100644
--- a/latex.el
+++ b/latex.el
@@ -6040,7 +6040,7 @@ i.e. you do _not_ have to cater for this yourself by 
adding \\' or $."
 Also sets `match-data' so that group 1 is the already typed
 prefix.
 
-For example, in $a + | - 17$ with | denoting point, the
+For example, in $a + \a| - 17$ with | denoting point, the
 function would return non-nil and `(match-string 1)' would return
 \"a\" afterwards."
   (and (texmathp)
diff --git a/preview.el.in b/preview.el.in
index e6eceeb..9dd1cef 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -2365,7 +2365,7 @@ filename=%s>
 
 (defun preview-TeX-style-cooked ()
   "Return `preview-TeX-style-dir' in cooked form.
-This will be fine for prepending to a `TEXINPUT' style
+This will be fine for prepending to a `TEXINPUTS' style
 environment variable, including an initial `.' at the front."
   (if (or (zerop (length preview-TeX-style-dir))
  (member (substring preview-TeX-style-dir -1) '(";" ":")))
@@ -2422,7 +2422,7 @@ systems, or `;' on Windows-like systems.  And it should be
 preceded with .: or .; accordingly in order to have . first in
 the search path.
 
-The `TEXINPUT' environment type variables will get this prepended
+The `TEXINPUTS' environment type variables will get this prepended
 at load time calling \[preview-set-texinputs] to reflect this.
 You can permanently install the style files using
 \[preview-install-styles].

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 686a8ed 13/80: Elaborate LaTeX math insertion command

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 686a8ed3b0cf091bb24d3db826a3f8ad1047f6c0
Author: Ikumi Keita 
Commit: Ikumi Keita 

Elaborate LaTeX math insertion command

* latex.el (LaTeX-math-insert): Put the point after the closing dollar
sign when appropriate.  This fixes bug#35128.
In addtion, wrap the text in the active region suitably.
---
 latex.el | 30 +-
 1 file changed, 25 insertions(+), 5 deletions(-)

diff --git a/latex.el b/latex.el
index d260006..510d4bf 100644
--- a/latex.el
+++ b/latex.el
@@ -5362,11 +5362,31 @@ commands are defined:
   "Insert \STRING{}.  If DOLLAR is non-nil, put $'s around it.
 If `TeX-electric-math' is non-nil wrap that symbols around the
 string."
-  (when dollar
-(insert (or (car TeX-electric-math) "$"))
-(save-excursion
-  (insert (or (cdr TeX-electric-math) "$"
-  (funcall LaTeX-math-insert-function string))
+  (let ((active (TeX-active-mark))
+   m closer)
+(if (and active (> (point) (mark)))
+   (exchange-point-and-mark))
+(when dollar
+  (insert (or (car TeX-electric-math) "$"))
+  (save-excursion
+   (if active (goto-char (mark)))
+   ;; Store closer string for later reference.
+   (setq closer (or (cdr TeX-electric-math) "$"))
+   (insert closer)
+   ;; Set temporal marker to decide whether to put the point
+   ;; after the math mode closer or not.
+   (setq m (point-marker
+(funcall LaTeX-math-insert-function string)
+(when dollar
+  ;; If the above `LaTeX-math-insert-function' resulted in
+  ;; inserting, e.g., a pair of "\langle" and "
angle" by
+  ;; typing "`(", keep the point between them.  Otherwise
+  ;; move the point after the math mode closer.
+  (if (= m (+ (point) (length closer)))
+ (goto-char m))
+  ;; Make temporal marker point nowhere not to slow down the
+  ;; subsequent editing in the buffer.
+  (set-marker m nil
 
 (defun LaTeX-math-cal (char dollar)
   "Insert a {\cal CHAR}.  If DOLLAR is non-nil, put $'s around it.

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex ca0437d 16/80: Update keywords to biblatex v3.12

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit ca0437d03af562c548c566f0237de48244f4d922
Author: Arash Esbati 
Commit: Arash Esbati 

Update keywords to biblatex v3.12

* font-latex.el (font-latex-built-in-keyword-classes): Update
biblatex keywords.  For qualified lists, fontify at least 2
mandatory arguments.
---
 font-latex.el | 93 +--
 1 file changed, 72 insertions(+), 21 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index 9279df4..486f39f 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -263,29 +263,80 @@ variable `font-latex-fontify-sectioning'." ',num)
  ("newrefsegment" "mancite" "pno" "ppno" "nopp" "psq" "psqq")
  font-lock-variable-name-face 2 noarg)
 ("biblatex"
- (("newrefsection" "[") ("ExecuteBibliographyOptions" "[{")
-  ("printbibliography" "[") ("printshorthands" "[") ("printbibheading" "[")
+ (;; 3.2.2 Setting Package Options
+  ("ExecuteBibliographyOptions" "[{")
+  ;; 3.7.1 Resources
   ("addbibresource" "[{") ("addglobalbib" "[{") ("addsectionbib" "[{")
-  ("bibbysection" "[") ("bibbysegment" "[") ("bibbycategory" "[")
-  ("DeclareBibliographyCategory" "{") ("addtocategory" "{{") 
("defbibenvironment" "")
-  ("defbibheading" "{[{") ("defbibnote" "{{") ("defbibfilter" "{{") 
("defbibcheck" "{{")
-  ("defbibentryset" "{{") ("Cite" "[[{") ("parencite" "*[[{") ("Parencite" 
"[[{")
-  ("footcite" "[[{") ("footcitetext" "[[{") ("textcite" "[[{") ("Textcite" 
"[[{")
-  ("smartcite" "[[{") ("Smartcite" "[[{") ("supercite" "{") ("autocite" 
"*[[{")
-  ("Autocite" "*[[{") ("citeauthor" "*[[{") ("Citeauthor" "*[[{") 
("citetitle" "*[[{")
-  ("citeyear" "*[[{") ("citedate" "*[[{") ("citeurl" "[[{") ("parentext" 
"{")
-  ("brackettext" "{") ("fullcite" "[[{") ("fullfootcite" "[[{") ("volcite" 
"[{[[")
-  ("Volcite" "[{[[") ("pvolcite" "[{[[") ("Pvolcite" "[{[[") ("fvolcite" 
"[{[[")
-  ("ftvolcite" "[{[[") ("svolcite" "[{[[") ("Svolcite" "[{[[") ("tvolcite" 
"[{[[")
-  ("Tvolcite" "[{[[") ("avolcite" "[{[[") ("Avolcite" "[{[[") ("notecite" 
"[[{")
-  ("Notecite" "[[{") ("pnotecite" "[[{") ("Pnotecite" "[[{") ("fnotecite" 
"[[{")
-  ("citename" "[[{[{") ("citelist" "[[{[{") ("citefield" "[[{[{") 
("citereset" "*")
-  ("RN" "{") ("Rn" "{") ("DefineBibliographyStrings" "{{") 
("DefineBibliographyExtras" "{{")
+  ;; 3.7.2 The Bibliography
+  ("printbibliography" "[") ("bibbysection""[") ("bibbysegment" "[")
+  ("bibbycategory" "[") ("printbibheading" "[")
+  ;; 3.7.3 Bibliography Lists
+  ("printbiblist" "[{") ("printshorthands" "[")
+  ;; 3.7.4 Bibliography Sections
+  ("newrefsection" "[")
+  ;; 3.7.6 Bibliography Categories
+  ("DeclareBibliographyCategory" "{") ("addtocategory" "{{")
+  ;; 3.7.7 Bibliography Headings and Environments
+  ("defbibenvironment" "") ("defbibheading" "{[{")
+  ;; 3.7.8 Bibliography Notes
+  ("defbibnote" "{{")
+  ;; 3.7.9 Bibliography Filters and Checks
+  ("defbibfilter" "{{") ("defbibcheck" "{{")
+  ;; 3.7.10 Reference Contexts
+  ("DeclareRefcontext"   "{{")  ("newrefcontext""[{")
+  ("assignrefcontextkeyws"   "*[{") ("assignrefcontextcats" "*[{")
+  ("assignrefcontextentries" "*[{")
+  ;; 3.7.11 Dynamic Entry Sets
+  ("defbibentryset" "{{")
+  ;; 3.8.1 Standard Commands
+  ("Cite" "[[{")
+  ("parencite" "*[[{") ("Parencite""[[{")
+  ("footcite"  "[[{")  ("footcitetext" "[[{")
+  ;; 3.8.2 Style-specific Commands
+  ("textcite"  "[[{") ("Textcite"  "[[{")
+  ("smartcite" "[[{") ("Smartcite" "[[{")
+  ("supercite" "{")
+  ;; 3.8.3 Qualified Citation Lists
+  ;; For qualified lists, fontify at least 2 mandatory arguments
+  ("cites"  "(([[{[[{") ("Cites" "(([[{[[{")
+  ("parencites" "(([[{[[{") ("Parencites""(([[{[[{")
+  ("footcites"  "(([[{[[{") ("footcitetexts" "(([[{[[{")
+  ("smartcites" "(([[{[[{") ("Smartcites""(([[{[[{")
+  ("textcites"  "(([[{[[{") ("Textcites" "(([[{[[{")
+  ("supercites" "(([[{[[{")
+  ;; 3.8.4 Style-independent Commands
+  ("autocite" "*[[{")  ("Autocite" "*[[{")
+  ("autocites" "(([[{[[{") ("Autocites" "(([[{[[{")
+  ;; 3.8.5 Text Commands
+  ("citeauthor" "*[[{") ("Citeauthor" "*[[{") ("citetitle" "*[[{")
+  ("citeyear"   "*[[{") ("citedate" "*[[{")
+  ("citeurl""[[{")  ("parentext" "{")
+  ("brackettext" "{")
+  ;; 3.8.6 Special Commands
+  ("fullcite"  "[[{") ("footfullcite" "[[{")
+  ("volcite"   "[{[{")("Volcite"  "[{[{")
+  ("volcites"  "(([{[{[{[{")  ("Volcites" "(([{[{[{[{")
+  ("pvolcite"  "[{[{")("Pvolcite" "[{[{")
+  ("pvolcites" "(([{[{[{[{")  ("Pvolcites""(([{[{[{[{")
+  ("fvolcite"  "[{[{")("ftvolcite""[{[{")
+  ("fvolcites" "(([{[{[{[{")  ("

[AUCTeX-diffs] [elpa] externals/auctex 7872796 15/80: * tex-info.el (TeX-texinfo-mode): Set `add-log-current-defun-function' locally.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 787279682d44b345363b26fa7bc878266353789f
Author: Arash Esbati 
Commit: Arash Esbati 

* tex-info.el (TeX-texinfo-mode): Set `add-log-current-defun-function' 
locally.
---
 tex-info.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tex-info.el b/tex-info.el
index b1fd236..f7da017 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -702,8 +702,8 @@ value of `Texinfo-mode-hook'."
 
   (when (and (boundp 'add-log-current-defun-function)
 (fboundp 'texinfo-current-defun-name))
-(setq add-log-current-defun-function
- #'texinfo-current-defun-name))
+(set (make-local-variable 'add-log-current-defun-function)
+#'texinfo-current-defun-name))
 
   (TeX-add-symbols
'("acronym" "Acronym")

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex c8177fd 05/80: * style/listings.el: Require tex.el.

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit c8177fd0bcac1bb7a918295871a73944799199ee
Author: Arash Esbati 
Commit: Arash Esbati 

* style/listings.el: Require tex.el.
---
 style/listings.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/style/listings.el b/style/listings.el
index c488c51..598574c 100644
--- a/style/listings.el
+++ b/style/listings.el
@@ -46,6 +46,9 @@
 (eval-when-compile
   (require 'cl-lib))
 
+;; Needed for auto-parsing:
+(require 'tex)
+
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
  "font-latex"

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex 083964b 02/80: Delete auctex-pkg.el which is not needed for ELPA releases

2019-10-16 Thread Tassilo Horn
branch: externals/auctex
commit 083964b00d16e3aaf071399408e9c78443d5466a
Author: Arash Esbati 
Commit: Arash Esbati 

Delete auctex-pkg.el which is not needed for ELPA releases
---
 auctex-pkg.el | 9 -
 1 file changed, 9 deletions(-)

diff --git a/auctex-pkg.el b/auctex-pkg.el
deleted file mode 100644
index 58cc6ef..000
--- a/auctex-pkg.el
+++ /dev/null
@@ -1,9 +0,0 @@
-;; -*- no-byte-compile: t -*-
-
-(define-package "auctex" "12.1.1" "Integrated environment for *TeX*"
-  '((emacs "24.1") (cl-lib "0.5"))
-  :url "https://www.gnu.org/software/auctex/";
-  :keywords '("TeX" "LaTeX" "Texinfo" "ConTeXt" "docTeX"
- "preview-latex"))
-
-(setq byte-compile-warnings '(not unresolved))

___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] [elpa] externals/auctex updated (0c8d670 -> c5e47f8)

2019-10-16 Thread Tassilo Horn
tsdh pushed a change to branch externals/auctex.

  from  0c8d670   * auctex.el: Add requireds, keywords, and trailer
   new  5b97c38   Add dependencies file auctex-pkg.el
   new  083964b   Delete auctex-pkg.el which is not needed for ELPA releases
   new  18a09f0   * auctex.el: Add requireds, keywords, and trailer
   new  c531148   ; Improve previous change in auctex.el.in
   new  c8177fd   * style/listings.el: Require tex.el.
   new  3543e45   New styles for beamerarticle & beamerswitch triggering 
beamer
   new  78c0f09   Fix fontification of simple macros
   new  b82ab0c   Support up to 12 command arguments.
   new  1a83f1b   ; Remove `eval-when-compile' for latex.el
   new  4d0cf0f   ; Silence the compiler
   new  fcaef6b   Improve fontification of \href macro
   new  8a36595   Fix handling of function entries in `TeX-complete-list'
   new  686a8ed   Elaborate LaTeX math insertion command
   new  cd39966   ; Fix typos
   new  7872796   * tex-info.el (TeX-texinfo-mode): Set 
`add-log-current-defun-function' locally.
   new  ca0437d   Update keywords to biblatex v3.12
   new  5592f7d   Reset `TeX-PDF-from-DVI' if xetex engine is in use
   new  d4660dd   * style/xparse.el ("xparse"): Fix fontification of 
alternatives.
   new  2a642a4   Add support for ChangeLog entries for LaTeX files
   new  ddd7894   ; Fix last commit
   new  ab57cb0   Add new function `LaTeX-extract-key-value-label'
   new  1b6e513   ; Use `LaTeX-extract-key-value-label'
   new  23b3405   ; Fix typos
   new  a30db7c   Allow the user to customize which TeX commands are 
available in each mode.
   new  4776fd0   ; Remove compatibility code for older emacsen
   new  3b3c224   Remove compatibility code for xemacs
   new  b141ded   Remove compatibility code for xemacs
   new  400b002   Remove obsolete codes
   new  b62181c   ; Remove unused code fragment
   new  92c090d   Fix treatment of class and package options
   new  a8bbd1f   ; Fix document
   new  4611580   * tex-jp.el (AUCTeX-jp): Add keyword :link to info node.
   new  ff688b9   Stop depreciated usage of undeclared dynamic variable
   new  cdb98c6   Fix last commit
   new  0fd9848   Improve style/mflogo.el
   new  c92251c   Load hyperref.el in `LaTeX-beamer-class-options'
   new  a9eb155   Fix regression
   new  1b88eda   Fix autoload generation code (bug#35758)
   new  0cc2578   ; Use the correct variable `LaTeX-fontspec-font-features'
   new  945ffaf   Update style/babel.el to package version 3.31
   new  90fcbd4   Make navigation function robust
   new  af15814   ; * style/babel.el: Fix typo, remove code remainder
___
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs


Re: [AUCTeX-devel] Adjusting filecontents env to new LaTeX

2019-10-16 Thread Ikumi Keita
Hi Arash,

> Arash Esbati  writes:
> newest LaTeX has a change to filecontents environment:

> The filecontents environment now supports an optional argument in
> which you can specify that it is allowed to overwrite an already
> existing file; by default nothing is written if a file with the
> given name exists anywhere in the search tree. ...  Another change
> is that this environment is now allowed anywhere in the document,
> which means it provides everything (and more) of what the now
> obsolete filecontents package provided.

> This means a change to `LaTeX-env-contents which can look like this:

This hunk raised error when I actually apply it to patch command, so I
applied it manually.  The new function works just fine.

> One last thing to clarify is how do we like to handle the content in the
> environment?  I don't like to indent the content, so we could add
> `filecontents' and `filecontents*' to `LaTeX-verbatim-environments'
> which will also kill filling.  Other way is to add them to
> `LaTeX-document-regexp' which would allow filling.

I think filecontents(*) environments are cousins of verbatim env, so
AUCTeX should not indent automatically in them.

Regards,
Ikumi Keita

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Adjusting filecontents env to new LaTeX

2019-10-16 Thread jfbu

Le 15/10/2019 à 22:08, Arash Esbati a écrit :

Hi all,

newest LaTeX has a change to filecontents environment:

 The filecontents environment now supports an optional argument in
 which you can specify that it is allowed to overwrite an already
 existing file; by default nothing is written if a file with the
 given name exists anywhere in the search tree. ...  Another change
 is that this environment is now allowed anywhere in the document,
 which means it provides everything (and more) of what the now
 obsolete filecontents package provided.

This means a change to `LaTeX-env-contents which can look like this:

diff --git a/latex.el b/latex.el
index 514ffbb1..0b64e1bd 100644
--- a/latex.el
+++ b/latex.el
@@ -1227,14 +1227,22 @@ Just like array and tabular."
(LaTeX-insert-item))

  (defun LaTeX-env-contents (environment)
-  "Insert ENVIRONMENT with filename for contents."
-  (save-excursion
-(when (re-search-backward LaTeX-header-end nil t)
-  (error "Put %s environment before \\begin{document}" environment)))
-  (LaTeX-insert-environment environment
-   (concat TeX-grop
-   (TeX-read-string "File: ")
-   TeX-grcl))
+  "Insert ENVIRONMENT with optional argument and filename for contents."
+  (let* ((opt '("overwrite" "force" "nosearch"))
+(arg (mapconcat #'identity
+(TeX-completing-read-multiple
+ (TeX-argument-prompt t nil "Options")
+ (if (string= environment "filecontents*")
+ opt
+   (cons "noheader" opt)))
+",")))
+(LaTeX-insert-environment environment
+ (concat
+  (when (and arg (not (string= arg "")))
+(concat LaTeX-optop arg LaTeX-optcl))
+  TeX-grop
+  (TeX-read-string "File: ")
+  TeX-grcl)))
(delete-horizontal-space))

One last thing to clarify is how do we like to handle the content in the
environment?  I don't like to indent the content, so we could add
`filecontents' and `filecontents*' to `LaTeX-verbatim-environments'
which will also kill filling.  Other way is to add them to
`LaTeX-document-regexp' which would allow filling.

Any comments?

Hi Arash,
simply to approve that indeed the contents should not get indented
as spaces at start of lines will be obeyed in written-to-disk file
(spaces at end of lines disappear because TeX discards them
when tokenizing the line)
Best,
Jean-François


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel