From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6080: Behaviour of `char-syntax' changes when byte-compiled Date: Mon, 03 May 2010 13:05:40 -0400 Message-ID: References: <20100502111517.GA29594@c3po> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272911046 23626 80.91.229.12 (3 May 2010 18:24:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 May 2010 18:24:06 +0000 (UTC) Cc: 6080@debbugs.gnu.org To: Toby Cubitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 03 20:24:05 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O90En-0004v3-PS for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 20:24:04 +0200 Original-Received: from localhost ([127.0.0.1]:57905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O907v-0001z9-FL for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 14:12:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8zPz-0003Wh-2i for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:55 -0400 Original-Received: from [140.186.70.92] (port=57322 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8zPt-0003Hl-9c for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8zP7-0002zX-8f for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37641) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zP6-0002zL-GP for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O8z5l-0004NA-Q4; Mon, 03 May 2010 13:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2010 17:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6080-submit@debbugs.gnu.org id=B6080.127290635016799 (code B ref 6080); Mon, 03 May 2010 17:06:01 +0000 Original-Received: (at 6080) by debbugs.gnu.org; 3 May 2010 17:05:50 +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 1O8z5a-0004Mu-4u for submit@debbugs.gnu.org; Mon, 03 May 2010 13:05:50 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8z5X-0004Mo-UO for 6080@debbugs.gnu.org; Mon, 03 May 2010 13:05:48 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o43H5eqs030518; Mon, 3 May 2010 13:05:40 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 3CD11B4C27; Mon, 3 May 2010 13:05:40 -0400 (EDT) In-Reply-To: <20100502111517.GA29594@c3po> (Toby Cubitt's message of "Sun, 2 May 2010 12:15:17 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3526=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 03 May 2010 13:06:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36663 Archived-At: > (defun test () > (let ((char 33554464)) > (message "char: %s" char) > (message "syntax: %s" (char-syntax char))) > nil) > (Note that 33554464 is the value of `last-input-event' when a command is > invoked by the key sequence "S-".) > When the test function is evalled and then run with "M-: (test)", it > outputs the following in the *Messages* buffer: > char: 33554464 > syntax: 32 > nil That's an error: S-SPC is not a char, so the function should signal an error. > When the test function is byte-compiled, loaded, and run as before with > "M-: (test)", it throws an error and produces the following backtrace: Yes, oddly enough (it probably made sense at some point, of course, but that point was passed a very long time ago), char-syntax has its own byte code, so what happens above is that the byte-code version of char-syntax is not implemented in the exact same way as char-syntax function. Stefan