Mercurial > emacs
comparison lisp/term/xterm.el @ 83331:efa9e4606e7e
Merged from miles@gnu.org--gnu-2005 (patch 83-87, 449-468)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-449
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-450
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-451
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-452
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-453
Update from CVS: lisp/subr.el (add-to-ordered-list): Doc fix.
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-454
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-455
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-456
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-457
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-458
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-459
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-460
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-461
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-462
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-463
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-464
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-465
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-466
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-467
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-468
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-83
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-84
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-85
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-86
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-87
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-371
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Tue, 05 Jul 2005 22:12:55 +0000 |
parents | dbb941c7c73c 07f8d532fe8b |
children | 6c13700d1c13 |
comparison
equal
deleted
inserted
replaced
83330:233c9974025b | 83331:efa9e4606e7e |
---|---|
374 ;; intelligent way than the default guesswork in startup.el. | 374 ;; intelligent way than the default guesswork in startup.el. |
375 (defun xterm-rxvt-set-background-mode () | 375 (defun xterm-rxvt-set-background-mode () |
376 "Set background mode as appropriate for the default rxvt colors." | 376 "Set background mode as appropriate for the default rxvt colors." |
377 (let ((fgbg (server-getenv "COLORFGBG")) | 377 (let ((fgbg (server-getenv "COLORFGBG")) |
378 bg rgb) | 378 bg rgb) |
379 (setq frame-background-mode 'light) ; default | 379 (setq default-frame-background-mode 'light) |
380 (when (and fgbg | 380 (when (and fgbg |
381 (string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg)) | 381 (string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg)) |
382 (setq bg (string-to-number (substring fgbg (match-beginning 1)))) | 382 (setq bg (string-to-number (substring fgbg (match-beginning 1)))) |
383 ;; The next line assumes that xterm-standard-colors are ordered | 383 ;; The next line assumes that xterm-standard-colors are ordered |
384 ;; by the color index in the ascending order! | 384 ;; by the color index in the ascending order! |
387 ;; computation below. | 387 ;; computation below. |
388 (if (< (apply '+ rgb) | 388 (if (< (apply '+ rgb) |
389 ;; The following line assumes that white is the 15th | 389 ;; The following line assumes that white is the 15th |
390 ;; color in xterm-standard-colors. | 390 ;; color in xterm-standard-colors. |
391 (* (apply '+ (car (cddr (nth 15 xterm-standard-colors)))) 0.6)) | 391 (* (apply '+ (car (cddr (nth 15 xterm-standard-colors)))) 0.6)) |
392 (setq frame-background-mode 'dark))) | 392 (setq default-frame-background-mode 'dark))) |
393 (frame-set-background-mode (selected-frame)))) | 393 (frame-set-background-mode (selected-frame)))) |
394 | 394 |
395 ;; Do it! | 395 ;; Do it! |
396 (xterm-register-default-colors) | 396 (xterm-register-default-colors) |
397 ;; If this xterm is actually a disguised rxvt, be more intelligent about | 397 ;; If this xterm is actually a disguised rxvt, be more intelligent about |