unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Aaron S. Hawley" <aaron.s.hawley@gmail.com>
Cc: 11560@debbugs.gnu.org
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	[thread overview]
Message-ID: <jwvlikf849v.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFw1JJ7UHaHfVjtLQL18PiXchMMNnquQJtqebwVN3LDL2p=yrQ@mail.gmail.com> (Aaron S. Hawley's message of "Fri, 25 May 2012 15:40:13 -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





  parent reply	other threads:[~2012-05-26 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25 19:40 bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil Aaron S. Hawley
2012-05-26  2:41 ` Glenn Morris
2012-05-26 13:24 ` Stefan Monnier [this message]
2012-05-26 21:41   ` Aaron S. Hawley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlikf849v.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11560@debbugs.gnu.org \
    --cc=aaron.s.hawley@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).