"Richard M. Stallman" <[EMAIL PROTECTED]> writes:

  >     (if (and (getenv "COLORTERM")
  >      (string-match "\\`rxvt" (getenv "COLORTERM")))
  >      (load "term/rxvt")
  > 
  >      THE REST OF TERM/XTERM.EL
  >     )
  > 
  > 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)
    (TERMNAME-initialize-terminal))
instead of having the terminal initialization performed (as it is
currently done) by doing (load "term/TERMNAME") 


_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to