emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-mode and mode hooks.


From: Richard Stallman
Subject: Re: org-mode and mode hooks.
Date: Sat, 28 May 2005 07:53:25 -0400

    ! If the minor mode's set-up depends on the major mode, the function that
    ! does the initial set-up should record the value of the variable 
`major-mode'
    ! in the variable MODE-stored-mode.

The reference "the function that does the initial set-up" is not concrete.
I am not completely sure which function you mean.  It would be better
to refer to it by name.

If this function is one that the user has to supply and define, then I
ask: why make the user arrange to set MODE-stored-mode?  Why not have
define-global-minor-mode automatically arrange to save the value in
that variable?  Then maybe this variable would be something internal
and it would not have to be mentioned in the doc string.

Looking at your patch, it looks like this mechanism already is
taken care of by code that is generated by define-global-minor-mode.
So why did you mention this variable in the doc string?
Just what is the user of define-global-minor-mode supposed to do?
I cannot understand it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]