[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex da07a5dcb2 01/30: Fix Texinfo mode with respect
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex da07a5dcb2 01/30: Fix Texinfo mode with respect to interaction with RefTeX |
Date: |
Thu, 7 Dec 2023 03:51:06 -0500 (EST) |
branch: externals/auctex
commit da07a5dcb258d6bbb8745df5ae72096f64a65ca3
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix Texinfo mode with respect to interaction with RefTeX
* tex-info.el (Texinfo-reftex-section-info): Don't reset marker
because the marker stays in the return value.
(TeX-texinfo-mode): Register `Texinfo-reftex-hook' as a local hook.
(Texinfo-reftex-hook): Omit mode check which is no longer necessary
because it's called only locally now.
Remove dirty trick since emacs 26 has the required entry in
`reftex-label-alist-builtin'.
; Adapt indent.
---
tex-info.el | 30 +++++++++++-------------------
1 file changed, 11 insertions(+), 19 deletions(-)
diff --git a/tex-info.el b/tex-info.el
index f1e97746e0..485bc07263 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -479,26 +479,18 @@ is assumed by default."
(if (nth 1 reftex-label-menu-flags) ; section number flag
(concat section-number " "))
text))
- (prog1
- (list 'toc "toc" text file marker level section-number
- literal (marker-position marker))
- (set-marker marker nil))))
+ (list 'toc "toc" text file marker level section-number
+ literal (marker-position marker))
+ (set-marker marker nil)))
(defun Texinfo-reftex-hook ()
"Hook function to plug Texinfo into RefTeX."
;; force recompilation of variables
- (when (string= TeX-base-mode-name "Texinfo")
- ;; dirty temporary hook to remove when reftex has a Texinfo builtin
- ;; TODO --- taken on <2014-01-06 mon> --- remove the dirty trick once
reftex
- ;; has been corrected for long enough a time
- (unless (assq 'Texinfo reftex-label-alist-builtin)
- (setq reftex-label-alist-builtin (append reftex-label-alist-builtin
- '((Texinfo "Texinfo default
environments" nil)))))
- (dolist (v `((reftex-section-pre-regexp . "@")
- ; section post-regexp must contain exactly one group
- (reftex-section-post-regexp . "\\([ \t]+\\)")
- (reftex-section-info-function . Texinfo-reftex-section-info)
- (reftex-default-label-alist-entries . (Texinfo))
+ (dolist (v `((reftex-section-pre-regexp . "@")
+ ;; section post-regexp must contain exactly one group
+ (reftex-section-post-regexp . "\\([ \t]+\\)")
+ (reftex-section-info-function . Texinfo-reftex-section-info)
+ (reftex-default-label-alist-entries . (Texinfo))
(reftex-section-levels
. ,(mapcar
(lambda (x)
@@ -507,8 +499,8 @@ is assumed by default."
(cons (car x) (- (cadr x)))
(cons (car x) (cadr x))))
texinfo-section-list))))
- (set (make-local-variable (car v) ) (cdr v)))
- (reftex-ensure-compiled-variables)))
+ (set (make-local-variable (car v) ) (cdr v)))
+ (reftex-ensure-compiled-variables))
;;; Keymap:
@@ -866,7 +858,7 @@ value of `Texinfo-mode-hook'."
'("xref" (Texinfo-arg-nodename "Node name")))
;; RefTeX plugging
- (add-hook 'reftex-mode-hook #'Texinfo-reftex-hook)
+ (add-hook 'reftex-mode-hook #'Texinfo-reftex-hook nil t)
(if (and (boundp 'reftex-mode) reftex-mode)
(Texinfo-reftex-hook))
- [elpa] externals/auctex updated (bc75884db3 -> 24023ba246), Tassilo Horn, 2023/12/07
- [elpa] externals/auctex da07a5dcb2 01/30: Fix Texinfo mode with respect to interaction with RefTeX,
Tassilo Horn <=
- [elpa] externals/auctex 24023ba246 30/30: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 46f49aad81 02/30: Fix previous commit, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex f3bbff59ed 08/30: ; * style/fvextra.el ("fvextra"): Add missing macro., Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 2a959a1d43 13/30: Fix regexp, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex ecc0059120 05/30: ; * admin/release-process.org: Fix typos, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex acacdc09a6 25/30: ; * tex.el (TeX-brace-count-line): Fix check order., Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 217b46b2cf 03/30: Allow `preview-scale-function' as a file-local variable, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex ebe0ef11d1 06/30: ; Revert "; * latex.el (LaTeX-completion-parse-args): Use `cl-flet'.", Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 8282b83210 04/30: ; Mention bumping Emacs version for ELPA, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 5d0f020b81 28/30: Add support for the refcount package, Tassilo Horn, 2023/12/07