From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19728: 25.0.50; (wrong-type-argument frame-live-p #) Date: Sat, 31 Jan 2015 15:29:49 +0200 Message-ID: <83iofnjcxe.fsf@gnu.org> References: <2fd82743-d6a0-482d-86e9-ac5cfd0d2271@default> <83egqdmqs7.fsf@gnu.org> <252d43e8-3cc9-4a3f-960a-b7378a66305c@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422711076 18096 80.91.229.3 (31 Jan 2015 13:31:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 13:31:16 +0000 (UTC) Cc: 19728@debbugs.gnu.org To: Drew Adams , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 14:31:11 2015 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 1YHY8k-0002gP-Qb for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 14:31:10 +0100 Original-Received: from localhost ([::1]:41636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHY8j-0005bz-GU for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 08:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHY8g-0005ar-2Z for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:31:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHY8c-0006Qg-Is for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:31:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHY8c-0006Qc-GR for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YHY8c-0007Es-5V for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Jan 2015 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 19728-submit@debbugs.gnu.org id=B19728.142271100527708 (code B ref 19728); Sat, 31 Jan 2015 13:31:02 +0000 Original-Received: (at 19728) by debbugs.gnu.org; 31 Jan 2015 13:30:05 +0000 Original-Received: from localhost ([127.0.0.1]:58696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHY7g-0007Ch-2i for submit@debbugs.gnu.org; Sat, 31 Jan 2015 08:30:04 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:57527) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHY7c-0007Bq-5T for 19728@debbugs.gnu.org; Sat, 31 Jan 2015 08:30:01 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NJ100200M6B5A00@mtaout25.012.net.il> for 19728@debbugs.gnu.org; Sat, 31 Jan 2015 15:24:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ100NQQMLN2Z50@mtaout25.012.net.il>; Sat, 31 Jan 2015 15:24:59 +0200 (IST) In-reply-to: <252d43e8-3cc9-4a3f-960a-b7378a66305c@default> X-012-Sender: halo1@inter.net.il 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:98934 Archived-At: > Date: Thu, 29 Jan 2015 09:46:35 -0800 (PST) > From: Drew Adams > Cc: 19728@debbugs.gnu.org > > > Any idea how come redisplay got to call > > menu-bar-non-minibuffer-window-p? > > I do have this in my setup - these are the only occurrences of > that function in my code: > > ;; Add for Emacs < 22. Rename item otherwise. > (define-key menu-bar-file-menu [new-file] > '(menu-item "New File..." find-file > :enable (or (not (fboundp 'menu-bar-non-minibuffer-window-p)) > (menu-bar-non-minibuffer-window-p)) > :help "Create and edit a new file")) > > (define-key-after menu-bar-file-menu [new-directory] > '(menu-item "New Directory..." menu-bar-create-directory > :enable (or (not (fboundp 'menu-bar-non-minibuffer-window-p)) > (menu-bar-non-minibuffer-window-p)) > :help "Create a directory") > 'new-file) > > I realize that :enable will cause that code to be run during > redisplay. Probably this is the culprit code, but I have never > see that error before (and this code has been there a long time). > > So maybe it's just a one-off thing. Or maybe menu-bar-non-minibuffer-window-p should protect itself from such calamities. Martin, what do you think?