[AUCTeX-devel] Suggested patch for AUCTeX

2014-11-02 Thread Stefan Monnier
Here's a patch mostly based on byte-compiler warnings.


Stefan


diff --git a/bib-cite.el b/bib-cite.el
index 612641c..f1a113b 100644
--- a/bib-cite.el
+++ b/bib-cite.el
@@ -1,7 +1,7 @@
 ;;; bib-cite.el --- test
 ;; bib-cite.el - Display \cite, \ref or \label / Extract refs from BiBTeX file.
 
-;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2004, 2005
+;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2004, 2005, 
2014
 ;; Free Software Foundation
 
 ;; Author:Peter S. Galbraith 
@@ -724,9 +724,6 @@ These are usually month abbreviations (or journals) defined 
in a style file."
   "*Regular expression for \\ref LaTeX commands that have a matching \\label.
 A opening curly bracket is appended to the regexp.")
 
-(defvar bib-cite-is-XEmacs
-  (not (null (save-match-data (string-match "XEmacs\\|Lucid" emacs-version)
-
 (defvar bib-cite-minor-mode nil)
 
 (defvar bib-highlight-mouse-keymap (make-sparse-keymap)
@@ -762,11 +759,11 @@ runs bib-find, and [mouse-3] runs bib-display."
(progn
  (bib-cite-setup-highlight-mouse-keymap)
  (bib-highlight-mouse)
- (when bib-cite-is-XEmacs
+ (when (featurep 'xemacs)
(make-local-hook 'after-change-functions))
  (add-hook 'after-change-functions
'bib-cite-setup-mouse-function nil t)))
-(if bib-cite-is-XEmacs
+(if (featurep 'xemacs)
(progn
  (or (local-variable-p 'current-menubar (current-buffer))
  (set-buffer-menubar current-menubar))
@@ -775,7 +772,7 @@ runs bib-find, and [mouse-3] runs bib-display."
;;;Undo the minor-mode
 ;; mouse overlay
 (cond
- (bib-cite-is-XEmacs
+ ((featurep 'xemacs)
   (while bib-ext-list
(delete-extent (car bib-ext-list))
(setq bib-ext-list (cdr bib-ext-list
@@ -786,7 +783,7 @@ runs bib-find, and [mouse-3] runs bib-display."
;; FIXME Hope no other package is using them in this buffer!
(remove-text-properties (point-min) (point-max)
'(mouse-face t local-map t)
-(if bib-cite-is-XEmacs
+(if (featurep 'xemacs)
(delete-menu-item '("BCite"))
 
 ;;This must be eval'ed when the LaTeX mode is in use.
@@ -803,7 +800,7 @@ runs bib-find, and [mouse-3] runs bib-display."
;;;display the bib-cite stuff (or a subset of it).
(let ((m (copy-keymap (current-local-map
  (cond
-  (bib-cite-is-XEmacs
+  ((featurep 'xemacs)
(set-keymap-name m 'bib-highlight-mouse-keymap)
(cond
 ;;action-key stuff from Vladimir Alexiev 
@@ -849,7 +846,7 @@ runs bib-find, and [mouse-3] runs bib-display."
   "Unconditionally turn on Bib Cite mode."
   (bib-cite-minor-mode 1))
 
-(defun bib-cite-setup-mouse-function (beg end old-len)
+(defun bib-cite-setup-mouse-function (beg end _old-len)
   (save-excursion
 (save-match-data
   (save-restriction
@@ -893,7 +890,7 @@ runs bib-find, and [mouse-3] runs bib-display."
 
 ;;; Add a menu entry to bibtex.el (Perhaps I should not do this).
 (cond
- ((and (string-match "XEmacs\\|Lucid" emacs-version)
+ ((and (featurep 'xemacs)
(or window-system
   (fboundp 'smart-menu)))  ;text menus by Bob Weiner
   ;;
@@ -927,7 +924,7 @@ runs bib-find, and [mouse-3] runs bib-display."
 (add-hook 'bibtex-mode-hook 'bib-cite-bibtex-mode-hook))
   )
 
- ((and (not (string-match "XEmacs\\|Lucid" emacs-version))
+ ((and (not (featurep 'xemacs))
(string-equal "19" (substring emacs-version 0 2))
(or window-system
   (fboundp 'tmm-menubar))) ; 19.30 - Will autoload if necessary
@@ -1160,7 +1157,7 @@ by using bib-apropos sequentially."
   (if (not the-text)
  (message "Sorry, no matches found.")
(with-output-to-temp-buffer "*Help*"
- (mapcar 'princ (nreverse the-text)))
+ (mapc #'princ (nreverse the-text)))
(bib-cite-fontify-help-as-bibtex)
(if bib-novice
(message
@@ -1236,18 +1233,19 @@ to create a bibtex file containing only the references 
used in the document."
   (put-text-property (point-min)(or limit (point-max))
 'face 'red-bold
 
-(defun bib-cite-fontify-help-xemacs (defaults)
-  (if (fboundp 'font-lock-set-defaults-1) ; >= XEmcas 19.14
-  (progn
-   (set-buffer "*Help*")
-   (setq font-lock-defaults-computed nil
- font-lock-keywords nil)
-   (font-lock-set-defaults-1
-(and defaults (font-lock-find-font-lock-defaults defaults)))
-   (font-lock-fontify-buffer)
-   (setq font-lock-defaults-computed nil
- font-lock-keywords nil)
-   (font-lock-set-defaults-1
+(when (featurep 'xemacs)
+  (defun bib-cite-fontify-help-xemacs (defaults)
+(if (fboundp 'font-lock-set-defaults-1) ; >= XEmacs 19.14
+(progn
+  (set-buffer "*Help*")
+  (setq font-lock-defaults-computed nil
+  

Re: [AUCTeX-devel] Suggested patch for AUCTeX

2014-11-02 Thread Tassilo Horn
Stefan Monnier  writes:

Hi Stefan,

> Here's a patch mostly based on byte-compiler warnings.

I'm happy to apply it.  Do you also have a corresponding ChangeLog
entry?

Bye,
Tassilo


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


Re: [AUCTeX-devel] Small patch for MinionPro.el

2014-11-02 Thread Arash Esbati
Hi Mosè,

"Mosè Giordano"  writes:

> Since this package is loaded by
> MinionPro.sty, you should also add an appropriate hook in
> MinionPro.el, and remove from that style file the macros defined in
> fontaxes.el.  Since this is a new style file, you should also add the
> header (copyright notice and a short description of the file).

Sorry, but it took longer, but here we go.  Some other style file 
are on the way as well.

Best, Arash

2014-10-31  Arash Esbati  

* style/MinionPro.el (TeX-add-symbols): Remove `figureversion',
`textsw', `textssc', `sscshape' and `swshape'.
(TeX-run-style-hooks): Added "fontaxes".

* style/MinionPro.el (LaTeX-MinionPro-package-options): Added
additional options from v2.3 of `MinionPro.sty', available from




--- MinionPro.el~   2014-11-01 13:12:01.932831100 +0100
+++ MinionPro.el2014-11-01 22:19:23.234791000 +0100
@@ -1,6 +1,6 @@
 ;;; MinionPro.el -- AUCTeX style for MinionPro.sty
 
-;; Copyright (C) 2005 Free Software Foundation, Inc.
+;; Copyright (C) 2005, 2014 Free Software Foundation, Inc.
 
 ;; Author: Mark Trettin 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,39 +26,30 @@
 
 ;;; Commentary: 
 
-;; This file adds support for `MinionPro.sty' (v2.0). 
+;; This file adds support for `MinionPro.sty' (v2.3) from 2012/08/03.
+;; The latest version of MinionPro is available as part of FontPro
+;; bundle from .
 
-;;; Code
+;;; Code:
 
 (TeX-add-style-hook
  "MinionPro"
  (lambda ()
+
+   ;; New symbols
(TeX-add-symbols
-;; New symbols
-'("figureversion"
-  (TeX-arg-eval completing-read "Figure style: "
-   '(("text") ("osf")
- ("lining") ("lf")
- ("tabular") ("tab")
- ("proportional") ("prop"
 '("smallfrac" "Numerator" "Denominator")
-'("slantfrac" "Numerator" "Denominator")
-;; IMHO they should be added to the other \text.. and \..shape commands
-'("textsw" 1)
-'("textssc" 1)
-"sscshape"
-"swshape")
+'("slantfrac" "Numerator" "Denominator"))
+
;; Run style hook for amsmath which is loaded via MnSymbol
-   (TeX-run-style-hooks "amsmath")
+   (TeX-run-style-hooks "amsmath" "fontaxes" "textcomp")
+
;; Fontification
(when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
  (font-latex-add-keywords '(("smallfrac" "{{")
-   ("slantfrac" "{{")
-   ("textsw" "{")
-   ("textssc" "{"))
- 'textual)
- (font-latex-add-keywords '(("figureversion" "{")) 'variable)))
+   ("slantfrac" "{{"))
+ 'textual)))
  LaTeX-dialect)
 
 (defvar LaTeX-MinionPro-package-options
@@ -66,7 +57,13 @@
 "slides" "textosf" "mathosf" "osf" "textlf" "mathlf" "lf"
 "mathtabular" "mnsy" "cmsy" "swash" "abx" "amsbb" "fourierbb"
 "lucidabb" "mixedgreek" "italicgreek" "frenchmath" "minionint"
-"footnotefigures")
-"Package options for the MinionPro package.")
+"footnotefigures"
+
+;; Additional options in v2.1
+"onlytext" "onlymath" "loosequotes" "openg" "normalsize" "nonormalsize"
+
+;; Additional option in v2.2
+"scale")
+  "Package options for the MinionPro package.")
 
 ;;; MinionPro.el ends here


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


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

2014-11-02 Thread Tassilo Horn
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
   via  c2d35852619f5a553ebfea87f3dfb161b98c5b61 (commit)
  from  19cb9af5a6f0bd810d97ab1d9645cc0a72ac2db7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit c2d35852619f5a553ebfea87f3dfb161b98c5b61
Author: Arash Esbati 
Date:   Sun Nov 2 20:32:57 2014 +0100

Update MinionPro style.

* style/MinionPro.el (TeX-add-symbols): Remove `figureversion',
`textsw', `textssc', `sscshape' and `swshape'.
(TeX-run-style-hooks): Added "fontaxes".

* style/MinionPro.el (LaTeX-MinionPro-package-options): Added
additional options from v2.3 of `MinionPro.sty', available from


Signed-off-by: Tassilo Horn 

diff --git a/ChangeLog b/ChangeLog
index 00cce5d..96a8165 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-11-02  Arash Esbati  
+
+   * style/MinionPro.el (TeX-add-symbols): Remove `figureversion',
+   `textsw', `textssc', `sscshape' and `swshape'.
+   (TeX-run-style-hooks): Added "fontaxes".
+
+   * style/MinionPro.el (LaTeX-MinionPro-package-options): Added
+   additional options from v2.3 of `MinionPro.sty', available from
+   
+
 2014-11-01  Davide G. M. Salvetti  
 
 * tex.el (TeX-file-line-error): New customizable option.
diff --git a/style/MinionPro.el b/style/MinionPro.el
index 3441911..75dc931 100644
--- a/style/MinionPro.el
+++ b/style/MinionPro.el
@@ -1,6 +1,6 @@
 ;;; MinionPro.el -- AUCTeX style for MinionPro.sty
 
-;; Copyright (C) 2005 Free Software Foundation, Inc.
+;; Copyright (C) 2005, 2014 Free Software Foundation, Inc.
 
 ;; Author: Mark Trettin 
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,39 +26,30 @@
 
 ;;; Commentary: 
 
-;; This file adds support for `MinionPro.sty' (v2.0). 
+;; This file adds support for `MinionPro.sty' (v2.3) from 2012/08/03.
+;; The latest version of MinionPro is available as part of FontPro
+;; bundle from .
 
-;;; Code
+;;; Code:
 
 (TeX-add-style-hook
  "MinionPro"
  (lambda ()
+
+   ;; New symbols
(TeX-add-symbols
-;; New symbols
-'("figureversion"
-  (TeX-arg-eval completing-read "Figure style: "
-   '(("text") ("osf")
- ("lining") ("lf")
- ("tabular") ("tab")
- ("proportional") ("prop"
 '("smallfrac" "Numerator" "Denominator")
-'("slantfrac" "Numerator" "Denominator")
-;; IMHO they should be added to the other \text.. and \..shape commands
-'("textsw" 1)
-'("textssc" 1)
-"sscshape"
-"swshape")
+'("slantfrac" "Numerator" "Denominator"))
+
;; Run style hook for amsmath which is loaded via MnSymbol
-   (TeX-run-style-hooks "amsmath")
+   (TeX-run-style-hooks "amsmath" "fontaxes" "textcomp")
+
;; Fontification
(when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
  (font-latex-add-keywords '(("smallfrac" "{{")
-   ("slantfrac" "{{")
-   ("textsw" "{")
-   ("textssc" "{"))
- 'textual)
- (font-latex-add-keywords '(("figureversion" "{")) 'variable)))
+   ("slantfrac" "{{"))
+ 'textual)))
  LaTeX-dialect)
 
 (defvar LaTeX-MinionPro-package-options
@@ -66,7 +57,13 @@
 "slides" "textosf" "mathosf" "osf" "textlf" "mathlf" "lf"
 "mathtabular" "mnsy" "cmsy" "swash" "abx" "amsbb" "fourierbb"
 "lucidabb" "mixedgreek" "italicgreek" "frenchmath" "minionint"
-"footnotefigures")
-"Package options for the MinionPro package.")
+"footnotefigures"
+
+;; Additional options in v2.1
+"onlytext" "onlymath" "loosequotes" "openg" "normalsize" "nonormalsize"
+
+;; Additional option in v2.2
+"scale")
+  "Package options for the MinionPro package.")
 
 ;;; MinionPro.el ends here

---

Summary of changes:
 ChangeLog  |   10 ++
 style/MinionPro.el |   45 +
 2 files changed, 31 insertions(+), 24 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

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


Re: [AUCTeX-devel] Small patch for MinionPro.el

2014-11-02 Thread Tassilo Horn
"Arash Esbati"  writes:

Hi Arash,

>> Since this package is loaded by MinionPro.sty, you should also add an
>> appropriate hook in MinionPro.el, and remove from that style file the
>> macros defined in fontaxes.el.  Since this is a new style file, you
>> should also add the header (copyright notice and a short description
>> of the file).
>
> Sorry, but it took longer, but here we go.

Thanks, committed.

> Some other style file are on the way as well.

Great, let them come.

Bye,
Tassilo


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


[AUCTeX-diffs] GNU AUCTeX branch, simplify-TeX-parse-error, updated. d93eebebe680629b445692fea9db925164e906b4

2014-11-02 Thread Tassilo Horn
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, simplify-TeX-parse-error has been updated
   via  d93eebebe680629b445692fea9db925164e906b4 (commit)
   via  c2d35852619f5a553ebfea87f3dfb161b98c5b61 (commit)
   via  19cb9af5a6f0bd810d97ab1d9645cc0a72ac2db7 (commit)
   via  c95bfb03d0cce7c366d54274714dffb1f62dc808 (commit)
   via  5211b5e11d0c54ee66ba764b547ab1042d49ed91 (commit)
   via  4f02339fd36004e9e8c53e475a9cfe0e012b7780 (commit)
   via  c60dfc155b25c390a1d85783bc67942389539cea (commit)
   via  700587fe36b0104eba7dd30bef869ba3349a66d1 (commit)
   via  9917ced65cb5679387f2fa858e8618f2d8a23f18 (commit)
   via  1ac5d751a517e4ca085f9fd916e22a167f0ef222 (commit)
   via  05ff7de0ed212018c8daaf7d110b1938d3663fd7 (commit)
   via  fc4d8f98ad90ddfccf4bad3f9669aac165ddde05 (commit)
   via  6c60d80ab592af30c1f3a79adb6bdddab879aad9 (commit)
   via  7afab11e35da14264cb416574d3df31f06e3626e (commit)
   via  435d80fb12ba99b435ff252dca0521e75f178ef2 (commit)
  from  1950012155d539f05c393dae3d6e93548bbc57b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit d93eebebe680629b445692fea9db925164e906b4
Merge: c95bfb0 c2d3585
Author: Tassilo Horn 
Date:   Sun Nov 2 20:36:48 2014 +0100

Merge branch 'master' into simplify-TeX-parse-error


commit c95bfb03d0cce7c366d54274714dffb1f62dc808
Merge: fc4d8f9 5211b5e
Author: Tassilo Horn 
Date:   Sat Nov 1 07:18:18 2014 +0100

Merge branch 'master' into simplify-TeX-parse-error


commit fc4d8f98ad90ddfccf4bad3f9669aac165ddde05
Merge: 1950012 6c60d80
Author: Tassilo Horn 
Date:   Thu Oct 23 07:50:38 2014 +0200

Merge branch 'master' into simplify-TeX-parse-error


---

Summary of changes:
 .gitignore|2 +-
 ChangeLog |   87 +
 Makefile.in   |   16 +++--
 RELEASE   |  115 ++---
 aclocal.m4|4 +-
 configure.ac  |   10 ++-
 doc/Makefile.in   |   22 +-
 doc/auctex.texi   |9 ++-
 doc/changes.texi  |   11 +++
 doc/tex-ref.tex   |   11 ++--
 latex.el  |   80 +++---
 preview/ChangeLog |   13 
 preview/latex/preview.dtx |2 +-
 preview/{preview.el => preview.el.in} |   58 ++---
 style/MinionPro.el|   45 ++---
 tex.el|   13 +++-
 16 files changed, 346 insertions(+), 152 deletions(-)
 rename preview/{preview.el => preview.el.in} (99%)


hooks/post-receive
-- 
GNU AUCTeX

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


[AUCTeX-devel] Support for MyriadPro.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for MyriadPro.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/MyriadPro.el: New file.



;;; MyriadPro.el --- AUCTeX style for `MyriadPro.sty' (v0.5)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-21
;; 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 `MyriadPro.sty' (v0.5) from 2013/04/20.
;; The latest version of MyriadPro is available as part of FontPro
;; bundle from .  `MyriadPro.sty' is
;; not part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "MyriadPro"
 (lambda ()

   ;; Run style hook for various packages loaded by MyriadPro
   (TeX-run-style-hooks "textcomp" "amsmath" "fontaxes" "mdsymbol")

   ;; New symbols
   (TeX-add-symbols
'("smallfrac" "Numerator" "Denominator")
'("slantfrac" "Numerator" "Denominator")
'("boldsymbol" "Symbol"))

   ;; `\mathversion' is available with sansmath option
   (when (LaTeX-provided-package-options-member "MyriadPro" "sansmath")
 (TeX-add-symbols
  '("mathversion"
(TeX-arg-eval completing-read "Math version: "
  '(("sans")("sansbold")
("sanstabular") ("sansboldtabular"))

   ;; Fontification
   (when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
 (font-latex-add-keywords '(("smallfrac"   "{{")
("slantfrac"   "{{"))
  'textual)
 (font-latex-add-keywords '(("mathversion" "{"))
  'variable)))
 LaTeX-dialect)

(defvar LaTeX-MyriadPro-package-options
  '(;; Font selection
"smallfamily" "medfamily" "onlytext" "onlymath" "math" "sansmath"

;; Figure selection 
"textosf" "mathosf" "osf" "textlf" "mathlf" "lf" "mathtabular"

;; Calligraphic fonts
"cmsy" "swash" "abx"

;; Blackboard bold letters
"amsbb" "fourierbb" "lucidabb"

;; Greek letters
"mixedgreek" "italicgreek" "frenchmath"

;; Miscellaneous options
"scale" "loosequotes" "footnotefigures"

;; Additional mathversions
"sansmath")
  "Package options for the MyriadPro package.")

;;; MyriadPro.el ends here


-- 
Arash Esbati

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


[AUCTeX-devel] Support for textcomp.sty

2014-11-02 Thread Arash Esbati
Hi,

I could not find a support file for textcomp.sty, so I wrote one.  I
hope I am not overseeing the obvious.  Best, Arash


2014-10-31  Arash Esbati  

* style/textcomp.el: New file.


;;; textcomp.el --- AUCTeX style for `textcomp.sty' (v1.99g)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-25
;; 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 `textcomp.sty' (v1.99g) from 2005/09/27.
;; `textcomp.sty' is a standard LaTeX package and part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "textcomp"
 (lambda ()
   (TeX-add-symbols
'("capitalgrave" 0) ; Type: Accent -- Slot: 0
'("capitalacute" 0) ; Type: Accent -- Slot: 1
'("capitalcircumflex"0) ; Type: Accent -- Slot: 2
'("capitaltilde" 0) ; Type: Accent -- Slot: 3
'("capitaldieresis"  0) ; Type: Accent -- Slot: 4
'("capitalhungarumlaut"  0) ; Type: Accent -- Slot: 5
'("capitalring"  0) ; Type: Accent -- Slot: 6
'("capitalcaron" 0) ; Type: Accent -- Slot: 7
'("capitalbreve" 0) ; Type: Accent -- Slot: 8
'("capitalmacron"0) ; Type: Accent -- Slot: 9
'("capitaldotaccent" 0) ; Type: Accent -- Slot: 10
'("t"0) ; Type: Accent -- Slot: 26
'("capitaltie"   0) ; Type: Accent -- Slot: 27
'("newtie"   0) ; Type: Accent -- Slot: 28
'("capitalnewtie"0) ; Type: Accent -- Slot: 29
'("textcapitalcompwordmark"  0) ; Type: Symbol -- Slot: 23
'("textascendercompwordmark" 0) ; Type: Symbol -- Slot: 31
'("textquotestraightbase"0) ; Type: Symbol -- Slot: 13
'("textquotestraightdblbase" 0) ; Type: Symbol -- Slot: 18
'("texttwelveudash"  0) ; Type: Symbol -- Slot: 21
'("textthreequartersemdash"  0) ; Type: Symbol -- Slot: 22
'("textleftarrow"0) ; Type: Symbol -- Slot: 24
'("textrightarrow"   0) ; Type: Symbol -- Slot: 25
'("textblank"0) ; Type: Symbol -- Slot: 32
'("textdollar"   0) ; Type: Symbol -- Slot: 36
'("textquotesingle"  0) ; Type: Symbol -- Slot: 39
'("textasteriskcentered" 0) ; Type: Symbol -- Slot: 42
'("textdblhyphen"0) ; Type: Symbol -- Slot: 45
'("textfractionsolidus"  0) ; Type: Symbol -- Slot: 47
'("textzerooldstyle" 0) ; Type: Symbol -- Slot: 48
'("textoneoldstyle"  0) ; Type: Symbol -- Slot: 49
'("texttwooldstyle"  0) ; Type: Symbol -- Slot: 50
'("textthreeoldstyle"0) ; Type: Symbol -- Slot: 51
'("textfouroldstyle" 0) ; Type: Symbol -- Slot: 52
'("textfiveoldstyle" 0) ; Type: Symbol -- Slot: 53
'("textsixoldstyle"  0) ; Type: Symbol -- Slot: 54
'("textsevenoldstyle"0) ; Type: Symbol -- Slot: 55
'("texteightoldstyle"0) ; Type: Symbol -- Slot: 56
'("textnineoldstyle" 0) ; Type: Symbol -- Slot: 57
'("textlangle"   0) ; Type: Symbol -- Slot: 60
'("textminus"0) ; Type: Symbol -- Slot: 61
'("textrangle"   0) ; Type: Symbol -- Slot: 62
'("textmho"  0) ; Type: Symbol -- Slot: 77
'("textbigcircle"0) ; Type: Symbol -- Slot: 79
'("textohm"  0) ; Type: Symbol -- Slot: 87
'("textlbrackdbl"0) ; Type: Symbol -- Slot: 91
'("textrbrackdbl"0) ; Type: Symbol -- Slot: 93
'("textuparrow"  0) ; Type: Symbol -- Slot: 94
'("textdownarrow"0) ; Type: Symbol -- Slot: 95
'("textasciigrave"   0) ; Type: Symbol -- Slot: 96
'("textborn" 0) ; Type: Symbol -- Slot: 98
'("textdivorced" 0) ; Type: Symbol -- Slot: 99
'("textdied" 0) ; Type: Symbol -- Slot: 100
'("textleaf" 0) ; Type: Symbol -- Slot: 108
'("

[AUCTeX-devel] Support for zlmtt.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for zlmtt.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/zlmtt.el: New file.


;;; zlmtt.el --- AUCTeX style for `zlmtt.sty' (v1.01)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-31
;; 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 `zlmtt.sty' (v1.01) from 2014/06/28.
;; `zlmtt.sty' is part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "zlmtt"
 (lambda ()

   ;; New symbols
   (TeX-add-symbols
'("proptt" t)   ; proportional typewriter
'("monott" t)   ; monospace typewriter
'("lctt"   t))  ; light condensed typewriter

   ;; Fontification
   (when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
 (font-latex-add-keywords '(("proptt"   "{")
("monott"   "{")
("lctt" "{"))
  'textual)))
 LaTeX-dialect)

(defvar LaTeX-zlmtt-package-options
  '("light" "l" "lightcondensed" "lc" "med" "m"
"proportional" "p" "scaled")
  "Package options for the zlmtt package.")

;;; zlmtt.el ends here


-- 
Arash Esbati

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


[AUCTeX-devel] Support for AnonymousPro.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for AnonymousPro.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/AnonymousPro.el: New file.


;;; AnonymousPro.el --- AUCTeX style for `AnonymousPro.sty' (v2.1)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-30
;; 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 `AnonymousPro.sty' (v2.1) from
;; 2014/03/22.  `AnonymousPro.sty' is part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "AnonymousPro"
 (lambda ()

   ;; Run style hook for textcomp
   (TeX-run-style-hooks "textcomp")

   ;; New symbols
   (TeX-add-symbols
"ANPapplelogo"
"ANPappleopen"
"ANPapproxequal"
"ANPback"
"ANPblackdiamond"
"ANPcheckmark"
"ANPcopy"
"ANPellipsis"
"ANPendtab"
"ANPerasetotheright"
"ANPgreaterequal"
"ANPHbar"
"ANPhbar"
"ANPinfinity"
"ANPinsert"
"ANPintegral"
"ANPlessequal"
"ANPlozenge"
"ANPnotequal"
"ANPoptionkey"
"ANPpartialdiff"
"ANPPi"
"ANPpi"
"ANPproduct"
"ANPshift"
"ANPshiftlock"
"ANPSigma"
"ANPsigma"
"ANPsigmaone"
"ANPsummation"
"ANPtab"
"ANPReturnSign"
"ANPShoulderedOpenBox"
"ANPUpArrowHead"
"ANPInsertSign"
"ANPUpArrowHeadBars"
"ANPHelm"
"ANPOpenBox"
"ANPDelta"
"ANPverticaltab"
"ANPNumeroSign"))
 LaTeX-dialect)

(defvar LaTeX-AnonymousPro-package-options
  '("ttdefault" "scale")
  "Package options for the AnonymousPro package.")

;;; AnonymousPro.el ends here


-- 
Arash Esbati

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


[AUCTeX-devel] Support for eso-pic.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for eso-pic.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/eso-pic.el: New file.


;;; eso-pic.el --- AUCTeX style for `eso-pic.sty' (v2.0d)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-29
;; 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 `eso-pic.sty' (v2.0d) from 2013/10/06.
;; `eso-pic.sty' is part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "eso-pic"
 (lambda ()

   ;; Run style hook for eso-pic
   (TeX-run-style-hooks "atbegshi")

   ;; New symbols
   (TeX-add-symbols

;; Basic commands
'("AddToShipoutPictureBG"   t)
'("AddToShipoutPictureBG*"  t)
'("AddToShipoutPictureFG"   t)
'("AddToShipoutPictureFG*"  t)
'("ClearShipoutPictureBG"   0)
'("ClearShipoutPictureFG"   0)

;; Helper macros
'("AtPageUpperLeft" t)
'("AtPageLowerLeft" t)
'("AtPageCenter"t)
'("AtTextUpperLeft" t)
'("AtTextLowerLeft" t)
'("AtTextCenter"t)
'("AtStockUpperLeft"t)
'("AtStockLowerLeft"t)
'("AtStockCenter"   t)

;; Aux. commands
'("LenToUnit"   t) 
'("gridSetup" 
  [ "Grid unit name" ]  "Grid unit""Label factor" 
  "Grid delta"  "Grid Delta"   "Gap"))

   ;; Declare expert macro
   (TeX-declare-expert-macros
"eso-pic"
"gridSetup" "LenToUnit"))
 LaTeX-dialect)

(defvar LaTeX-eso-pic-package-options
  '(;;
("pscoord"  ("true" "false"))
("texcoord" ("true" "false"))
("grid" ("true" "false"))
("gridunit" ("mm" "in" "bp" "pt"))
("gridcolor")
("subgridcolor")
("subgridstyle" ("solid" "dotted"))
("dvips"("true" "false")))
  "Package options for the eso-pic package.")

(defun LaTeX-eso-pic-package-options nil
  "Prompt for package options for the eso-pic package."
  (TeX-read-key-val t LaTeX-eso-pic-package-options))

;;; eso-pic.el ends here


-- 
Arash Esbati

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


[AUCTeX-devel] Support for fontaxes.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for fontaxes.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/fontaxes.el: New file.


;;; fontaxes.el --- AUCTeX style for `fontaxes.sty' version v1.0d

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Maintainer: auctex-devel@gnu.org
;; Author: Arash Esbati 
;; Created: 2014-10-12
;; 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 `fontaxes.sty' version v1.0d from
;; 2014/03/23.  `fontaxes.sty' is part of TeXLive.

;; Thanks to Mosè Giordano for his perceptive comments on
;; implementation of "figureversion".

;;; Code:

(TeX-add-style-hook
 "fontaxes"
 (lambda ()
   (TeX-add-symbols
;; Various font shapes
'("swshape"   -1)  ; swash shape
'("sscshape"  -1)  ; spaced small caps
'("fontprimaryshape"   t)
'("fontsecondaryshape" t)
'("swdefault"  t)
'("sscdefault" t)
'("ulcdefault" t)
 
;; Figure versions
'("figureversion"
  (TeX-arg-eval mapconcat 'identity 
(TeX-completing-read-multiple
 "Style, alignment: "
 '(("text") ("osf")
   ("lining") ("lf")
   ("tabular") ("tab")
   ("proportional") ("prop"))) ","))
'("txfigures" -1)  ; style: text figures (osf)
'("lnfigures" -1)  ; style: lining figures
'("tbfigures" -1)  ; alignment: tabular figures
'("prfigures" -1)  ; alignment: proportional figures
'("fontfigurestyle"
  (TeX-arg-eval completing-read "Style: "
'(("text") ("lining"
'("fontfigurealignment"
  (TeX-arg-eval completing-read "Alignment: "
'(("tabular") ("proportional"
'("fontbasefamily" t)

;; Math versions
'("boldmath" -1)  ; math weight
'("unboldmath"   -1)  ; 
'("tabularmath"  -1)  ; math figure alignment
'("proportionalmath" -1)  ; 
'("mathweight"
  (TeX-arg-eval completing-read "Math weight: "
'(("bold") ("normal"
'("mathfigurealignment"
  (TeX-arg-eval completing-read "Math figure alignment: "
'(("tabular") ("proportional"

;; Additional commands
'("textsw"  t)
'("textssc" t)
'("textulc" t)
'("textfigures" t)
'("liningfigures"   t)
'("tabularfigures"  t)
'("proportionalfigures" t))

   ;; Fontification
   (when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
 (font-latex-add-keywords '(("textfigures" "{")
("liningfigures"   "{")
("tabularfigures"  "{")
("proportionalfigures" "{"))
  'textual)
 (font-latex-add-keywords '(("textsw"  "{")
("textssc" "{")
("textulc" "{"))
  'bold-command)
 (font-latex-add-keywords '(("swshape" "")
("sscshape"""))
  'bold-declaration)
 (font-latex-add-keywords '(("figureversion"   "{"))
  'variable)))
 LaTeX-dialect)

(defvar LaTeX-fontaxes-package-options nil
  "Package options for the fontaxes package.")

;;; fontaxes.el ends here


-- 
Arash Esbati

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


[AUCTeX-devel] Support for mdsymbol.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for mdsymbol.sty, which is required by
MyriadPro.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/mdsymbol.el: New file.

;;; mdsymbol.el --- AUCTeX style for `mdsymbol.sty' (v0.5)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-25
;; 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 `mdsymbol.sty' (v0.5) from 2012/11/18.
;; The latest version of is available from .
;; `mdsymbol.sty' is part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "mdsymbol"
 (lambda ()

   ;; Run style hook for various packages loaded by mdsymbol
   (TeX-run-style-hooks "textcomp" "amsmath")

   ;; New symbols
   (TeX-add-symbols

;; These macros take one argument; we follow latex.el and use the
;; t specifier for the argument; over- and underbrace and sqrt are
;; already available
'("overgroup"  t)
'("undergroup" t)
'("overlinesegment"  t)
'("overleftharpoon"  t)
'("overrightharpoon" t)
'("underlinesegment" t)
;;
'("widehat"   t)
'("widetilde" t)
'("wideparen" t)
'("vec"   t)
'("middlebar" t)
'("middleslash"   t)
'("strokethrough" t)
;;
'("overlining"t))

   ;; The following macros are usually defined, since retainmissing defaults to 
false
   (unless (or (LaTeX-provided-package-options-member "mdsymbol" 
"retainmissing=true")
   (LaTeX-provided-package-options-member "mdsymbol" 
"retainmissing"))
 (TeX-add-symbols
  '("dagger")
  '("ddagger")
  '("mathparagraph")
  '("mathsection")
  '("mathdollar")
  '("mathsterling")
  '("yen")
  '("hbar")
  '("hslash")
  '("circledR")
  '("circledS")
  '("lambdabar")
  '("lambdaslash"
 LaTeX-dialect)

(defvar LaTeX-mdsymbol-package-options
  '(;;
("normalweight"  ("Light" "Regular" "autolight" "autoregular"))
("boldweight"("Semibold" "Bold" "autosemibold"))
("onlysansmath"  ("true" "false"))
("retainmissing" ("true" "false"))
("scale")
("largedelims"   ("true" "false")))
  "Package options for the mdsymbol package.")

(defun LaTeX-mdsymbol-package-options nil
  "Prompt for package options for the mdsymbol package."
  (TeX-read-key-val t LaTeX-mdsymbol-package-options))

;;; mdsymbol.el ends here



-- 
Arash Esbati

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


[AUCTeX-devel] Support for XCharter.sty

2014-11-02 Thread Arash Esbati
Hi,

this file adds support for XCharter.sty.  Best, Arash


2014-10-31  Arash Esbati  

* style/XCharter.el: New file.


;;; XCharter.el --- AUCTeX style for `XCharter.sty' (v1.05)

;; Copyright (C) 2014 Free Software Foundation, Inc.

;; Author: Arash Esbati 
;; Maintainer: auctex-devel@gnu.org
;; Created: 2014-10-30
;; 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 `XCharter.sty' (v1.05) from 2014/07/03.
;; `XCharter.sty' is part of TeXLive.

;;; Code:

(TeX-add-style-hook
 "XCharter"
 (lambda ()

   ;; Run style hook for various packages loaded by XCharter
   (TeX-run-style-hooks "textcomp" "fontaxes")

   ;; New symbols
   (TeX-add-symbols

;; Only preamble commands
'("useosf"  0)
'("useosfI" 0)

;; Text commands
'("textsu" t)   ; superior figures
'("sustyle"   -1)   ; 
'("textlf" t)   ; lining figures
'("lfstyle"   -1)   ; 
'("textosf"t)   ; oldstyle figures
'("textosfI"   t)   ; oldstyle figures alternate
'("osfstyle"  -1))  ; whatever oldstyle option is in force
  
   ;; Fontification
   (when (and (featurep 'font-latex)
  (eq TeX-install-font-lock 'font-latex-setup))
 (font-latex-add-keywords '(("textsu""{")
("textlf""{")
("textosf"   "{")
("textosfI"  "{"))
  'textual)
 (font-latex-add-keywords '(("sustyle"   "")
("lfstyle"   "")
("osfstyle"  ""))
  'italic-declaration)))
 LaTeX-dialect)

(defvar LaTeX-XCharter-package-options
  '("lining" "lf" "oldstyle" "osf" "oldstyleI" "osfI"
"scaled" "sups")
  "Package options for the XCharter package.")

;;; XCharter.el ends here


-- 
Arash Esbati

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


Re: [AUCTeX-devel] Support for AnonymousPro.sty

2014-11-02 Thread Tassilo Horn
Hi Arash,

thanks for all the new styles.  Could you please re-send them as a
combined git patch?  E.g., in your auctex clone, git-add the new files
(and the changed files), commit, and then do "git format-patch origin
master" to get a patch?

And please also add the new styles to STYLESRC in Makefile.in.

Bye,
Tassilo


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