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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo <sdl.web <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#11528: closed (24.0.97; [PATCH] enriched-next-annotation:
 wrong-type-argument number-or-marker-p nil)
Date: Sat, 23 Jun 2012 13:44:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 23 Jun 2012 21:39:27 +0800
with message-id <m1zk7u2lm8.fsf <at> gmail.com>
and subject line Re: bug#11528: 24.0.97; [PATCH] enriched-next-annotation: wrong-type-argument number-or-marker-p nil
has caused the debbugs.gnu.org bug report #11528,
regarding 24.0.97; [PATCH] enriched-next-annotation: wrong-type-argument number-or-marker-p nil
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
11528: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11528
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 5 (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.
[Message part 6 (message/rfc822, inline)]
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.


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.