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


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
Cc: 11560 <at> debbugs.gnu.org
Subject: Re: bug#11560: 24.0.97;
	[PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p
	nil
Date: Sat, 26 May 2012 09:24:28 -0400
>  (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))

Actually, unless (forward-same-syntax) used to work, the better fix is
to make the argument non-optional.


        Stefan




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.