GNU bug report logs - #11560
24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil

Previous Next

Package: emacs;

Reported by: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>

Date: Fri, 25 May 2012 19:42:02 UTC

Severity: normal

Tags: patch

Found in version 24.0.97

Fixed in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

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: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
Subject: bug#11560: closed (Re: bug#11560: 24.0.97; [PATCH]
 forward-same-syntax: wrong-type-argument number-or-marker-p nil)
Date: Sat, 26 May 2012 02:43:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 11560 <at> debbugs.gnu.org.

-- 
11560: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11560
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 11560-done <at> debbugs.gnu.org
Subject: Re: bug#11560: 24.0.97;
	[PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p
	nil
Date: Fri, 25 May 2012 22:41:07 -0400
Version: 24.2

Thanks; applied.

[Message part 3 (message/rfc822, inline)]
From: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument
	number-or-marker-p nil
Date: Fri, 25 May 2012 15:40:13 -0400
[I'm using a pretest, but this isn't a regression.  Applying the fix
in 24.2 is fine with me.]

Reproduce:

M-x load-library thingatpt
M-: (forward-same-syntax)

gives Lisp error: (wrong-type-argument number-or-marker-p nil)

Thanks for Emacs,
/a

2012-05-25  Aaron S. Hawley  <aaron.s.hawley <at> gmail.com>

        * thingatpt.el (forward-same-syntax): Calling as a function in
        Lisp with no argument gives error "wrong-type-argument
        number-or-marker-p nil" from `while'.

--- thingatpt.el	2012-04-07 23:03:02.000000000 -0400
+++ thingatpt.el	2012-05-25 12:33:28.817991100 -0400
@@ -455,8 +455,9 @@
 (defun forward-same-syntax (&optional arg)
  "Move point past all characters with the same syntax class.
 With prefix argument ARG, do it ARG times if positive, or move
 backwards ARG times if negative."
   (interactive "p")
+  (or arg (setq arg 1))
   (while (< arg 0)
     (skip-syntax-backward
      (char-to-string (char-syntax (char-before))))



This bug report was last modified 13 years and 76 days ago.

Previous Next


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