steven Mitchell writes:
Debugger entered--Lisp error: (invalid-regexp "Invalid content
of \\{\\}")
string-match("[^ \n].\\{,20\\}" "register a")
This is invalid syntax in XEmacs regexps, apparently. This patch
seems to fix:
diff -r b0d40183ac79 lisp/register.el
--- a/lisp/register.el Sun Aug 12 11:32:36 2012 +0100
+++ b/lisp/register.el Thu Dec 06 15:53:27 2012 +0900
@@ -237,7 +237,7 @@
(princ val))
(cond
;; Extract first N characters starting with first non-whitespace.
- ((string-match (format "[^ \t\n].\\{,%d\\}"
+ ((string-match (format "[^ \t\n].\\{0,%d\\}"
;; Deduct 6 for the spaces inserted below.
(min 20 (max 0 (- (window-width) 6))))
val)
(In the brace operator, just insert a "0" before the comma.)
Regards,
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta