From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: How to bind keys in emacs?
Date: Sat, 24 Dec 2005 10:13:58 +0200 [thread overview]
Message-ID: <u3bkij4jd.fsf@gnu.org> (raw)
In-Reply-To: <8764pfe6ku.fsf@thalassa.informatimago.com> (message from Pascal Bourguignon on Sat, 24 Dec 2005 00:28:49 +0100)
> From: Pascal Bourguignon <spam@mouse-potato.com>
> Date: Sat, 24 Dec 2005 00:28:49 +0100
>
> > Or 'iconify-or-deiconify-frame for w32, apparently, instead of
> > 'suspend-emacs. I don't know why this is. Do both work under Linux?
>
> Why do you think I wrote:
> (if window-system
> (iconify-or-deiconify-frame)
> (suspend-emacs))
>
> ?
(I'm not the OP) I don't know why, I only know that `window-system' is
``considered harmful''. In this case, you should use
`display-multi-frame-p' or `(fboundp 'iconify-or-deiconify-frame)'
instead. That's because `window-system' doesn't say anything about
the underlying functionality, so it's better to use predicates which
do. (As a matter of fact, there's at least one Emacs configuration
that has non-nil `window-system', but doesn't support iconify.)
prev parent reply other threads:[~2005-12-24 8:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-23 7:38 How to bind keys in emacs? zelzel.zsu
2005-12-23 8:24 ` Pascal Bourguignon
2005-12-23 18:18 ` Cameron Desautels
[not found] ` <mailman.20269.1135361990.20277.help-gnu-emacs@gnu.org>
2005-12-23 23:13 ` B. T. Raven
2005-12-23 23:28 ` Pascal Bourguignon
2005-12-24 6:16 ` B. T. Raven
2005-12-24 7:11 ` Pascal Bourguignon
2005-12-24 8:13 ` Eli Zaretskii [this message]
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=u3bkij4jd.fsf@gnu.org \
--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.
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).