unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@gnu.org>
Subject: Foo Mode enabled
Date: Fri, 06 May 2005 14:42:20 +0300	[thread overview]
Message-ID: <01c55230$Blat.v2.4$cf120660@zahav.net.il> (raw)

If a minor mode is defined via define-minor-mode, then the status
message "FOO Mode enabled" is not displayed if toggling the mode
autoloads some package.

This happens because define-minor-mode has this fragment:

	 (if (called-interactively-p)
	     (progn
	       ,(if globalp `(customize-mark-as-set ',mode))
	       (unless (current-message)
		 (message ,(format "%s %%sabled" pretty-name)
			  (if ,mode "en" "dis")))))

I understand why this is done, but the latest changes that introduced
jka-cmpr-hook.el and rearranged the way auto-compression-mode is
loaded cause a minor misfeature due to this: if you start Emacs and
type "M-x auto-compression-mode RET", you will not see the message
telling you that Auto-Compression mode disabled".

I'm not sure what would be the best way to fix it.  It is easy to fix
this for jka-compr alone, but the questions is, should easy-mmode.el
do something differently in the above fragment (like perhaps not do
this for messages which announce loading of packages).

             reply	other threads:[~2005-05-06 11:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-06 11:42 Eli Zaretskii [this message]
2005-05-07  9:26 ` Foo Mode enabled Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01c55230$Blat.v2.4$cf120660@zahav.net.il' \
    --to=eliz@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 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).