From: Johannes Weiner <hannes@saeurebad.de>
To: Davis Herring <herring@lanl.gov>
Cc: emacs-devel@gnu.org,
Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Subject: Re: messages override minibuffer input
Date: Wed, 12 Sep 2007 11:25:45 +0200 [thread overview]
Message-ID: <20070912092545.GA12104@saeurebad.de> (raw)
In-Reply-To: <38233.128.165.123.18.1189460486.squirrel@webmail.lanl.gov>
[-- Attachment #1.1: Type: text/plain, Size: 707 bytes --]
Hi,
On Mon, Sep 10, 2007 at 02:41:26PM -0700, Davis Herring wrote:
> (defvar optional-message nil
> "The last message shown with the function `optional-message'.")
> (defun optional-message (fmt &rest args)
> "Display a message if there's nothing better being displayed."
> (or (active-minibuffer-window)
> (not (eq (current-message) optional-message))
> (message "%s" (setq optional-message (apply 'format fmt args)))))
ELISP> (progn (setq foo "foo") (message foo) (eq (current-message) foo))
nil
This function calls `message' only when the minibuffer is active. I am sorry,
I can not follow that logic.
How likely is it anyway that two EQUAL strings are messaged in a row?
Hannes
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-09-12 9:25 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 4:23 messages override minibuffer input Roland Winkler
2007-09-08 14:48 ` Stefan Monnier
2007-09-10 21:41 ` Davis Herring
2007-09-11 20:30 ` Richard Stallman
2007-09-12 22:32 ` Davis Herring
2007-09-13 3:23 ` Luc Teirlinck
2007-09-13 4:23 ` Davis Herring
2007-09-14 7:05 ` Richard Stallman
2007-09-12 9:25 ` Johannes Weiner [this message]
2007-09-12 10:24 ` Johannes Weiner
2007-09-12 16:25 ` Davis Herring
2007-09-12 16:28 ` Davis Herring
[not found] ` <E1IUCJ9-0000VV-9H@fencepost.gnu.org>
2007-09-16 3:23 ` Roland Winkler
2007-09-17 0:20 ` Richard Stallman
2007-09-17 14:49 ` Roland Winkler
2007-09-17 22:24 ` Richard Stallman
2007-09-22 15:18 ` Roland Winkler
2007-09-23 9:07 ` Richard Stallman
2007-09-23 15:08 ` Roland Winkler
2007-09-23 21:54 ` Richard Stallman
2007-09-23 23:33 ` Roland Winkler
2007-09-24 18:19 ` Richard Stallman
2007-09-25 1:06 ` Roland Winkler
2007-09-24 0:24 ` Drew Adams
2007-09-24 1:28 ` Roland Winkler
2007-09-24 2:02 ` Drew Adams
2007-09-24 3:20 ` Roland Winkler
2007-09-24 10:36 ` Robert J. Chassell
2007-09-24 15:08 ` Drew Adams
2007-09-24 16:11 ` Robert J. Chassell
2007-09-24 16:53 ` Drew Adams
2007-09-24 10:43 ` Johannes Weiner
2007-09-24 11:12 ` David Kastrup
2007-09-24 13:19 ` Johannes Weiner
2007-09-24 14:48 ` Roland Winkler
2007-09-25 10:44 ` Richard Stallman
2007-09-24 15:13 ` Drew Adams
2007-09-25 10:43 ` Richard Stallman
2007-09-17 22:31 ` Davis Herring
2007-09-18 0:53 ` Stefan Monnier
2007-09-23 21:55 ` Richard Stallman
2007-09-24 8:30 ` Stefan Monnier
2007-09-24 17:16 ` Davis Herring
2007-09-24 17:24 ` Drew Adams
2007-09-25 10:44 ` 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=20070912092545.GA12104@saeurebad.de \
--to=hannes@saeurebad.de \
--cc=Roland.Winkler@physik.uni-erlangen.de \
--cc=emacs-devel@gnu.org \
--cc=herring@lanl.gov \
/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).