From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#8479: 24.0.50; Strange error message upon M-z M-z Date: Mon, 11 Apr 2011 23:10:12 +0100 Message-ID: <82fwpozbgb.fsf@gmail.com> References: <87bp0clqtz.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302575851 11416 80.91.229.12 (12 Apr 2011 02:37:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 02:37:31 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 12 04:37:27 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from [140.186.70.17] (helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9TTp-0005N7-QD for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Apr 2011 04:37:26 +0200 Original-Received: from localhost ([::1]:52779 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9TTp-0001Ll-Ad for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 22:37:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9TTm-0001LV-G9 for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 22:37:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9TTl-0000H0-Dj for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 22:37:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9TTl-0000Gu-9n for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 22:37:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q9TC2-0007ZD-Fw; Mon, 11 Apr 2011 22:19:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87bp0clqtz.fsf@fencepost.gnu.org> Resent-From: Andy Moreton Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2011 02:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8479 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.130257470029040 (code B ref -1); Tue, 12 Apr 2011 02:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Apr 2011 02:18:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9TBL-0007YL-PU for submit@debbugs.gnu.org; Mon, 11 Apr 2011 22:18:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9TBJ-0007Y8-5l for submit@debbugs.gnu.org; Mon, 11 Apr 2011 22:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9TBD-0002xH-1z for submit@debbugs.gnu.org; Mon, 11 Apr 2011 22:18:11 -0400 Original-Received: from [140.186.70.17] (port=56911 helo=lists.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9SVE-0002ml-7g for submit@debbugs.gnu.org; Mon, 11 Apr 2011 21:34:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9SRO-0003HP-Ni for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 21:30:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9PJZ-0002cf-TV for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 18:10:35 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:45897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9PJZ-0002XD-Nf for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 18:10:33 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q9PJW-0007q7-LV for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2011 00:10:30 +0200 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2011 00:10:30 +0200 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2011 00:10:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:kywVIyDJ+MZZ9D0j1j9dZpxeofk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Apr 2011 22:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-Broken-Reverse-DNS: no host name found for IP address 140.186.70.17 Xref: news.gmane.org gmane.emacs.bugs:45768 Archived-At: On Mon 11 Apr 2011, David Kastrup wrote: > Type M-z M-z and you get the following error back trace and message: > > Debugger entered--Lisp error: (wrong-type-argument characterp 134217850) > call-interactively(zap-to-char nil nil) `zap-to-char' (in simple.el) has interactive spec: (interactive "p\ncZap to char: ") Looking at `call-interactively' (in callint.c): --8<---------------cut here---------------start------------->8--- case 'c': /* Character */ /* Prompt in `minibuffer-prompt' face. */ Fput_text_property (make_number (0), make_number (SCHARS (callint_message)), Qface, Qminibuffer_prompt, callint_message); args[i] = Fread_char (callint_message, Qnil, Qnil); message1_nolog ((char *) 0); /* Passing args[i] directly stimulates compiler bug */ teml = args[i]; visargs[i] = Fchar_to_string (teml); break; --8<---------------cut here---------------end--------------->8--- Looking at the help for `read-char': --8<---------------cut here---------------start------------->8--- If the user generates an event which is not a character (i.e. a mouse click or function key event), `read-char' signals an error. As an exception, switch-frame events are put off until non-character events can be read. If you want to read non-character events, or ignore them, call `read-event' or `read-char-exclusive' instead. --8<---------------cut here---------------end--------------->8--- Perhaps `call-interactively' should be using `read-char-exclusive' so that the second M-z is ignored ? AndyM