From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: lennart.borgman.073@student.lu.se, drew.adams@oracle.com,
emacs-devel@gnu.org
Subject: Re: How global is a define-global-minor-mode mode?
Date: Sat, 30 Dec 2006 11:57:15 +0100 [thread overview]
Message-ID: <4596460B.8020003@gmail.com> (raw)
In-Reply-To: <E1H0XdG-00030p-Ta@fencepost.gnu.org>
Richard Stallman wrote:
> I believe the problem is that the setup of the hook functions is not
> done as expected. I have my global minor mode set to t in customize, but
> I do not found the global mode hook functions in the hook after startup.
> (The global minor mode is t.)
>
> That sounds like a bug. Can you debug it? Can you provide a
> _precise_ self-contained test case so someone else can debug it?
>
Create a file tg.el in your emacs load-path:
(define-minor-mode tg-mode ""
:lighter " **TG** ")
(define-global-minor-mode tg-globalized-mode tg-mode
(lambda()
(tg-mode 1)))
Eval it and customize tg-globalized-mode permanently to t.
Start Emacs again:
emacs
M-x load-library tg
C-h v tg-globalized-mode
=> Its value is t
C-h v tg-mode
=> Its value is nil
Then try
Mx tg-globalized-mode
=> Tg-Globalized mode disabled
M-x tg-globalized-mode
=> Tg-Globalized mode enabled
C-h v tg-mode
=> Its value is t
next prev parent reply other threads:[~2006-12-30 10:57 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 18:35 How global is a define-global-minor-mode mode? Lennart Borgman
2006-12-25 0:43 ` Richard Stallman
2006-12-29 15:44 ` Richard Stallman
2006-12-29 17:21 ` Lennart Borgman (gmail)
2006-12-30 6:23 ` Richard Stallman
2006-12-30 10:57 ` Lennart Borgman (gmail) [this message]
2006-12-31 1:46 ` Richard Stallman
2006-12-31 2:27 ` Lennart Borgman (gmail)
2006-12-31 22:13 ` Richard Stallman
2007-01-03 0:18 ` Johan Bockgård
2007-01-03 21:11 ` Richard Stallman
2007-01-20 19:34 ` Chong Yidong
2007-01-21 22:27 ` Richard Stallman
2007-01-21 23:11 ` Stefan Monnier
2007-01-22 9:04 ` Richard Stallman
2007-01-22 14:55 ` Stefan Monnier
2007-01-23 20:55 ` Richard Stallman
2007-01-23 23:00 ` Stefan Monnier
2007-01-23 23:59 ` Lennart Borgman (gmail)
2007-01-24 1:15 ` Stefan Monnier
2007-01-24 19:29 ` Lennart Borgman (gmail)
2007-01-25 4:57 ` Stefan Monnier
2007-01-25 8:56 ` Lennart Borgman (gmail)
2007-01-25 19:27 ` Stefan Monnier
2007-01-25 21:47 ` Lennart Borgman (gmail)
2007-01-25 23:56 ` Lennart Borgman (gmail)
2007-01-26 4:34 ` Stefan Monnier
2007-01-27 19:43 ` Chong Yidong
2007-01-26 4:35 ` Stefan Monnier
2007-01-28 7:42 ` Richard Stallman
2007-01-28 7:42 ` Richard Stallman
2007-01-28 15:47 ` Chong Yidong
2007-01-28 16:37 ` David Kastrup
2007-01-28 19:53 ` Chong Yidong
2007-01-29 4:32 ` 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=4596460B.8020003@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman.073@student.lu.se \
/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.