[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem of define-minor-mode while bootstrapping
From: |
Kenichi Handa |
Subject: |
Re: problem of define-minor-mode while bootstrapping |
Date: |
Fri, 20 Sep 2002 09:06:58 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <address@hidden>, "Stefan Monnier" <monnier+gnu/address@hidden>
writes:
>> Here's the last few lines of define-minor-mode.
>>
>> ;; If the mode is global, call the function according to the default.
>> ,(if globalp
>> `(if (and load-file-name ,mode)
>> (eval-after-load load-file-name '(,mode 1)))))))
>>
>> Could someone please fix this problem at first?
> Update your sandbox, I've fixed it a few days ago AFAIK,
Do you mean this change?
* emacs-lisp/easy-mmode.el (define-minor-mode): Add a :require arg.
Don't call the function during init if mode is on by default.
***************
*** 224,230 ****
(symbol-value ',keymap-sym))))
;; If the mode is global, call the function according to the default.
! ,(if globalp
`(if (and load-file-name ,mode)
(eval-after-load load-file-name '(,mode 1)))))))
--- 227,233 ----
(symbol-value ',keymap-sym))))
;; If the mode is global, call the function according to the default.
! ,(if (and globalp (null init-value))
`(if (and load-file-name ,mode)
(eval-after-load load-file-name '(,mode 1)))))))
Could you please install it in RC too if that causes no
problem?
But, it seems that, with this, if :init-value is t, the
function to do various settings to make the mode work is
never called.
---
Ken'ichi HANDA
address@hidden
- problem of define-minor-mode while bootstrapping, Kenichi Handa, 2002/09/19
- Re: problem of define-minor-mode while bootstrapping, Stefan Monnier, 2002/09/19
- Re: problem of define-minor-mode while bootstrapping,
Kenichi Handa <=
- Re: problem of define-minor-mode while bootstrapping, Stefan Monnier, 2002/09/20
- Re: problem of define-minor-mode while bootstrapping, Kenichi Handa, 2002/09/20
- Re: problem of define-minor-mode while bootstrapping, Stefan Monnier, 2002/09/22
- Re: problem of define-minor-mode while bootstrapping, Kenichi Handa, 2002/09/22
- Re: problem of define-minor-mode while bootstrapping, Stefan Monnier, 2002/09/23
- Re: problem of define-minor-mode while bootstrapping, Kenichi Handa, 2002/09/23
- Re: problem of define-minor-mode while bootstrapping, Stefan Monnier, 2002/09/24
- Re: problem of define-minor-mode while bootstrapping, Kenichi Handa, 2002/09/24
- Re: problem of define-minor-mode while bootstrapping, Miles Bader, 2002/09/20
- Re: problem of define-minor-mode while bootstrapping, Richard Stallman, 2002/09/22