Re: [AUCTeX-devel] multicolumn
* Mads Jensen (2009-03-01) writes: > Ralf Angeli wrote: >> * Mads Jensen (2009-02-26) writes: >> >>> The multicolumn requires three arguments, but AuCTeX inserts only one >>> pair of brackets when using alt-backspace. I couldn't figure out where >>> the functionality is located. >> >> `M-backspace' runs `backward-kill-word' unless you fiddled with the >> binding. So without you providing more information about what command >> is called by `M-backspace' in your case, it is impossible to tell why >> you only get two pairs of braces. Because if you use the insertion >> command provided by AUCTeX, namely `C-c multicolumn ', then >> three pairs are inserted and AUCTeX even prompts you for the arguments. > > Sorry, I made a "typo", and of course meant M-tab. Sorry for the confusion. ,[ (info "(auctex)Completion") <-- Type `C-x C-e' here ] |A more direct way to insert a macro is with `TeX-insert-macro', | bound to `C-c C-m' which is equivalent to `C-c '. It has the | advantage over completion that it knows about the argument of most | standard LaTeX macros, and will prompt for them. It also knows about | the type of the arguments, so it will for example give completion for | the argument to `\include'. Some examples are listed below. ` -- Ralf ___ auctex-devel mailing list auctex-devel@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] multicolumn
Ralf Angeli wrote: > * Mads Jensen (2009-02-26) writes: > >> The multicolumn requires three arguments, but AuCTeX inserts only one >> pair of brackets when using alt-backspace. I couldn't figure out where >> the functionality is located. > > `M-backspace' runs `backward-kill-word' unless you fiddled with the > binding. So without you providing more information about what command > is called by `M-backspace' in your case, it is impossible to tell why > you only get two pairs of braces. Because if you use the insertion > command provided by AUCTeX, namely `C-c multicolumn ', then > three pairs are inserted and AUCTeX even prompts you for the arguments. Sorry, I made a "typo", and of course meant M-tab. Sorry for the confusion. Kind regards, Mads signature.asc Description: OpenPGP digital signature ___ auctex-devel mailing list auctex-devel@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-devel
[AUCTeX-devel] New PSTricks files
Hi Holger, please provide ChangeLog entries for the new files you checked in, including the changes made to pstricks.el. You might also want to add entries for the new files to the STYLESRC variable in Makefile.in. Otherwise they won't be copied to the installation target directory. -- Ralf ___ auctex-devel mailing list auctex-devel@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] multicolumn
* Mads Jensen (2009-02-26) writes: > The multicolumn requires three arguments, but AuCTeX inserts only one > pair of brackets when using alt-backspace. I couldn't figure out where > the functionality is located. `M-backspace' runs `backward-kill-word' unless you fiddled with the binding. So without you providing more information about what command is called by `M-backspace' in your case, it is impossible to tell why you only get two pairs of braces. Because if you use the insertion command provided by AUCTeX, namely `C-c multicolumn ', then three pairs are inserted and AUCTeX even prompts you for the arguments. -- Ralf ___ auctex-devel mailing list auctex-devel@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-devel
[AUCTeX-diffs] Changes to auctex/ChangeLog,v
CVSROOT:/cvsroot/auctex Module name:auctex Changes by: Ralf Angeli 09/03/01 16:32:47 Index: ChangeLog === RCS file: /cvsroot/auctex/auctex/ChangeLog,v retrieving revision 5.1649 retrieving revision 5.1650 diff -u -b -r5.1649 -r5.1650 --- ChangeLog 22 Feb 2009 14:51:27 - 5.1649 +++ ChangeLog 1 Mar 2009 16:32:47 - 5.1650 @@ -1,3 +1,13 @@ +2009-03-01 Ralf Angeli + + * latex.el (LaTeX-verbatim-macro-boundaries): Do step backwards at + beginning of buffer. + (LaTeX-search-forward-comment-start): Treat find of comment at + limit correctly. + + * tex-fold.el (TeX-fold-comment-do): Abort backward search for + comment start at beginning of buffer. Do not fold empty comment. + 2009-02-22 Ralf Angeli * doc/auctex.texi (Multi-line fontification): Remove. ___ auctex-diffs mailing list auctex-di...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-commit] auctex ChangeLog
CVSROOT:/cvsroot/auctex Module name:auctex Changes by: Ralf Angeli 09/03/01 16:32:47 Modified files: . : ChangeLog Log message: *** empty log message *** CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctex&r1=5.1649&r2=5.1650 ___ auctex-commit mailing list auctex-com...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] Changes to auctex/latex.el,v
CVSROOT:/cvsroot/auctex Module name:auctex Changes by: Ralf Angeli 09/03/01 16:32:16 Index: latex.el === RCS file: /cvsroot/auctex/auctex/latex.el,v retrieving revision 5.452 retrieving revision 5.453 diff -u -b -r5.452 -r5.453 --- latex.el14 Jan 2009 19:58:28 - 5.452 +++ latex.el1 Mar 2009 16:32:16 - 5.453 @@ -1,7 +1,7 @@ ;;; latex.el --- Support for LaTeX documents. -;; Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, -;; 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +;; Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2003, +;; 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Keywords: tex @@ -1920,15 +1920,17 @@ (save-excursion (let ((orig (point)) (verbatim-regexp (regexp-opt (LaTeX-verbatim-macros-with-delims) t))) + ;; Search backwards for the macro start, unless we are facing one (unless (looking-at (concat (regexp-quote TeX-esc) verbatim-regexp)) (catch 'found (while (progn (skip-chars-backward (concat "^\n" (regexp-quote TeX-esc)) (line-beginning-position)) (when (looking-at verbatim-regexp) (throw 'found nil)) - (forward-char -1) + (or (bobp) (forward-char -1)) (/= (point) (line-beginning-position)) - (unless (= (point) (line-beginning-position)) + ;; Search forward for the macro end, unless we failed to find a start + (unless (bolp) (let ((beg (1- (point (goto-char (1+ (match-end 0))) (skip-chars-forward (concat "^" (buffer-substring-no-properties @@ -3602,14 +3604,16 @@ of verbatim constructs are not considered." (setq limit (or limit (point-max))) (save-excursion +(let (start) (catch 'found (while (progn (when (and (TeX-re-search-forward-unescaped TeX-comment-start-regexp limit 'move) (not (LaTeX-verbatim-p))) + (setq start (match-beginning 0)) (throw 'found t)) (< (point) limit -(unless (= (point) limit) (match-beginning 0 + start))) ;;; Math Minor Mode ___ auctex-diffs mailing list auctex-di...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-commit] auctex latex.el
CVSROOT:/cvsroot/auctex Module name:auctex Changes by: Ralf Angeli 09/03/01 16:32:16 Modified files: . : latex.el Log message: (LaTeX-verbatim-macro-boundaries): Do step backwards at beginning of buffer. (LaTeX-search-forward-comment-start): Treat find of comment at limit correctly. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/auctex/latex.el?cvsroot=auctex&r1=5.452&r2=5.453 ___ auctex-commit mailing list auctex-com...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] Changes to auctex/tex-fold.el,v
CVSROOT:/cvsroot/auctex Module name:auctex Changes by: Ralf Angeli 09/03/01 16:30:25 Index: tex-fold.el === RCS file: /cvsroot/auctex/auctex/tex-fold.el,v retrieving revision 1.64 retrieving revision 1.65 diff -u -b -r1.64 -r1.65 --- tex-fold.el 2 Nov 2008 07:40:14 - 1.64 +++ tex-fold.el 1 Mar 2009 16:30:20 - 1.65 @@ -500,14 +500,16 @@ (save-excursion (while (progn (beginning-of-line 0) -(TeX-in-line-comment))) +(and (TeX-in-line-comment) + (not (bobp) (goto-char (TeX-search-forward-comment-start (line-end-position 2))) (looking-at TeX-comment-start-regexp) (setq beg (match-end 0)) (while (TeX-comment-forward)) (end-of-line 0) + (when (> (point) beg) (TeX-fold-hide-item (TeX-fold-make-overlay beg (point) 'comment - TeX-fold-ellipsis)) +TeX-fold-ellipsis))) ;;; Utilities ___ auctex-diffs mailing list auctex-di...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-commit] auctex tex-fold.el
CVSROOT:/cvsroot/auctex Module name:auctex Changes by: Ralf Angeli 09/03/01 16:30:25 Modified files: . : tex-fold.el Log message: (TeX-fold-comment-do): Abort backward search for comment start at beginning of buffer. Do not fold empty comment. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/auctex/tex-fold.el?cvsroot=auctex&r1=1.64&r2=1.65 ___ auctex-commit mailing list auctex-com...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-commit
Re: [AUCTeX-devel] RefTeX: Create BibTeX file misses citations
* Wolfgang Mayer (2009-02-25) writes: > reftex-all-used-citation-keys extracts only the cite keys that appear > in the last \cite{} command in a line, but skips other \cite{}'s on > the same line. > > Enclosed are: > * a test case to demonstrate the problem (.tex and .bib file) (tested > using Emacs 22.3.1, today's CVS checkout, reftex-cite.el revision > 1.52) > * a patch to fix it. Thanks! I've applied the patch. > -(while (re-search-forward > "^[^%\n\r]*\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}" > nil t) > +(while (re-search-forward > "\\(?:^\\|\\=\\)[^%\n\r]*?\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}" > nil t) Just as a random thought: Using \= here is a smart way to prevent the regexp from matching in %-based comments. Should we ever want to use RefTeX for modes with other comment starters, we might have to think about doing things like this with `reftex-in-comment'. -- Ralf ___ auctex-devel mailing list auctex-devel@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-devel
[AUCTeX-commit] reftex ChangeLog
CVSROOT:/sources/auctex Module name:reftex Changes by: Ralf Angeli 09/03/01 14:59:43 Modified files: . : ChangeLog Log message: *** empty log message *** CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/reftex/ChangeLog?cvsroot=auctex&r1=1.72&r2=1.73 ___ auctex-commit mailing list auctex-com...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] Changes to reftex/ChangeLog,v
CVSROOT:/sources/auctex Module name:reftex Changes by: Ralf Angeli 09/03/01 14:59:43 Index: ChangeLog === RCS file: /sources/auctex/reftex/ChangeLog,v retrieving revision 1.72 retrieving revision 1.73 diff -u -b -r1.72 -r1.73 --- ChangeLog 8 Feb 2009 16:47:33 - 1.72 +++ ChangeLog 1 Mar 2009 14:59:43 - 1.73 @@ -1,3 +1,8 @@ +2009-03-01 Wolfgang Mayer + + * lisp/reftex-cite.el (reftex-all-used-citation-keys): + Fix regexp to correctly extract all citations in the same line. + 2009-02-08 Juri Linkov This is a synch with the Emacs trunk where the change happened on ___ auctex-diffs mailing list auctex-di...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-diffs] Changes to reftex/lisp/reftex-cite.el,v
CVSROOT:/sources/auctex Module name:reftex Changes by: Ralf Angeli 09/03/01 14:59:29 Index: reftex-cite.el === RCS file: /sources/auctex/reftex/lisp/reftex-cite.el,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- reftex-cite.el 7 Jun 2008 12:18:21 - 1.52 +++ reftex-cite.el 1 Mar 2009 14:59:29 - 1.53 @@ -1147,7 +1147,7 @@ (save-restriction (widen) (goto-char (point-min)) -(while (re-search-forward "^[^%\n\r]*\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}" nil t) +(while (re-search-forward "\\(?:^\\|\\=\\)[^%\n\r]*?\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}" nil t) (setq kk (match-string-no-properties 3)) (while (string-match "%.*\n?" kk) (setq kk (replace-match "" t t kk))) ___ auctex-diffs mailing list auctex-di...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-commit] reftex/lisp reftex-cite.el
CVSROOT:/sources/auctex Module name:reftex Changes by: Ralf Angeli 09/03/01 14:59:29 Modified files: lisp : reftex-cite.el Log message: (reftex-all-used-citation-keys): Fix regexp to correctly extract all citations in the same line. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/reftex/lisp/reftex-cite.el?cvsroot=auctex&r1=1.52&r2=1.53 ___ auctex-commit mailing list auctex-com...@gnu.org http://lists.gnu.org/mailman/listinfo/auctex-commit