[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: RE: weird defadvice bug withbyte-compilation]
From: |
Richard M. Stallman |
Subject: |
Re: address@hidden: RE: weird defadvice bug withbyte-compilation] |
Date: |
Mon, 12 Dec 2005 00:23:34 -0500 |
See my previous message - I already indicated that the menu-enable is
testing a void variable. The question is why it is void.
It is void because there is nothing in the code to set it.
Why do you think it would NOT be void?
There are a couple of questions involved (see my email), including how
define-minor-mode works.
What does this have to do with define-minor-mode?
Your code does not use define-minor-mode.
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)
- address@hidden: RE: weird defadvice bug with byte-compilation], Richard Stallman, 2005/12/04
- Re: address@hidden: RE: weird defadvice bug with byte-compilation], Chong Yidong, 2005/12/07
- Re: address@hidden: RE: weird defadvice bug with byte-compilation], Richard M. Stallman, 2005/12/07
- RE: address@hidden: RE: weird defadvice bug with byte-compilation], Drew Adams, 2005/12/08
- Re: address@hidden: RE: weird defadvice bug with byte-compilation], Eli Zaretskii, 2005/12/09
- Re: address@hidden: RE: weird defadvice bug with byte-compilation], Chong Yidong, 2005/12/09
- RE: address@hidden: RE: weird defadvice bug withbyte-compilation], Drew Adams, 2005/12/09
- Re: address@hidden: RE: weird defadvice bug with byte-compilation], Richard M. Stallman, 2005/12/09
- RE: address@hidden: RE: weird defadvice bug withbyte-compilation], Drew Adams, 2005/12/11
- Re: address@hidden: RE: weird defadvice bug withbyte-compilation],
Richard M. Stallman <=
- RE: address@hidden: RE: weird defadvice bugwithbyte-compilation], Drew Adams, 2005/12/12
- Re: address@hidden: RE: weird defadvice bugwithbyte-compilation], Richard M. Stallman, 2005/12/12
- RE: address@hidden: RE: weird defadvicebugwithbyte-compilation], Drew Adams, 2005/12/12
- Re: address@hidden: RE: weird defadvicebugwithbyte-compilation], Richard M. Stallman, 2005/12/13
- RE: address@hidden: RE: weirddefadvicebugwithbyte-compilation], Drew Adams, 2005/12/13
- Re: address@hidden: RE: weirddefadvicebugwithbyte-compilation], Johan Bockgård, 2005/12/13
- RE: address@hidden: RE:weirddefadvicebugwithbyte-compilation], Drew Adams, 2005/12/13
- RE: address@hidden:RE:weirddefadvicebugwithbyte-compilation], Drew Adams, 2005/12/13
- Re: address@hidden: RE:weirddefadvicebugwithbyte-compilation], Johan Bockgård, 2005/12/14
- RE: address@hidden:RE:weirddefadvicebugwithbyte-compilation], Drew Adams, 2005/12/14