[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: |
Stefan Monnier |
Subject: |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> (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