Re: Release of 11.55

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* David Kastrup (2005-02-01) writes:

> What with the shy regexp stuff and this mixed report, I am too stupid
> to get the message.  Postpone 11.55 or not?

If you can arrange it with your time, let's wait what the XEmacs
people have to say.  If you don't want to wait, you can release 11.55
right away after swapping the current definition of
`LaTeX-auto-class-regexp-list' with the following (I really hate to
clutter the code with such workarounds.):

(defvar LaTeX-auto-class-regexp-list
  (let ((list
	 '( ;; \RequirePackage[<options>]{<package>}[<date>]
	   ("\\\\Require\\(Package\\)\\(\\[\\([^#\\.%]*?\\)\\]\\)?\
{\\([^#\\.\n\r]+?\\)}"
	    (3 4 1) LaTeX-auto-style)
	   ;; \RequirePackageWithOptions{<package>}[<date>],
	   ("\\\\Require\\(Package\\)WithOptions\\(\\){\\([^#\\.\n\r]+?\\)}"
	    (2 3 1) LaTeX-auto-style)
	   ;; \LoadClass[<options>]{<package>}[<date>]
	   ("\\\\Load\\(Class\\)\\(\\[\\([^#\\.%]*?\\)\\]\\)?\
{\\([^#\\.\n\r]+?\\)}"
	    (3 4 1) LaTeX-auto-style)
	   ;; \LoadClassWithOptions{<package>}[<date>]
	   ("\\\\Load\\(Class\\)WithOptions\\(\\){\\([^#\\.\n\r]+?\\)}"
	    (2 3 1) LaTeX-auto-style)
	   ;; \DeclareRobustCommand{<cmd>}[<num>][<default>]{<definition>},
	   ;; \DeclareRobustCommand*{<cmd>}[<num>][<default>]{<definition>}
	   ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?\
\\[\\([0-9]+\\)\\]\\[\\([^\n\r]*?\\)\\]"
	    (1 2 3) LaTeX-auto-optional)
	   ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?\
\\[\\([0-9]+\\)\\]"
	    (1 2) LaTeX-auto-arguments)
	   ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?"
	    1 TeX-auto-symbol))))
    ;; At least XEmacs 21.4.16 segfaults when it encounters shy groups.
    (unless (featurep 'xemacs)
      ;; Patterns for commands described in "LaTeX2e font selection" (fntguide)
      (add-to-list 'list '("\\\\DeclareMath\
\\(?:Symbol\\|Delimiter\\|Accent\\|Radical\\){?\\\\\\([A-Za-z]+\\)}?"
			   1 TeX-auto-symbol) t)
      (add-to-list 'list '("\\\\\\(Declare\\|Provide\\)Text\
\\(?:Command\\|Symbol\\|Accent\\|Composite\\){?\\\\\\([A-Za-z]+\\)}?"
			   1 TeX-auto-symbol) t)
      (add-to-list 'list '("\\\\Declare\\(?:Text\\|Old\\)FontCommand\
{?\\\\\\([A-Za-z]+\\)}?"
			   1 TeX-auto-symbol) t))
    list)
  "List of regular expressions matching macros in LaTeX classes and packages.")

-- 
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.