unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: "d.henman" <dhenman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Is C-X ESC ESC malfunctioning?
Date: Wed, 3 Apr 2013 21:02:20 +0800	[thread overview]
Message-ID: <20130403210220.25c0511c46f473ba4058df85@gmail.com> (raw)
In-Reply-To: <20130403213015.1788@binki>

On Wed, 03 Apr 2013 21:30:15 +0900
"d.henman" <dhenman@gmail.com> wrote:

> While editting in the buffer, I checked the word count using
> M-x count-words
> This works well.  I then added some more text into the buffer and used the 
> C-x ESC ESC  to rerun the command. "repeat-complex-command" 
> But the following error is displayed in the mini-buffer.
> "eval: Wrong type argument: integer-or-marker-p, nil"

count-words is an interactive function: (count-words START END)

It count words between START and END, if called interactively, START and
END are the start and end of the buffer (if there is no active region).
If called from Lisp, it returns the number of words between START and
END, *without printing any message*.

If you use `repeat-complex-command' to perform the last command, it will
use `(count-words nil nil)'.  nil is not an integer or a marker, so an
error arises.

> I expected the C-x ESC ESC to perform without error just as if I entered the 
> M-x count-words
> What should be expected here?

I'm not sure whether it is a bug or a feature here.

-- 
Xue Fuqiao
http://www.gnu.org/software/emacs/



  reply	other threads:[~2013-04-03 13:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 12:30 Is C-X ESC ESC malfunctioning? d.henman
2013-04-03 13:02 ` Xue Fuqiao [this message]
2013-04-03 13:34   ` Drew Adams
2013-04-03 22:23     ` Xue Fuqiao

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=20130403210220.25c0511c46f473ba4058df85@gmail.com \
    --to=xfq.free@gmail.com \
    --cc=dhenman@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).