From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: Is C-X ESC ESC malfunctioning? Date: Wed, 3 Apr 2013 21:02:20 +0800 Message-ID: <20130403210220.25c0511c46f473ba4058df85@gmail.com> References: <20130403213015.1788@binki> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364994162 4562 80.91.229.3 (3 Apr 2013 13:02:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2013 13:02:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: "d.henman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 03 15:03:08 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNNLE-00049Y-NG for ged-emacs-devel@m.gmane.org; Wed, 03 Apr 2013 15:03:04 +0200 Original-Received: from localhost ([::1]:39871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNNKp-00061P-Tz for ged-emacs-devel@m.gmane.org; Wed, 03 Apr 2013 09:02:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNNKk-00060H-2d for emacs-devel@gnu.org; Wed, 03 Apr 2013 09:02:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNNKf-0000ho-2C for emacs-devel@gnu.org; Wed, 03 Apr 2013 09:02:34 -0400 Original-Received: from mail-pb0-f45.google.com ([209.85.160.45]:62081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNNKe-0000hh-Sn for emacs-devel@gnu.org; Wed, 03 Apr 2013 09:02:28 -0400 Original-Received: by mail-pb0-f45.google.com with SMTP id ro12so553012pbb.18 for ; Wed, 03 Apr 2013 06:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=KjnrO++ukarvRRm3/40PMG/JVv/Y+6pdzGhSTTiILxk=; b=PfhyvRXs5VFK4PFpFpP0TM9K6Hxz9q+OqoE/Ldr0WsrO7kMvyvI9cnegeiZ6d0/C+/ J3NfBXU64Cdy9pIF+2WJGqb9gQmC8MCh2B86qITYzP5A3VIlGf1cGSUMgZxkW8A5B4MJ vowSEoG+Zv3W2AogWkc3Xtor1v9EM6rol3OkmNstt0Gs0VraStyavXqQ+XMEo5900ikc pPF+YYn559bl8BFX8xDQU5NuBvMOMz20+3nfNo/2nhXzJxr2Ea9ZYM2Q63Hzp5qQl9A7 gETKsFYTEg6ow6RrL17RJFcH2FlvmFayJT+U+zQnyqNciJfxvl0FJ24ty+TuUoDYq9GR 4mrw== X-Received: by 10.66.254.225 with SMTP id al1mr3068405pad.111.1364994147936; Wed, 03 Apr 2013 06:02:27 -0700 (PDT) Original-Received: from debian.emacs ([123.114.123.205]) by mx.google.com with ESMTPS id hs8sm5947357pbc.27.2013.04.03.06.02.17 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 06:02:27 -0700 (PDT) In-Reply-To: <20130403213015.1788@binki> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.45 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158588 Archived-At: On Wed, 03 Apr 2013 21:30:15 +0900 "d.henman" 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/