unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Q on minibuffer-message
Date: Mon, 23 Jan 2006 09:19:29 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCEMHDBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <87irsbo7et.fsf@gmail.com>

    Drew> I could change the definition of command `foo', to pass it a
          flag to not call `minibuffer-message' (or to call it only when the
          command is called interactively), but I'd rather not have to
          resort to that.

  Eli> This doesn't explain why you wanted to avoid such a solution.

In fact, I have always planned anyway to modify `foo' in this way, because
my library needs to work also with Emacs 20, which has no
`minibuffer-message-timeout'. When I said that I wished to avoid such
modification, what I meant was that one should be able to avoid it.

  Ian> But why?  The argument can be optional, meaning if it's not
       given it will default to nil.  So there's no need to modify call
       sites in programs.

The concern was not needing to modify functions that call `foo'. The concern
was needing to modify `foo', the function that calls `minibuffer-message'.

The point is that it would be useful to be able to inhibit the action of
`minibuffer-message' from _without_, just as you can turn off logging of
messages in buffer *Messages* from without.

Imagine a scenario where you have no control over the definition of `foo'.
You simply want to use it, but not hear its `minibuffer-message' noise.
Binding `minibuffer-message-timeout' to 0 (or nil, or t, or whatever) should
let you do that. That's all.

       reply	other threads:[~2006-01-23 17:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87irsbo7et.fsf@gmail.com>
2006-01-23 17:19 ` Drew Adams [this message]
2006-01-23 23:23   ` Q on minibuffer-message Eli Zaretskii
2006-01-24  0:10     ` Drew Adams
2006-01-24  4:28       ` Eli Zaretskii
     [not found] <MEEKKIABFKKDFJMPIOEBIEJMCOAA.drew.adams@oracle.com>
2006-01-20 22:50 ` Lennart Borgman
2006-01-20 23:08   ` Drew Adams
2006-01-22 17:44   ` Richard M. Stallman
2006-01-22 18:54     ` Drew Adams
2006-01-23  4:42       ` Eli Zaretskii
2006-01-24 16:46       ` Richard M. 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=DNEMKBNJBGPAOPIJOOICCEMHDBAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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).