From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#10382: 24.0.92; gratuituous `file-supersession' error for `menu-bar-update-hook' Date: Sun, 15 Jan 2012 16:03:48 -0800 Message-ID: References: <5EC280AEE8324E4ABFCD26F416F0135D@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326672260 12934 80.91.229.12 (16 Jan 2012 00:04:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 00:04:20 +0000 (UTC) To: <10382@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 01:04:16 2012 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 1Rma3b-0003fV-VZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 01:04:16 +0100 Original-Received: from localhost ([::1]:35661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rma3b-0004I2-Gv for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jan 2012 19:04:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rma3Y-0004Hu-RS for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 19:04:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rma3X-0003uG-P5 for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 19:04:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rma3X-0003uC-MF for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 19:04:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rma4M-0004Ns-4h for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 19:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2012 00:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10382 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10382-submit@debbugs.gnu.org id=B10382.132667229516839 (code B ref 10382); Mon, 16 Jan 2012 00:05:02 +0000 Original-Received: (at 10382) by debbugs.gnu.org; 16 Jan 2012 00:04:55 +0000 Original-Received: from localhost ([127.0.0.1]:59002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rma4E-0004NY-O4 for submit@debbugs.gnu.org; Sun, 15 Jan 2012 19:04:55 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:41659) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rma4B-0004NO-Cw for 10382@debbugs.gnu.org; Sun, 15 Jan 2012 19:04:52 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q0G03wwW015926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <10382@debbugs.gnu.org>; Mon, 16 Jan 2012 00:03:59 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q0G03wq1023955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <10382@debbugs.gnu.org>; Mon, 16 Jan 2012 00:03:58 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q0G03v5o002308 for <10382@debbugs.gnu.org>; Sun, 15 Jan 2012 18:03:58 -0600 Original-Received: from dradamslap1 (/10.159.36.131) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 15 Jan 2012 16:03:57 -0800 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <5EC280AEE8324E4ABFCD26F416F0135D@us.oracle.com> Thread-Index: AczE4FHe82VA5YftSg+Dw999TeT67wPACynQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4F13696F.0063,ss=1,re=0.000,fgs=0 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 (newer, 2) 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:55778 Archived-At: > Error in menu-bar-update-hook (imenu-update-menubar): > (file-supersession File > changed on disk c:/drews-lisp-20/bookmark+-1.el) > > [Note, that is all on one line - a very long error message!] > > I look in buffer `*Messages*' and see this: > > bookmark+-bmu.el changed on disk; really edit the buffer? (y, > n, r or C-h) [2 times] > Error in menu-bar-update-hook (imenu-update-menubar): > (file-supersession File > changed on disk c:/drews-lisp-20/bookmark+-bmu.el) > > Apparently I should have seen the question about editing. Emacs > was apparently waiting for a response from me. But I could see > nothing at all, anywhere (all buffers blanked out). > > Seems like maybe there is a redisplay problem here? > > 9. Also, I did NOT try to edit the buffer (e.g. type a character). I > simply hit a key that dethumbifies the frame. Of course, that changes > frame parameters, but it does not in any way try to change > ("edit") the buffer. So I don't see why I should get the question > at all at that point. More info. This just happened to me again. And this time I can confirm that it had nothing to do with thumbified frames (something I mentioned last time, as a supposition). The buffer in question was in a normal frame, and all I did was hit my usual `f5' key which is bound to this: (defun revert-buffer-no-confirm () ; bound to `' "Revert buffer without confirmation." (interactive) (revert-buffer t t)) I believe that's what I did the last time also, though I might not have mentioned that. My impression now is that `f5' works seemlessly nearly all of the time, but rarely this bug manifests itself. I'm thinking that something in Emacs does not appreciate (revert-buffer t t) sometimes? I do have my own version of `imenu-update-menubar', but the only difference is that it sorts each submenu before splitting the submenus, instead of sorting among submenus after splitting. And I don't see anything in that function that Emacs should interpret as trying to modify the buffer. But that seems to be what is happening: When I hit `f5' (rarely) Emacs thinks there is an attempt to modify the buffer, so it asks for confirmation (apparently, from what I find afterward in *Messages*, but I cannot see this message display at the time). Since no such message is visible, the effect is that Emacs seems to hang (waiting for input to confirm) - i.e., it blanks out, until I hit C-g, at which time I can finally see the message. FWIW, that message itself, besides being way too long, is not terribly comprehensible. HTH.