bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument num


From: Aaron S. Hawley
Subject: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil
Date: Sat, 26 May 2012 17:41:29 -0400

On 5/26/12, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>  (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.

I considered that, but assumed it's better to keep it consistent with
the rest of the forward-* functions in Emacs.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]