unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Corsair <chris.corsair@gmail.com>
Subject: How to tell emacs is running under term or windows?
Date: Sat, 07 Oct 2006 10:37:52 +0800	[thread overview]
Message-ID: <87d594n94v.fsf@gmail.com> (raw)

Hi everybody!  I have a setting concerning the frame size in my
.emacs:

    (set-frame-size (car (frame-list)) 100 45)

However, when started in a term, emacs will display an error:

    X windows are not in use or not initialized.

So the `set-frame-size' function should be called only when running
under windows system.  The problem is, how to tell that emacs is
running under a term or a windows system, or, to be simple, how to
tell if the `-nw' option is issued when starting emacs?

Thanks.

-- 
Fear is the path to the Darkside.
Fear leads to anger,
Anger leads to hate,
Hate leads to suffering.

             reply	other threads:[~2006-10-07  2:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-07  2:37 Corsair [this message]
2006-10-07  3:48 ` How to tell emacs is running under term or windows? Alok G. Singh
     [not found] ` <mailman.7851.1160192955.9609.help-gnu-emacs@gnu.org>
2006-10-07  4:21   ` Corsair

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=87d594n94v.fsf@gmail.com \
    --to=chris.corsair@gmail.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.
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).