[AUCTeX-diffs] Changes to auctex/style/siunitx.el,v
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/28 08:22:11 Index: style/siunitx.el === RCS file: /sources/auctex/auctex/style/siunitx.el,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- style/siunitx.el27 Dec 2012 19:59:45 - 1.2 +++ style/siunitx.el28 Jan 2013 08:22:10 - 1.3 @@ -1,6 +1,6 @@ -;;; siunitx.el --- AUCTeX style for `siunitx.sty' version 2.5m. +;;; siunitx.el --- AUCTeX style for `siunitx.sty' version 2.5o. -;; Copyright (C) 2012 Free Software Foundation, Inc. +;; Copyright (C) 2012-2013 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Author: Mosè Giordano giordano.m...@libero.it @@ -25,7 +25,7 @@ ;;; Commentary: -;; This file adds support for `siunitx.sty' version 2.5m. +;; This file adds support for `siunitx.sty' version 2.5o. ;;; Code: @@ -199,7 +199,8 @@ (strict)) Package options for the siunitx package.) -(TeX-add-style-hook siunitx +(TeX-add-style-hook + siunitx (lambda () (TeX-add-symbols ;; Numbers @@ -229,6 +230,7 @@ '(candela 0) '(kelvin 0) '(kilogram 0) +'(gram 0) '(meter 0) '(metre 0) '(second 0) @@ -491,7 +493,9 @@ '(fb 0) '(ab 0) '(zb 0) -'(yb 0)) +'(yb 0) +;; Transferring settings to pgf +'(SendSettingsToPgf 0)) (TeX-run-style-hooks l3keys2e array amstext ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-diffs] Changes to auctex/ChangeLog,v
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/28 08:22:11 Index: ChangeLog === RCS file: /sources/auctex/auctex/ChangeLog,v retrieving revision 5.1830 retrieving revision 5.1831 diff -u -b -r5.1830 -r5.1831 --- ChangeLog 25 Jan 2013 14:52:40 - 5.1830 +++ ChangeLog 28 Jan 2013 08:22:08 - 5.1831 @@ -1,3 +1,8 @@ +2013-01-25 Mosè Giordano giordano.m...@libero.it + + * style/siunitx.el (siunitx): Add `\gram' and + `\SendSettingsToPgf'. + 2013-01-25 Tassilo Horn t...@gnu.org * tex-buf.el (TeX-output-mode): Make revert-buffer-function buffer ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-commit] auctex ChangeLog style/siunitx.el
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/28 08:22:11 Modified files: . : ChangeLog style : siunitx.el Log message: * style/siunitx.el (siunitx): Add `\gram' and `\SendSettingsToPgf'. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctexr1=5.1830r2=5.1831 http://cvs.savannah.gnu.org/viewcvs/auctex/style/siunitx.el?cvsroot=auctexr1=1.2r2=1.3 ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-commit] auctex ChangeLog latex.el
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/28 08:35:44 Modified files: . : ChangeLog latex.el Log message: * latex.el (LaTeX-auto-savebox-regexp-list): New variable. (LaTeX-auto-regexp-list): Use `LaTeX-auto-savebox-regexp-list'. (savebox): New type for the parser. (TeX-arg-savebox): Use `LaTeX-savebox-list' for completion and `definition' argument. (LaTeX-common-initialization): Added makeatletter, makeatother, and jobname macros. (LaTeX-default-options): Changed documentstyle to documentclass in docstring. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctexr1=5.1831r2=5.1832 http://cvs.savannah.gnu.org/viewcvs/auctex/latex.el?cvsroot=auctexr1=5.481r2=5.482 ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] Changes to auctex/ChangeLog,v
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/28 08:35:44 Index: ChangeLog === RCS file: /sources/auctex/auctex/ChangeLog,v retrieving revision 5.1831 retrieving revision 5.1832 diff -u -b -r5.1831 -r5.1832 --- ChangeLog 28 Jan 2013 08:22:08 - 5.1831 +++ ChangeLog 28 Jan 2013 08:35:44 - 5.1832 @@ -1,3 +1,15 @@ +2013-01-26 Mads Jensen m...@inducks.org + + * latex.el (LaTeX-auto-savebox-regexp-list): New variable. + (LaTeX-auto-regexp-list): Use `LaTeX-auto-savebox-regexp-list'. + (savebox): New type for the parser. + (TeX-arg-savebox): Use `LaTeX-savebox-list' for completion and + `definition' argument. + (LaTeX-common-initialization): Added makeatletter, makeatother, + and jobname macros. + (LaTeX-default-options): Changed documentstyle to documentclass in + docstring. + 2013-01-25 Mosè Giordano giordano.m...@libero.it * style/siunitx.el (siunitx): Add `\gram' and ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-diffs] Changes to auctex/latex.el,v
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/28 08:35:44 Index: latex.el === RCS file: /sources/auctex/auctex/latex.el,v retrieving revision 5.481 retrieving revision 5.482 diff -u -b -r5.481 -r5.482 --- latex.el17 Jan 2013 07:20:42 - 5.481 +++ latex.el28 Jan 2013 08:35:44 - 5.482 @@ -48,8 +48,8 @@ :type 'string) (defcustom LaTeX-default-options nil - Default options to documentstyle. -A list of strings. + Default options to documentclass. +A comma-seperated list of strings. :group 'LaTeX-environment :type '(repeat (string :format %v))) @@ -1215,6 +1215,10 @@ '((newlength *{?\\([A-Za-z]+\\)}? 1 LaTeX-auto-length)) List of regular expressions matching LaTeX lengths only.) +(defvar LaTeX-auto-savebox-regexp-list + '((newsavebox *{?\\([A-Za-z]+\\)}? 1 LaTeX-auto-savebox)) + List of regular expressions matching LaTeX saveboxes only.) + (defvar LaTeX-auto-regexp-list (append (let ((token TeX-token-char)) @@ -1251,7 +1255,8 @@ LaTeX-auto-minimal-regexp-list LaTeX-auto-pagestyle-regexp-list LaTeX-auto-counter-regexp-list - LaTeX-auto-length-regexp-list) + LaTeX-auto-length-regexp-list + LaTeX-auto-savebox-regexp-list) List of regular expression matching common LaTeX macro definitions.) (defun LaTeX-split-bibs (match) @@ -1441,6 +1446,7 @@ (TeX-auto-add-type pagestyle LaTeX) (TeX-auto-add-type counter LaTeX) (TeX-auto-add-type length LaTeX) +(TeX-auto-add-type savebox LaTeX saveboxes) (fset 'LaTeX-add-bibliographies-auto (symbol-function 'LaTeX-add-bibliographies)) @@ -1608,18 +1614,19 @@ (LaTeX-add-counters counter)) (TeX-argument-insert counter optional))) -;; Why is DEFINITION unused? (defun TeX-arg-savebox (optional optional prompt definition) Prompt for a LaTeX savebox. If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt -string. DEFINITION is unused. - ;; Completion not implemented yet. - (TeX-argument-insert - (read-string (TeX-argument-prompt optional prompt -(concat Savebox: TeX-esc) -t)) - optional TeX-esc)) +string. If definition is non-nil, the savebox is added to the +list of defined saveboxes. + (let ((savebox (completing-read (TeX-argument-prompt optional prompt + (concat Savebox: + TeX-esc) t) + (LaTeX-savebox-list +(if (and definition (not (zerop (length savebox +(LaTeX-add-saveboxes savebox)) +(TeX-argument-insert savebox optional TeX-esc))) (defun TeX-arg-length (optional optional prompt initial-input definition) Prompt for a LaTeX length. @@ -5512,7 +5519,8 @@ hfil hfill vfil vfill hrulefill dotfill indent noindent today appendix - dots) + dots + makeatletter makeatother jobname) (when (string-equal LaTeX-version 2e) (LaTeX-add-environments ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
Re: [AUCTeX-devel] Savebox patch
Mads Jensen m...@inducks.org writes: Hi Mads, Adjustments were made. I have compiled using the installation (configure + make) procedure, and get no errors, and with a small document, it works nicely :-) There are two more things added in this patch, which are not related to the `savebox' patch, namely the makeatletter, makeatother and jobname command name addition + the LaTeX-default-options was adjusted slightly. Thanks, committed. Bye, Tassilo ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] LaTeX-env-contents patch
Mads Jensen m...@inducks.org writes: Hi Mads, The actual requirement is that the filecontents environments can't be inserted before \begin{document}, but it works after \documentclass. Is that really true? The LaTeX2e docs say that for example a filecontents environment must only occur before \documentclass. See section 3.1 of http://www.latex-project.org/guides/usrguide.pdf. Bye, Tassilo ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
[AUCTeX-devel] TeX-header-start
Hi, I noticed in the wishlist that it might be nice to have this. The other one, TeX-trailer-end should be (eobp), if the trailer is everything that is not parsed at the end of the file? But this is impossible to put in a regular expression, unfortunately. ChangeLog entries for all patches: 2013-01-28 Mads Jensen m...@inducks.org * doc/todo.texi (Wishlist): Remove Completion for sboxes, and `TeX-header-start'. * latex.el (LaTeX-common-initialization): Initialize `TeX-header-start' to `LaTeX-header-start'. (LaTeX-header-start): New variable. * tex.el (TeX-header-start): New variable. (TeX-trailer-start): Set this to a value. Please keep me in CC. -- Med Venlig Hilsen / Kind Regards, Mads Jensen Rubinsteinsvej 31,st.th DK-2450 Kbh. SV Denmark +45 6168 8518 My brain is my second favorite organ. -- Woody Allen Index: latex.el === RCS file: /sources/auctex/auctex/latex.el,v retrieving revision 5.482 diff -u -r5.482 latex.el --- latex.el 28 Jan 2013 08:35:44 - 5.482 +++ latex.el 28 Jan 2013 12:36:40 - @@ -5178,6 +5178,11 @@ :type '(repeat regexp) :group 'TeX-command) +(defvar LaTeX-header-start + (concat ^[^%\n]* (regexp-quote TeX-esc) document\\(class\\|style\\)\\([[^]+]\\)? + \\({[^}]+}\\)) + Default start of header marker for LaTeX documents.) + (defvar LaTeX-header-end (concat ^[^%\n]* (regexp-quote TeX-esc) begin * TeX-grop document TeX-grcl) @@ -5224,6 +5229,7 @@ (setq LaTeX-largest-level (LaTeX-section-level section))) (setq TeX-header-end LaTeX-header-end +TeX-header-start LaTeX-header-start TeX-trailer-start LaTeX-trailer-start) (require 'outline) Index: tex.el === RCS file: /sources/auctex/auctex/tex.el,v retrieving revision 5.705 diff -u -r5.705 tex.el --- tex.el 13 Jan 2013 11:05:48 - 5.705 +++ tex.el 28 Jan 2013 12:27:54 - @@ -700,7 +700,7 @@ (defun TeX-read-string (prompt optional initial-input history default-value) (read-string prompt initial-input history default-value t)) - + (defun TeX-mark-active () ;; In FSF 19 mark-active indicates if mark is active. mark-active) @@ -1754,7 +1754,7 @@ (unless (local-variable-p 'TeX-PDF-mode (current-buffer)) (TeX-PDF-mode (if arg 1 0)) (setq TeX-PDF-mode-parsed t - + (defun TeX-PDF-mode-on () Use only from parsing routines. (TeX-PDF-mode-parsed t)) @@ -1811,7 +1811,8 @@ :group 'TeX-command-name :type 'string) -(defvar TeX-trailer-start nil +(defvar TeX-trailer-start + ^[^%\n]* (regexp-quote TeX-esc) \\(endinput\\|bye\\)) Regular expression delimiting start of trailer in a TeX file.) (make-variable-buffer-local 'TeX-trailer-start) @@ -1821,6 +1822,11 @@ (make-variable-buffer-local 'TeX-header-end) +(defvar TeX-header-start nil + Regular expression delimiting start of header in a TeX file.) + + (make-variable-buffer-local 'TeX-header-start) + (defvar TeX-command-default nil The default command for `TeX-command' in the current major mode.) @@ -1878,7 +1884,7 @@ (when (or (not TeX-clean-confirm) (condition-case nil (dired-mark-pop-up *Deletions* 'delete - (if ( (length files) 1) + (if ( (length files) 1) files (cons t files)) 'y-or-n-p Delete files? ) @@ -2990,7 +2996,7 @@ (setq ispell-parser 'tex) (make-local-variable 'ispell-tex-p) (setq ispell-tex-p t) - + ;; Redefine some standard variables (make-local-variable 'paragraph-start) (make-local-variable 'paragraph-separate) @@ -4142,7 +4148,7 @@ (define-key map \C-c?'TeX-doc) (define-key map \C-c\C-i 'TeX-goto-info-page) (define-key map \r 'TeX-newline) - + ;; From tex.el (define-key map \ 'TeX-insert-quote) (define-key map $'TeX-insert-dollar) @@ -4156,14 +4162,14 @@ (define-key map ^'TeX-insert-sub-or-superscript) (define-key map _'TeX-insert-sub-or-superscript) (define-key map \e\t 'TeX-complete-symbol) ;*** Emacs 19 way - + (define-key map \C-c''TeX-comment-or-uncomment-paragraph) ;*** Old way (define-key map \C-c:'TeX-comment-or-uncomment-region) ;*** Old way (define-key map \C-c\ 'TeX-uncomment) ;*** Old way - + (define-key map \C-c;'TeX-comment-or-uncomment-region) (define-key map \C-c%'TeX-comment-or-uncomment-paragraph) - + (define-key map \C-c\C-t\C-p 'TeX-PDF-mode) (define-key map \C-c\C-t\C-i 'TeX-interactive-mode) (define-key map \C-c\C-t\C-s 'TeX-source-correlate-mode) @@ -5572,7 +5578,7 @@ (regexp (concat \\`\\( (mapconcat (lambda (dir) (regexp-quote - (expand-file-name + (expand-file-name (file-name-as-directory dir (append (when
Re: [AUCTeX-devel] LaTeX-env-contents patch
Hi, Is that really true? The LaTeX2e docs say that for example a filecontents environment must only occur before \documentclass. See section 3.1 of http://www.latex-project.org/guides/usrguide.pdf. To justify my claim, try compiling the attached file, and notice that only the second filecontents generates an error, and that the first one passes through with just the warning that a file is being written to. Why the LaTeX 3 team writes this in their must be either a mistake, or because something changed after 2001 with the filecontents environment definition. -- Med Venlig Hilsen / Kind Regards, Mads Jensen Rubinsteinsvej 31,st.th DK-2450 Kbh. SV Denmark +45 6168 8518 My brain is my second favorite organ. -- Woody Allen document.tex Description: TeX document signature.asc Description: OpenPGP digital signature ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
[AUCTeX-commit] auctex ChangeLog latex.el
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/29 07:37:51 Modified files: . : ChangeLog latex.el Log message: * latex.el (LaTeX-env-contents): Replaced regular expression with `LaTeX-header-end', i.e., filecontents environments must go somewhere in the preamble but not necessarily before the \documentclass. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctexr1=5.1832r2=5.1833 http://cvs.savannah.gnu.org/viewcvs/auctex/latex.el?cvsroot=auctexr1=5.482r2=5.483 ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] Changes to auctex/ChangeLog,v
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/29 07:37:51 Index: ChangeLog === RCS file: /sources/auctex/auctex/ChangeLog,v retrieving revision 5.1832 retrieving revision 5.1833 diff -u -b -r5.1832 -r5.1833 --- ChangeLog 28 Jan 2013 08:35:44 - 5.1832 +++ ChangeLog 29 Jan 2013 07:37:50 - 5.1833 @@ -1,3 +1,10 @@ +2013-01-27 Mads Jensen m...@inducks.org + + * latex.el (LaTeX-env-contents): Replaced regular expression with + `LaTeX-header-end', i.e., filecontents environments must go + somewhere in the preamble but not necessarily before the + \documentclass. + 2013-01-26 Mads Jensen m...@inducks.org * latex.el (LaTeX-auto-savebox-regexp-list): New variable. ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-diffs] Changes to auctex/latex.el,v
CVSROOT:/sources/auctex Module name:auctex Changes by: Tassilo Horn tsdh 13/01/29 07:37:51 Index: latex.el === RCS file: /sources/auctex/auctex/latex.el,v retrieving revision 5.482 retrieving revision 5.483 diff -u -b -r5.482 -r5.483 --- latex.el28 Jan 2013 08:35:44 - 5.482 +++ latex.el29 Jan 2013 07:37:50 - 5.483 @@ -1100,8 +1100,8 @@ (defun LaTeX-env-contents (environment) Insert ENVIRONMENT with filename for contents. (save-excursion -(when (re-search-backward ^documentclass.*{ nil t) - (error Put %s environment before \\documentclass environment))) +(when (re-search-backward LaTeX-header-end nil t) + (error Put %s environment before \\begin{document} environment))) (LaTeX-insert-environment environment (concat TeX-grop (read-string File: ) ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs