Hi all,
please consider the following scenario with Reftex enabled:
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
`C-( foo RET' enters \label{sec:foo} and again `C-( foo RET'.
\end{document}
--8<---------------cut here---------------end--------------->8---
Emacs 24.5 works just fine, but the latest Emacs from emacs-25 branch
raises an error:
Lisp error: (wrong-type-argument arrayp (format-message "Label `%s' exists. Use
anyway? " label))
I tracked it down to a spurious backquote in reftex-ref.el. Attached
patch is against emacs-25. Any comments?
Best, Arash
>From 167ee2664250e1d53430dd7f41d23ecbcdafa9cd Mon Sep 17 00:00:00 2001
From: Arash Esbati <[email protected]>
Date: Sun, 17 Jan 2016 11:28:58 +0100
Subject: [PATCH] Delete a spurious backquote
* lisp/textmodes/reftex-ref.el (reftex-label): Delete a
spurious backquote which raises an error with emacs 25.
---
lisp/textmodes/reftex-ref.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/textmodes/reftex-ref.el b/lisp/textmodes/reftex-ref.el
index 5ac0e28..3270359 100644
--- a/lisp/textmodes/reftex-ref.el
+++ b/lisp/textmodes/reftex-ref.el
@@ -228,7 +228,7 @@ This function is controlled by the settings of reftex-insert-label-flags."
(symbol-value reftex-docstruct-symbol)))
(ding)
(if (y-or-n-p
-` (format-message "Label `%s' exists. Use anyway? " label))
+ (format-message "Label `%s' exists. Use anyway? " label))
(setq valid t)))
;; Label is ok
--
2.7.0
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex