>From e49b775ce539c75dc0fdadd027765b90c5c9b440 Mon Sep 17 00:00:00 2001 From: Leo Liu <[email protected]> Date: Sat, 17 Apr 2010 12:48:39 +0100 Subject: [PATCH 1/6] Fix a bug in LaTeX-outline-level for customised outline-regexp
See also bug report: http://permalink.gmane.org/gmane.emacs.auctex.bugs/1648. --- latex.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/latex.el b/latex.el index c06e365f..525e0e98 100644 --- a/latex.el +++ b/latex.el @@ -314,8 +314,7 @@ (defun LaTeX-outline-level () ((TeX-look-at LaTeX-section-list) (max 1 (+ (TeX-look-at LaTeX-section-list) (LaTeX-outline-offset)))) - (t - (error "Unrecognized header"))))))) + (t (outline-level))))))) (defun LaTeX-outline-name () "Guess a name for the current header line." -- 1.8.2
>From 051c3e46a4bd26927ec329548389afaeaab57734 Mon Sep 17 00:00:00 2001 From: Leo Liu <[email protected]> Date: Sat, 17 Apr 2010 12:50:55 +0100 Subject: [PATCH 2/6] Enable commented code to support darwin system --- tex.el | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tex.el b/tex.el index e9145728..e86244c8 100644 --- a/tex.el +++ b/tex.el @@ -1091,13 +1091,11 @@ (defvar TeX-view-program-list-builtin '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o")) ("dvips and start" "dvips %d -o && start \"\" %f") ("start" "start \"\" %o"))) -;; XXX: We need the advice of a Mac OS X user to configure this -;; correctly and test it. -;; ((eq system-type 'darwin) -;; '(("Preview.app" "open -a Preview.app %o") -;; ("Skim" "open -a Skim.app %o") -;; ("displayline" "displayline %n %o %b") -;; ("open" "open %o"))) + ((eq system-type 'darwin) + '(("Preview.app" "open -a Preview.app %o") + ("Skim" "open -a Skim.app %o") + ("displayline" "displayline %n %o %b") + ("open" "open %o"))) (t `(("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") @@ -1204,12 +1202,10 @@ (defcustom TeX-view-program-selection (output-dvi "Yap") (output-pdf "start") (output-html "start"))) -;; XXX: We need the advice of a Mac OS X user to configure this -;; correctly and test it. -;; ((eq system-type 'darwin) -;; '((output-dvi "open") -;; (output-pdf "open") -;; (output-html "open"))) + ((eq system-type 'darwin) + '((output-dvi "open") + (output-pdf "open") + (output-html "open"))) (t '(((output-dvi style-pstricks) "dvips and gv") (output-dvi "xdvi") -- 1.8.2
>From fad3b9a32315454498adc04c33cc4ea6b747cf4c Mon Sep 17 00:00:00 2001 From: Leo Liu <[email protected]> Date: Sun, 16 May 2010 15:19:50 +0100 Subject: [PATCH 3/6] Fix a bug causing "Invalid face reference: quote" Reported in http://permalink.gmane.org/gmane.emacs.auctex.devel/2466. --- font-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font-latex.el b/font-latex.el index 62aae939..a3e37a86 100644 --- a/font-latex.el +++ b/font-latex.el @@ -547,7 +547,7 @@ (defun font-latex-keyword-matcher (prefix name face type) `(,(intern (concat prefix name)) ;; Quote a list of face properties but do not to quote a face symbol. (0 ,(if (and (listp face) (not (fboundp (car face)))) - `',face + `,face face)))) ((eq type 'declaration) `(,(intern (concat prefix name)) -- 1.8.2
>From 60111bae4836ad61a954545542fbfffd31dffcf6 Mon Sep 17 00:00:00 2001 From: Leo Liu <[email protected]> Date: Mon, 17 May 2010 19:39:15 +0100 Subject: [PATCH 4/6] Improve TeX-math-input-method-off-regexp There's a typo as reported in http://permalink.gmane.org/gmane.emacs.auctex.devel/2468. --- tex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex.el b/tex.el index e86244c8..cf2ae969 100644 --- a/tex.el +++ b/tex.el @@ -5201,7 +5201,7 @@ (defun TeX-insert-dollar (&optional arg) (TeX-math-input-method-off)) (defvar TeX-math-input-method-off-regexp - "^\\(chinese\\|japanese\\|korean\\|bulgarian\\|russian\\)" + (concat "^" (regexp-opt '("chinese" "japanese" "korean" "bulgarian" "russian") t)) "Regexp matching input methods to be deactivated when entering math mode.") (defun TeX-math-input-method-off () -- 1.8.2
>From 21044fce6a50f91cc8274634d065858a1195d920 Mon Sep 17 00:00:00 2001 From: Leo Liu <[email protected]> Date: Sun, 5 Sep 2010 15:49:16 +0100 Subject: [PATCH 5/6] Fix a bug in font-latex-add-to-syntax-alist because it modifies both the buffer local and global values of font-latex-syntax-alist. --- font-latex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/font-latex.el b/font-latex.el index a3e37a86..d799d553 100644 --- a/font-latex.el +++ b/font-latex.el @@ -1125,7 +1125,8 @@ (defun font-latex-add-to-syntax-alist (list) cons pair as expected by `font-lock-defaults'. The function also triggers Font Lock to recognize the change." (make-local-variable 'font-latex-syntax-alist) - (nconc font-latex-syntax-alist list) + (set (make-local-variable 'font-latex-syntax-alist) + (append font-latex-syntax-alist list)) ;; FIXME: Are there situations where we need to alter `font-lock-defaults' ;; directly? ;; (dolist (entry list) -- 1.8.2
_______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
