From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#8479: 24.0.50; Strange error message upon M-z M-z Date: Fri, 07 Oct 2011 02:59:36 -0400 Message-ID: <7kehypl21z.fsf@fencepost.gnu.org> References: <87bp0clqtz.fsf@fencepost.gnu.org> <83tye4ral2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1317970801 21291 80.91.229.12 (7 Oct 2011 07:00:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 07:00:01 +0000 (UTC) Cc: David Kastrup , 8479@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 08:59:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RC4PT-0002Bu-Ak for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 08:59:55 +0200 Original-Received: from localhost ([::1]:58312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC4PT-00047L-12 for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 02:59:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC4PR-00047G-2u for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 02:59:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC4PP-0000Y4-7x for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 02:59:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC4PP-0000Xz-5n for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 02:59:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RC4Pb-0002od-4s for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 03:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2011 07:00: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 8479-submit@debbugs.gnu.org id=B8479.131797079810787 (code B ref 8479); Fri, 07 Oct 2011 07:00:02 +0000 Original-Received: (at 8479) by debbugs.gnu.org; 7 Oct 2011 06:59:58 +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 1RC4PV-0002nv-SX for submit@debbugs.gnu.org; Fri, 07 Oct 2011 02:59:58 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RC4PS-0002nn-Tm for 8479@debbugs.gnu.org; Fri, 07 Oct 2011 02:59:56 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RC4PB-0002Ea-E4; Fri, 07 Oct 2011 02:59:37 -0400 X-Spook: strategic SCUD missile Kh-11 FIPS140 domestic disruption X-Ran: 2Gg1i(-4[m))_UPAF80n)~m?8ScI%-E76yv?_6Rwa,)hTaCdG~I?]W+zz3[1p*kmMR-~Gz X-Hue: cyan X-Attribution: GM In-Reply-To: <83tye4ral2.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Apr 2011 19:56:09 +0300") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Oct 2011 03:00:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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 Xref: news.gmane.org gmane.emacs.bugs:52353 Archived-At: This is a general issue, eg: M-x number-to-register RET M-z Wrong type argument: characterp, 134217850 It seems reasonable to me to get an error in these circumstances. How about just making the error message more explicit: *** src/callint.c 2011-07-09 07:06:04 +0000 --- src/callint.c 2011-10-07 06:55:53 +0000 *************** *** 535,540 **** --- 535,541 ---- message1_nolog ((char *) 0); /* Passing args[i] directly stimulates compiler bug */ teml = args[i]; + if (! CHARACTERP (teml)) error ("Non-character input-event"); visargs[i] = Fchar_to_string (teml); break;