verbatim shorthand problem
[auctex git version around May 11th, 2023] If I have a document like this ``` \documentclass{article} \usepackage{fvextra} \DefineShortVerb{\|} \begin{document} |foo| \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% LaTeX-shortvrb-chars: (?|) %%% End: ``` `|foo|` is not fontified as verbatim input. I have to add ``` %%% eval: (TeX-run-style-hooks "shortvrb") ``` to the local variable block to get proper fontification. Is there a more elegant solution? Or maybe it makes sense to always activate the (possibly adapted) 'shortvrb' style for 'fancyvrb'? Werner
bug#64921: 13.2.1; Infinite loop in LaTeX-arg-biblatex-cites with RefTeX
On Thu, 17 Aug 2023 at 04:25, Ikumi Keita wrote: > > Thank you for confirmation. I pushed the fix to the git repository. > Thank you very much. Best, Gustavo. ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
bug#64921: 13.2.1; Infinite loop in LaTeX-arg-biblatex-cites with RefTeX
> Gustavo Barros writes: > On Tue, 15 Aug 2023 at 03:18, Ikumi Keita wrote: >> >> Thank you for suggestion. Does the attached patch give you good results? >> > It behaves the same as `reftex-citation`, so it looks good to me. > Thank you very much! Thank you for confirmation. I pushed the fix to the git repository. >> (By the way, the reason that "q"/"C-g" deletes the trace of the previous >> input is that `TeX-insert-macro' introduced `atomic-change-group' a year >> ago[1].) > I see. The thread does not actually cover the reason for the change, > but it makes sense. Also, I don't know why "q" (`reftex-select-quit') > counts as "abnormal exit" or if it really should, given that now > `TeX-insert-macro' uses `atomic-change-group'. I think RefTeX by design sends quit signal for input "q", which breaks the elisp execution. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
master dc40d6e8: Fix bug#64921
branch: master commit dc40d6e81266eb4e2d50564cf1d47af55beafb03 Author: Ikumi Keita Commit: Ikumi Keita Fix bug#64921 * style/biblatex.el (LaTeX-arg-biblatex-cites): Don't loop when RefTeX citation is done. --- style/biblatex.el | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/style/biblatex.el b/style/biblatex.el index 3254ce85..52e9e2ec 100644 --- a/style/biblatex.el +++ b/style/biblatex.el @@ -203,8 +203,8 @@ for citation keys." (TeX-argument-insert (TeX-read-string (TeX-argument-prompt t nil "Global postnote")) (equal prenote "" - (let ((items t) (noinsert nil)) -(while items + (let ((items t) (noinsert nil) (reftex--done nil)) +(while (and items (not reftex--done)) ;; Prompt for prenote and postnote of the current keys. (and TeX-arg-cite-note-p (not current-prefix-arg) (let ((TeX-arg-opening-brace "[") @@ -221,7 +221,11 @@ for citation keys." (fboundp 'reftex-plug-flag) (reftex-plug-flag 3)) ;; Use RefTeX when enabled. - (reftex-citation t) + (prog1 + (reftex-citation t) +;; Don't loop when RefTeX citation is done. +;; (bug#64921) +(setq reftex--done t)) ;; Multiple citation keys in each argument are allowed. (TeX-completing-read-multiple (TeX-argument-prompt optional prompt "Key(s)")