GNU bug report logs - #11528
24.0.97; [PATCH] enriched-next-annotation: wrong-type-argument number-or-marker-p nil

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11528 in the body.
You can then email your comments to 11528 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to cyd <at> stupidchicken.com, bug-gnu-emacs <at> gnu.org:
bug#11528; Package emacs. (Mon, 21 May 2012 03:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to cyd <at> stupidchicken.com, bug-gnu-emacs <at> gnu.org. (Mon, 21 May 2012 03:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.97; [PATCH] enriched-next-annotation: wrong-type-argument
	number-or-marker-p nil
Date: Mon, 21 May 2012 11:10:50 +0800
[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.

Reply sent to Leo <sdl.web <at> gmail.com>:
You have taken responsibility. (Sat, 23 Jun 2012 13:44:02 GMT) Full text and rfc822 format available.

Notification sent to Leo <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Sat, 23 Jun 2012 13:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 11528-done <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: 11528-done <at> debbugs.gnu.org
Subject: Re: bug#11528: 24.0.97;
	[PATCH] enriched-next-annotation: wrong-type-argument
	number-or-marker-p nil
Date: Sat, 23 Jun 2012 21:39:27 +0800
Fixed in emacs-24.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 Jul 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.