GNU bug report logs -
#11528
24.0.97; [PATCH] enriched-next-annotation: wrong-type-argument number-or-marker-p nil
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Mon, 21 May 2012 03:13:02 UTC
Severity: normal
Tags: patch
Found in version 24.0.97
Done: Leo <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Yidong, could this buglet be fixed in emacs-24? This could stop people
from opening malformed enriched text files.
Emacs -q bug-enriched.txt
| Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
| enriched-next-annotation()
| ......
[bug-enriched.txt (text/enriched, inline)]
[Message part 3 (text/plain, inline)]
diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el
index 68a99b0e..a28fcfc7 100644
--- a/lisp/textmodes/enriched.el
+++ b/lisp/textmodes/enriched.el
@@ -437,7 +437,7 @@ (defun enriched-next-annotation ()
(progn (goto-char (match-beginning 0))
(not (looking-at enriched-annotation-regexp))))
(forward-char 1)
- (if (= ?< (char-after (point)))
+ (if (eq ?< (char-after (point)))
(delete-char 1)
;; A single < that does not start an annotation is an error,
;; which we note and then ignore.
This bug report was last modified 13 years and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.