unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* problem of define-minor-mode while bootstrapping
@ 2002-09-19 13:20 Kenichi Handa
  2002-09-19 13:46 ` Stefan Monnier
  0 siblings, 1 reply; 24+ messages in thread
From: Kenichi Handa @ 2002-09-19 13:20 UTC (permalink / raw)
  Cc: d.love

The conference was over, and I re-started to work on
utf-8.el, ucs-tables.el, etc. of RC.

Dave Love <d.love@dl.ac.uk> writes:
> Richard Stallman <rms@gnu.org> writes:
>
>>     > Yes.  But, that mode is on by default in RC too.
>> 
>>     Gosh.  However, it appears to be done wrongly.  Custom will show it
>>     isn't on, and would turn it off if you tried to turn it on.  Surely if
>>     it's preloaded and meant to be the default, the defcustom initial
>>     value should just be changed.
>> 
>> That sounds right to me.  Can you send a patch?

>I should have said `define-minor-mode', not defcustom.  Just change
>:init-value nil to t and take out the function call from loadup.

I agree that is the right thing, but I found that if both
:global and :init-value are t, define-minor-mode doesn't
work while bootstrapping.

In that case, define-minor-mode calls eval-after-load, and
it calls load-symbol-file-load-history, and it tries to load
fns-XXX.el.  But, at bootstrapping time, fns-XXX.el is not
yet created.

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?

---
Ken'ichi HANDA
handa@etl.go.jp

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2002-10-20  5:34 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-19 13:20 problem of define-minor-mode while bootstrapping Kenichi Handa
2002-09-19 13:46 ` Stefan Monnier
2002-09-20  0:06   ` Kenichi Handa
2002-09-20 18:38     ` Stefan Monnier
2002-09-21  1:57       ` Kenichi Handa
2002-09-22 22:54         ` Stefan Monnier
2002-09-23  2:08           ` Kenichi Handa
2002-09-23 18:27             ` Stefan Monnier
2002-09-24  3:06               ` Kenichi Handa
2002-09-24 15:33                 ` Stefan Monnier
2002-09-24 23:45                   ` Kenichi Handa
2002-09-21  2:00       ` Miles Bader
2002-09-22 15:55         ` Richard Stallman
2002-09-25 22:50           ` Dave Love
2002-09-26 21:45             ` Richard Stallman
2002-09-27 14:09               ` Dave Love
2002-09-28  3:19                 ` Richard Stallman
2002-09-30  6:26                   ` Kenichi Handa
2002-10-18  7:00                     ` Richard Stallman
2002-10-18  8:38                       ` Kenichi Handa
2002-10-20  5:34                         ` Richard Stallman
2002-10-02 22:49                   ` Dave Love
2002-10-04  3:49                     ` Richard Stallman
2002-09-22 21:40         ` Stefan Monnier

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).