Article View: gnu.epoch.misc
Article #2125Re: changing titles of screens
From: Bob Doolittle
Date: Mon, 08 Apr 1991 14:45
Date: Mon, 08 Apr 1991 14:45
29 lines
1601 bytes
1601 bytes
I did something similar to this, but I still have to manually tell it when
to sync up the screen title to the buffer. I haven't yet had time to think
about changing it to always keep in sync - if you come up with a clean way
of doing this, please post it!
I bound the "sync up" to a key as follows:
(when running-epoch
(defun title-to-buffer-name ()
"Change the title of the current epoch screen to the current buffer name"
(interactive)
(title (buffer-name))
(icon-name (buffer-name))
)
(global-set-key "\C-Za" 'title-to-buffer-name)
)
BTW, I *really* dislike the use of "definteractive" with global-set-key in
the epoch elisp files. I like the fact that it's so succinct, but
functions defined this way are almost "invisible" - they don't have names,
and they don't have doc text. Someone who doesn't read the elisp files and
searches for a function via apropos will never realize that the function is
bound to a key already.
------------
Bob Doolittle
Thinking Machines Corporation
rad@think.com
Technical Details
Message-ID:
<9104081445.AA21458@avenger.think.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,fb3dd5a98248683d X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-04-08 11:41:53 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage From: rad@THINK.COM (Bob Doolittle) Newsgroups: gnu.epoch.misc Subject: Re: changing titles of screens Message-ID: <9104081445.AA21458@avenger.think.com> Date: 8 Apr 91 14:45:32 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 29