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#13163: 24.3.50; Unloading edebug renders Emacs unusable Date: Wed, 12 Dec 2012 23:29:21 +0100 Message-ID: <87r4mux5tq.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355351425 14277 80.91.229.3 (12 Dec 2012 22:30:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 22:30:25 +0000 (UTC) To: 13163@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 23:30:39 2012 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 1Tiup1-0003SK-Fk for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 23:30:35 +0100 Original-Received: from localhost ([::1]:34444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiuoo-0000Vk-Ik for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 17:30:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiuoj-0000Ul-Cg for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:30:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiuog-0005Rr-0a for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:30:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiuof-0005Rn-TT for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:30:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TiupR-0004DD-Sa for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2012 22:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13163 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.135535142716143 (code B ref -1); Wed, 12 Dec 2012 22:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Dec 2012 22:30:27 +0000 Original-Received: from localhost ([127.0.0.1]:39575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tiuos-0004CJ-JI for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:30:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54542) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tiuop-0004CC-Uq for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:30:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiuo0-00057y-7N for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:29:34 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:42696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiuo0-00057u-3a for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:29:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiunv-0007tv-Od for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:29:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiuns-00055K-Vs for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:29:27 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:50358) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Tiuns-000559-NY for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:29:24 -0500 Original-Received: (qmail invoked by alias); 12 Dec 2012 22:29:22 -0000 Original-Received: from i59F555B0.versanet.de (EHLO rosalinde.fritz.box) [89.245.85.176] by mail.gmx.net (mp072) with SMTP; 12 Dec 2012 23:29:22 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1878twDiVc79oIEvF1VZumaTPCKilzUmcR5lOomr6 Rz0DeGkxuIKSEx 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.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:68427 Archived-At: In GNU Emacs 24.3.50.6 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2012-12-03 on rosalinde Bzr revision: 111073 dmantipov@yandex.ru-20121203080602-hwv4fug7bvt2red7 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'' 0. emacs -Q 1. Instrument a defun for Edebug, e.g. type `C-u C-M-x' on find-files in lisp/files.el. 3. Type `M-x unload-feature RET edebug RET'. => Emacs becomes effectively unusable: typing e.g. `M-x', `C-n', `C-p', `C-x b', `C-h f', `C-h v', etc. raises either of the errors "Error in post-command-hook (global-font-lock-mode-check-buffers): (void-function edebug--called-interactively-skip)" or "run-hook-with-args-until-success: Symbol's function definition is void: edebug--called-interactively-skip". (However, some commands still work, e.g `C-h e', `C-x s', `C-x 2', `C-x C-c' -- at least with -Q; but when I hit this bug in a session started with my init-file, at least `C-x C-c' failed, and I had to kill Emacs externally.) I suspect this bug was introduced by this change: revno: 110955 committer: Stefan Monnier branch nick: trunk timestamp: Mon 2012-11-19 23:24:09 -0500 message: Make called-interactively-p work for edebug or advised code. * lisp/subr.el (called-interactively-p-functions): New var. (internal--called-interactively-p--get-frame): New macro. (called-interactively-p, interactive-p): Rewrite in Lisp. * lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): New fun. (called-interactively-p-functions): Use it. * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): New fun. (called-interactively-p-functions): Use it. * lisp/allout.el (allout-called-interactively-p): Don't assume called-interactively-p is a subr. * src/eval.c (Finteractive_p, Fcalled_interactively_p, interactive_p): Remove. (syms_of_eval): Remove corresponding defsubr. * src/bytecode.c (exec_byte_code): `interactive-p' is now a Lisp function. * test/automated/advice-tests.el (advice-tests--data): Remove. (advice-tests): Move the tests directly here instead. Add called-interactively-p tests. The bug does not happen with my trunk build from revision 110951 (my last build prior to the above change) but it does happen with my trunk builds from later revisions than the above.