From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [drew.adams@oracle.com: Info on define-minor-mode -:init-valueor :initial-value?]
Date: Sat, 30 Jul 2005 16:46:00 -0500 (CDT) [thread overview]
Message-ID: <200507302146.j6ULk0W25424@raven.dms.auburn.edu> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICMEAICLAA.drew.adams@oracle.com>
Drew Adams wrote:
What about my suggestion of including this bit of code automatically, as
part of the expansion of define-minor-mode - perhaps by generating an
eval-after-load or something? Is that feasible? If so, would there be a
problem with such a hack?
That is actually exactly what the define-minor-mode code used to do,
before Stefan started changing it. (Stefan kept the eval-after-load,
but made it do different things).
However, using eval-after-load has many negative side effects, as I
pointed out before.
If one wants to have define-minor-mode enable a minor mode
automatically if :init-value is non-nil, then I believe that the best
way to do that would be to make define-minor-mode support alternative
:initialize functions like custom-initialize-set by changing the order
in which define-minor-mode defines things. (As I suggested earlier.)
Sincerely,
Luc.
next prev parent reply other threads:[~2005-07-30 21:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-27 14:57 [drew.adams@oracle.com: Info on define-minor-mode - :init-value or :initial-value?] Richard M. Stallman
2005-07-27 16:04 ` Luc Teirlinck
2005-07-28 16:58 ` Stefan Monnier
2005-07-28 17:43 ` [drew.adams@oracle.com: Info on define-minor-mode - :init-valueor :initial-value?] Drew Adams
2005-07-29 2:56 ` Luc Teirlinck
2005-07-30 23:44 ` Richard M. Stallman
2005-07-31 0:43 ` Luc Teirlinck
2005-07-31 14:58 ` Juanma Barranquero
2005-08-01 0:45 ` Richard M. Stallman
2005-08-01 1:47 ` Luc Teirlinck
2005-08-01 5:33 ` Juanma Barranquero
2005-08-01 16:46 ` Richard M. Stallman
2005-07-31 1:02 ` Luc Teirlinck
2005-08-01 0:45 ` Richard M. Stallman
2005-07-29 15:59 ` Stefan Monnier
2005-07-29 17:43 ` Drew Adams
2005-07-30 4:22 ` Luc Teirlinck
2005-07-30 13:58 ` [drew.adams@oracle.com: Info on define-minor-mode -:init-valueor :initial-value?] Drew Adams
2005-07-30 21:46 ` Luc Teirlinck [this message]
2005-07-29 1:48 ` [drew.adams@oracle.com: Info on define-minor-mode - :init-value or :initial-value?] Luc Teirlinck
2005-07-29 17:10 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200507302146.j6ULk0W25424@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.