summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2005-09-02 16:59:57 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2005-09-02 16:59:57 +0000
commitf47877ee8495b19c531119d3252dcc65d75fd5e5 (patch)
tree48c0a135ad8ccf4964e51d74e602d69f42f60e72 /lisp
parent14bd660e692505fdfeeb15cbc655b20cfe2de197 (diff)
downloademacs-f47877ee8495b19c531119d3252dcc65d75fd5e5.tar.gz
* term/xterm.el (terminal-init-xterm): Add eval-when-compile to
fix compilation warning. Reorder the key definitions to group together keys emitted by the current version of xterm. * progmodes/vhdl-mode.el (vhdl-highlight-faces) (vhdl-speedbar-entity-face, vhdl-speedbar-entity-selected-face): Reorder predicates to correct min-color usage.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/progmodes/vhdl-mode.el14
-rw-r--r--lisp/term/xterm.el61
3 files changed, 51 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 34313151376..1bcdf7628b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
+2005-09-02 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
+ fix compilation warning. Reorder the key definitions to group
+ together keys emitted by the current version of xterm.
+
+ * progmodes/vhdl-mode.el (vhdl-highlight-faces)
+ (vhdl-speedbar-entity-face, vhdl-speedbar-entity-selected-face):
+ Reorder predicates to correct min-color usage.
+
2005-09-01 Chong Yidong <cyd@stupidchicken.com>
* longlines.el (longlines-mode): Inhibit read-only when encoding.
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 8e4cba6d527..1caaa1f35b6 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -12823,9 +12823,9 @@ This does background highlighting of translate-off regions.")
'vhdl-highlight-faces 'font-lock-variable-name-face 'custom-face)
(defface vhdl-font-lock-prompt-face
- '((((class color) (background light)) (:foreground "Red" :bold t))
- (((min-colors 88) (class color) (background light))
+ '((((min-colors 88) (class color) (background light))
(:foreground "Red1" :bold t))
+ (((class color) (background light)) (:foreground "Red" :bold t))
(((class color) (background dark)) (:foreground "Pink" :bold t))
(t (:inverse-video t)))
"Font lock mode face used to highlight prompts."
@@ -15289,8 +15289,9 @@ expansion function)."
:group 'speedbar-faces)
(defface vhdl-speedbar-architecture-face
- '((((class color) (background light)) (:foreground "Blue"))
- (((min-colors 88) (class color) (background light)) (:foreground "Blue1"))
+ '((((min-colors 88) (class color) (background light)) (:foreground "Blue1"))
+ (((class color) (background light)) (:foreground "Blue"))
+
(((class color) (background dark)) (:foreground "LightSkyBlue")))
"Face used for displaying architecture names."
:group 'speedbar-faces)
@@ -15333,8 +15334,9 @@ expansion function)."
:group 'speedbar-faces)
(defface vhdl-speedbar-architecture-selected-face
- '((((class color) (background light)) (:foreground "Blue" :underline t))
- (((min-colors 88) (class color) (background light)) (:foreground "Blue1" :underline t))
+ '((((min-colors 88) (class color) (background light)) (:foreground
+ "Blue1" :underline t))
+ (((class color) (background light)) (:foreground "Blue" :underline t))
(((class color) (background dark)) (:foreground "LightSkyBlue" :underline t)))
"Face used for displaying architecture names."
:group 'speedbar-faces)
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 3be1a50823e..ce37d1b6086 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -33,8 +33,8 @@
;; better in that case to use rxvt's initializion function.
(if (and (getenv "COLORTERM")
(string-match "\\`rxvt" (getenv "COLORTERM")))
- (progn
- (load "term/rxvt")
+ (progn
+ (eval-when-compile (load "term/rxvt"))
(terminal-init-rxvt))
;; The terminal intialization C code file might have initialized
@@ -98,20 +98,11 @@
(substitute-key-definition [f60] [A-f12] function-key-map)
(let ((map (make-sparse-keymap)))
- (define-key map "\e[A" [up])
- (define-key map "\e[B" [down])
- (define-key map "\e[C" [right])
- (define-key map "\e[D" [left])
- (define-key map "\e[1~" [home])
- (define-key map "\e[2~" [insert])
- (define-key map "\e[3~" [delete])
- (define-key map "\e[4~" [select])
- (define-key map "\e[5~" [prior])
- (define-key map "\e[6~" [next])
- (define-key map "\e[11~" [f1])
- (define-key map "\e[12~" [f2])
- (define-key map "\e[13~" [f3])
- (define-key map "\e[14~" [f4])
+ ;; xterm from X.org 6.8.2 uses these key definitions.
+ (define-key map "\eOP" [f1])
+ (define-key map "\eOQ" [f2])
+ (define-key map "\eOR" [f3])
+ (define-key map "\eOS" [f4])
(define-key map "\e[15~" [f5])
(define-key map "\e[17~" [f6])
(define-key map "\e[18~" [f7])
@@ -120,12 +111,6 @@
(define-key map "\e[21~" [f10])
(define-key map "\e[23~" [f11])
(define-key map "\e[24~" [f12])
- (define-key map "\e[29~" [print])
-
- (define-key map "\eOP" [f1])
- (define-key map "\eOQ" [f2])
- (define-key map "\eOR" [f3])
- (define-key map "\eOS" [f4])
(define-key map "\eO2P" [S-f1])
(define-key map "\eO2Q" [S-f2])
@@ -179,6 +164,13 @@
(define-key map "\e[23;3~" [A-f11])
(define-key map "\e[24;3~" [A-f12])
+ (define-key map "\eOA" [up])
+ (define-key map "\eOB" [down])
+ (define-key map "\eOC" [right])
+ (define-key map "\eOD" [left])
+ (define-key map "\eOF" [end])
+ (define-key map "\eOH" [home])
+
(define-key map "\e[1;2A" [S-up])
(define-key map "\e[1;2B" [S-down])
(define-key map "\e[1;2C" [S-right])
@@ -207,6 +199,11 @@
(define-key map "\e[1;3F" [A-end])
(define-key map "\e[1;3H" [A-home])
+ (define-key map "\e[2~" [insert])
+ (define-key map "\e[3~" [delete])
+ (define-key map "\e[5~" [prior])
+ (define-key map "\e[6~" [next])
+
(define-key map "\e[2;2~" [S-insert])
(define-key map "\e[3;2~" [S-delete])
(define-key map "\e[5;2~" [S-prior])
@@ -227,12 +224,15 @@
(define-key map "\e[5;3~" [A-prior])
(define-key map "\e[6;3~" [A-next])
- (define-key map "\eOA" [up])
- (define-key map "\eOB" [down])
- (define-key map "\eOC" [right])
- (define-key map "\eOD" [left])
- (define-key map "\eOF" [end])
- (define-key map "\eOH" [home])
+ (define-key map "\e[4~" [select])
+ (define-key map "\e[29~" [print])
+
+ ;; Other versions of xterm might emit these.
+ (define-key map "\e[A" [up])
+ (define-key map "\e[B" [down])
+ (define-key map "\e[C" [right])
+ (define-key map "\e[D" [left])
+ (define-key map "\e[1~" [home])
(define-key map "\eO2A" [S-up])
(define-key map "\eO2B" [S-down])
@@ -248,6 +248,11 @@
(define-key map "\eO5F" [C-end])
(define-key map "\eO5H" [C-home])
+ (define-key map "\e[11~" [f1])
+ (define-key map "\e[12~" [f2])
+ (define-key map "\e[13~" [f3])
+ (define-key map "\e[14~" [f4])
+
;; Use inheritance to let the main keymap override those defaults.
;; This way we don't override terminfo-derived settings or settings
;; made in the .emacs file.