Greetings!
I recently came upon the following bug.
M-x perl-mode leads to the following backtrace:
Debugger entered--Lisp error: (wrong-type-argument integerp nil)
substring("$Revision$" nil nil)
(let ((v "$Revision$")) (string-match ":\\s *\\([0-9.]+\\)" v)
(substring v (match-beginning 1) (match-end 1)))
(defvar cperl-version (let (...) (string-match ":\\s *\\([0-9.]+\\)"
v) (substring v ... ...)) "Version of IZ-supported CPerl package this
file is based on.")
load-internal("cperl-mode" nil nil nil undecided)
load("cperl-mode" nil nil nil)
command-execute(perl-mode t)
execute-extended-command(nil)
call-interactively(execute-extended-command)
The reason for this error is that the following keyword is not
expanded in cperl-mode.el:
(defvar cperl-version
(let ((v "$Revision$"))
(string-match ":\\s *\\([0-9.]+\\)" v)
(substring v (match-beginning 1) (match-end 1)))
"Version of IZ-supported CPerl package this file is based on.")
Replacing "$Revision$" with "$Revision: 6.2 $" makes this particular
problem go away, but there are many occurrences of CVS keywords in the
package sources and not all of them are in comments. What should we
do about this?
- Vin
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta