From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation] Date: Wed, 07 Dec 2005 13:55:12 -0500 Message-ID: <87ek4ohh4f.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133984410 3545 80.91.229.2 (7 Dec 2005 19:40:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 19:40:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 20:40:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ek56c-0002Nj-Ow for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 20:37:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ek56s-0001wj-9f for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 14:37:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ek4Qo-0007uH-J2 for emacs-devel@gnu.org; Wed, 07 Dec 2005 13:54:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ek4Qm-0007tD-RU for emacs-devel@gnu.org; Wed, 07 Dec 2005 13:54:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ek4Qm-0007sw-De for emacs-devel@gnu.org; Wed, 07 Dec 2005 13:54:20 -0500 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ek4Re-0004E9-FQ; Wed, 07 Dec 2005 13:55:14 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id AC1E41208AF; Wed, 7 Dec 2005 13:55:12 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sun, 04 Dec 2005 21:36:26 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47149 Archived-At: Richard Stallman writes: > Would someone please investigate this bug, and ack? > It needs to be debugged for the release. I can't seem to reproduce this on GNU/Linux. It may be a Windows-only bug (unless it's been fixed already). > From: "Drew Adams" > > File 1: foo.el > -------------- > > (defvar mymap nil "") > > (let ((map (make-sparse-keymap "II"))) > (setq mymap (make-sparse-keymap)) > (define-key menu-bar-search-menu [ise] '("" . ise)) > (put 'ise 'menu-enable '(and my-mode)) > (push (cons 'my-mode mymap) minor-mode-map-alist)) > > (defadvice next-history-element (after ffff activate) "" my-mode) > > (provide 'foo) > > File 2: bar.el > -------------- > > (defconst special-display-regexps '("[ ]?[*][^*]+[*]")) > > (defvar drews-lisp-dir "C:\\drews-lisp-20" "") > (setq load-path (append (list drews-lisp-dir) load-path)) > > > (defadvice occur-mode-goto-occurrence > (around jjjjjj activate compile) > "" > ad-do-it) > > (require 'foo) > > Instructions: > ------------- > > 1. emacs -q > > 2. Byte-compile foo.el (it doesn't matter if it's compiled on Emacs 20 > or 22). `C-x C-c'. > > 3. emacs -q (Emacs 22) > > 4. Visit bar.el - don't load it. > > 5. Select everything in bar.el except the (require 'foo), and > do `eval-region'. > > 6. Put the cursor just after the (require 'foo) and do `C-x > C-e'. (Don't select it and do eval-region - that doesn't > produce the bug!) > > 7. `C-x C-c' > > You will get a pop-up message with Yes/No buttons that says this: > > Emacs Abort Dialog > > "A fatal error has occurred! Would you like to attach a > debugger? Select YES to debu, NO to abort Emacs"