unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation]
Date: Wed, 07 Dec 2005 13:55:12 -0500	[thread overview]
Message-ID: <87ek4ohh4f.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1Ej6DK-0001dl-VO@fencepost.gnu.org> (Richard Stallman's message of "Sun, 04 Dec 2005 21:36:26 -0500")

Richard Stallman <rms@gnu.org> 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" <drew.adams@oracle.com>
>
>     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"

  reply	other threads:[~2005-12-07 18:55 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-05  2:36 [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation] Richard Stallman
2005-12-07 18:55 ` Chong Yidong [this message]
2005-12-08  4:53   ` Richard M. Stallman
2005-12-08 16:14     ` Drew Adams
2005-12-09 13:17       ` Eli Zaretskii
2005-12-09 14:07         ` Chong Yidong
2005-12-09 18:37         ` [drew.adams@oracle.com: RE: weird defadvice bug withbyte-compilation] Drew Adams
2005-12-10  4:14         ` [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation] Richard M. Stallman
2005-12-11 18:17           ` [drew.adams@oracle.com: RE: weird defadvice bug withbyte-compilation] Drew Adams
2005-12-12  5:23             ` Richard M. Stallman
2005-12-12  5:40               ` [drew.adams@oracle.com: RE: weird defadvice bugwithbyte-compilation] Drew Adams
2005-12-13  3:14                 ` Richard M. Stallman
2005-12-13  3:52                   ` [drew.adams@oracle.com: RE: weird defadvicebugwithbyte-compilation] Drew Adams
2005-12-13 23:33                     ` Richard M. Stallman
2005-12-14  1:05                       ` [drew.adams@oracle.com: RE: weirddefadvicebugwithbyte-compilation] Drew Adams
2005-12-14  1:24                         ` Johan Bockgård
2005-12-14  3:41                           ` [drew.adams@oracle.com: Drew Adams
2005-12-14  3:45                             ` [drew.adams@oracle.com:RE:weirddefadvicebugwithbyte-compilation] Drew Adams
2005-12-14 17:17                             ` [drew.adams@oracle.com: Johan Bockgård
2005-12-14 21:29                               ` [drew.adams@oracle.com:RE:weirddefadvicebugwithbyte-compilation] Drew Adams
2005-12-14 23:43                                 ` [drew.adams@oracle.com:RE:weirddefadvicebugwithbyte-compilation] Johan Bockgård
2005-12-15  1:46                                   ` [drew.adams@oracle.com:RE:weirddefadvicebugwithbyte-compilation] Drew Adams
2005-12-11 20:21         ` [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation] Eli Zaretskii
2005-12-11 21:35           ` [drew.adams@oracle.com: RE: weird defadvice bug withbyte-compilation] Drew Adams
2005-12-12  5:52             ` Eli Zaretskii
2005-12-12  6:11               ` [drew.adams@oracle.com: RE: weird defadvice bugwithbyte-compilation] Drew Adams
2005-12-12  6:44                 ` [drew.adams@oracle.com: RE: weird defadvicebugwithbyte-compilation] Drew Adams
2005-12-12 21:22                   ` Eli Zaretskii
2005-12-12 21:53                     ` [drew.adams@oracle.com: RE: weirddefadvicebugwithbyte-compilation] Drew Adams
2005-12-13  4:30                       ` Eli Zaretskii
2005-12-13  4:59                         ` [drew.adams@oracle.com: Drew Adams
2005-12-12  5:23           ` [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation] Richard M. Stallman
2005-12-12  6:11             ` Eli Zaretskii
2005-12-13  3:14               ` Richard M. Stallman
2005-12-13  4:39                 ` Eli Zaretskii
2005-12-13 23:33                   ` Richard M. Stallman
2005-12-14 19:38                     ` Eli Zaretskii
2005-12-15  2:09                       ` Richard M. Stallman
2005-12-15  4:46                         ` Eli Zaretskii
2005-12-16  1:51                           ` Richard M. Stallman
2005-12-16 19:48                             ` Eli Zaretskii
2005-12-16 20:14                             ` Eli Zaretskii
2005-12-17  1:05                               ` Richard M. Stallman
2005-12-17  8:29                                 ` Eli Zaretskii
2005-12-17 23:59                                   ` Richard M. Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-11-28  4:46 Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ek4ohh4f.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).