[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to detect if Emacs is running in a terminal
From: |
Peter Dyballa |
Subject: |
Re: How to detect if Emacs is running in a terminal |
Date: |
Sat, 16 Apr 2005 17:30:11 +0200 |
Am 16.04.2005 um 01:42 schrieb Pascal Bourguignon:
(cond ((= 21 emacs-major-version)
(progn
(desktop-read)
(cond ((string= "x" window-system)
There is this notion of a symbol in List & Intelligent Symbol
Processing
language. Perhaps you read some about it...
That might have happend. I read/browsed a few times in the Elisp info
nodes since I am European and have to struggle like Laokoon with
charsets and encodings and other snails, and the words you use remind
me of things I have read or heard before ... in ads?
Is it that I compare strings? `window-system´ is documented as being, a
bit metaphorical, a symbol. The value can be an `x´, which looks like a
very short string. So I imagined a string comparison should be OK ...
Or is it that I do not quote the symbol?
Try: M-x info RET m elisp RET m symbols RET
Today I can't find the right pointer that would help my understanding
-- I am a bit old today too and Lisp (and other programming languages)
are hard to decipher and even harder to write for me. I think awk, sed,
and shell are fine for programming ...
--
Greetings
Pete
These are my principles and if you don't like them... well, I have
others. - Groucho Marx
--
Mit friedvollen Grüßen
Pete
When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
-- Rinzai, ninth century Zen master
Re: How to detect if Emacs is running in a terminal, Stefan Monnier, 2005/04/15