From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#14702: 24.3.50; Byte-compiling called-interactively-p inside catch Date: Mon, 24 Jun 2013 16:29:23 +0200 Message-ID: <87zjufd1ks.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372084239 6769 80.91.229.3 (24 Jun 2013 14:30:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2013 14:30:39 +0000 (UTC) To: 14702@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 24 16:30:39 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Ur7mx-0007g4-A5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 16:30:39 +0200 Original-Received: from localhost ([::1]:37631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur7mw-0003aQ-T7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 10:30:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur7mb-00034n-SW for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:30:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur7mQ-0004Qa-Ao for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:30:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur7mQ-0004Q7-4d for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:30:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ur7mO-0004z0-7a for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2013 14:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14702 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137208419019081 (code B ref -1); Mon, 24 Jun 2013 14:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2013 14:29:50 +0000 Original-Received: from localhost ([127.0.0.1]:38691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ur7m9-0004xf-R9 for submit@debbugs.gnu.org; Mon, 24 Jun 2013 10:29:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50298) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ur7m7-0004xI-42 for submit@debbugs.gnu.org; Mon, 24 Jun 2013 10:29:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur7lz-00042P-5A for submit@debbugs.gnu.org; Mon, 24 Jun 2013 10:29:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur7lz-00042L-33 for submit@debbugs.gnu.org; Mon, 24 Jun 2013 10:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur7ls-0001wW-9H for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:29:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur7lm-0003zd-JE for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:29:32 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur7lm-0003zD-Ac for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 10:29:26 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MXTY0-1UoJgA1sRS-00WXD5 for ; Mon, 24 Jun 2013 16:29:24 +0200 Original-Received: (qmail invoked by alias); 24 Jun 2013 14:29:24 -0000 Original-Received: from i59F54452.versanet.de (EHLO rosalinde.fritz.box) [89.245.68.82] by mail.gmx.net (mp001) with SMTP; 24 Jun 2013 16:29:24 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/SbDcqcyXSdAB7Y9y+YeSzM7o4NEhgYgFr6vNWK8 z/Jyft44ApacIU User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:75501 Archived-At: 0. Save the following defun to a file, say foo.el: (defun baz () (interactive) (catch 'test (if (called-interactively-p 'any) (message "interactive") (message "noninteractive")))) 1. Load foo, then type `M-x baz'. => "interactive" 2. M-: (fmakunbound 'baz) 3. Byte-compile foo.el, load the compiled file and type `M-x baz'. => "noninteractive" If in the function `baz' you either remove the `catch' form or replace (called-interactively-p 'any) by (eq this-command 'baz), and then repeat the above steps, then the result of both non-compiled and compiled interactive calls is "interactive". In GNU Emacs 24.3.50.1 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2013-06-22 on rosalinde Bzr revision: 113135 lekktu@gmail.com-20130622024114-o1weajdmsssio1vk Windowing system distributor `The X.Org Foundation', version 11.0.11203000 System Description: openSUSE 12.2 (x86_64) Configured using: `configure --without-toolkit-scroll-bars CFLAGS=-g3 -O0' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t