[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rxvt vs xterm keybindings

From: Dan Nicolaescu
Subject: Re: rxvt vs xterm keybindings
Date: Fri, 22 Jul 2005 20:07:51 -0700

"Richard M. Stallman" <address@hidden> writes:

  >     (if (and (getenv "COLORTERM")
  >      (string-match "\\`rxvt" (getenv "COLORTERM")))
  >      (load "term/rxvt")
  >     )
  > This approach may be good, but that is an ugly way to do it.  Most of
  > the code either is, or could be put, into functions.  Only the CALLS
  > to these functions should be conditional.

Sure, I can put the code into functions. 

This actually brings us a step closer to another proposal that is
needed for the multi-tty branch: each one of the term/*.el files
should define an autoloaded function called
TERMNAME-initialize-terminal. Then when emacs wants to initialize a
terminal TERMNAME it does something like:
(if (fboundp 'TERMNAME-initialize-terminal)
instead of having the terminal initialization performed (as it is
currently done) by doing (load "term/TERMNAME") 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]