diff options
| author | Dan Nicolaescu | 2005-09-02 16:59:57 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2005-09-02 16:59:57 +0000 |
| commit | f47877ee8495b19c531119d3252dcc65d75fd5e5 (patch) | |
| tree | 48c0a135ad8ccf4964e51d74e602d69f42f60e72 | |
| parent | 14bd660e692505fdfeeb15cbc655b20cfe2de197 (diff) | |
| download | emacs-f47877ee8495b19c531119d3252dcc65d75fd5e5.tar.gz emacs-f47877ee8495b19c531119d3252dcc65d75fd5e5.zip | |
* 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.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 14 | ||||
| -rw-r--r-- | lisp/term/xterm.el | 61 |
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 @@ | |||
| 1 | 2005-09-02 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * term/xterm.el (terminal-init-xterm): Add eval-when-compile to | ||
| 4 | fix compilation warning. Reorder the key definitions to group | ||
| 5 | together keys emitted by the current version of xterm. | ||
| 6 | |||
| 7 | * progmodes/vhdl-mode.el (vhdl-highlight-faces) | ||
| 8 | (vhdl-speedbar-entity-face, vhdl-speedbar-entity-selected-face): | ||
| 9 | Reorder predicates to correct min-color usage. | ||
| 10 | |||
| 1 | 2005-09-01 Chong Yidong <cyd@stupidchicken.com> | 11 | 2005-09-01 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 12 | ||
| 3 | * longlines.el (longlines-mode): Inhibit read-only when encoding. | 13 | * 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.") | |||
| 12823 | 'vhdl-highlight-faces 'font-lock-variable-name-face 'custom-face) | 12823 | 'vhdl-highlight-faces 'font-lock-variable-name-face 'custom-face) |
| 12824 | 12824 | ||
| 12825 | (defface vhdl-font-lock-prompt-face | 12825 | (defface vhdl-font-lock-prompt-face |
| 12826 | '((((class color) (background light)) (:foreground "Red" :bold t)) | 12826 | '((((min-colors 88) (class color) (background light)) |
| 12827 | (((min-colors 88) (class color) (background light)) | ||
| 12828 | (:foreground "Red1" :bold t)) | 12827 | (:foreground "Red1" :bold t)) |
| 12828 | (((class color) (background light)) (:foreground "Red" :bold t)) | ||
| 12829 | (((class color) (background dark)) (:foreground "Pink" :bold t)) | 12829 | (((class color) (background dark)) (:foreground "Pink" :bold t)) |
| 12830 | (t (:inverse-video t))) | 12830 | (t (:inverse-video t))) |
| 12831 | "Font lock mode face used to highlight prompts." | 12831 | "Font lock mode face used to highlight prompts." |
| @@ -15289,8 +15289,9 @@ expansion function)." | |||
| 15289 | :group 'speedbar-faces) | 15289 | :group 'speedbar-faces) |
| 15290 | 15290 | ||
| 15291 | (defface vhdl-speedbar-architecture-face | 15291 | (defface vhdl-speedbar-architecture-face |
| 15292 | '((((class color) (background light)) (:foreground "Blue")) | 15292 | '((((min-colors 88) (class color) (background light)) (:foreground "Blue1")) |
| 15293 | (((min-colors 88) (class color) (background light)) (:foreground "Blue1")) | 15293 | (((class color) (background light)) (:foreground "Blue")) |
| 15294 | |||
| 15294 | (((class color) (background dark)) (:foreground "LightSkyBlue"))) | 15295 | (((class color) (background dark)) (:foreground "LightSkyBlue"))) |
| 15295 | "Face used for displaying architecture names." | 15296 | "Face used for displaying architecture names." |
| 15296 | :group 'speedbar-faces) | 15297 | :group 'speedbar-faces) |
| @@ -15333,8 +15334,9 @@ expansion function)." | |||
| 15333 | :group 'speedbar-faces) | 15334 | :group 'speedbar-faces) |
| 15334 | 15335 | ||
| 15335 | (defface vhdl-speedbar-architecture-selected-face | 15336 | (defface vhdl-speedbar-architecture-selected-face |
| 15336 | '((((class color) (background light)) (:foreground "Blue" :underline t)) | 15337 | '((((min-colors 88) (class color) (background light)) (:foreground |
| 15337 | (((min-colors 88) (class color) (background light)) (:foreground "Blue1" :underline t)) | 15338 | "Blue1" :underline t)) |
| 15339 | (((class color) (background light)) (:foreground "Blue" :underline t)) | ||
| 15338 | (((class color) (background dark)) (:foreground "LightSkyBlue" :underline t))) | 15340 | (((class color) (background dark)) (:foreground "LightSkyBlue" :underline t))) |
| 15339 | "Face used for displaying architecture names." | 15341 | "Face used for displaying architecture names." |
| 15340 | :group 'speedbar-faces) | 15342 | :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 @@ | |||
| 33 | ;; better in that case to use rxvt's initializion function. | 33 | ;; better in that case to use rxvt's initializion function. |
| 34 | (if (and (getenv "COLORTERM") | 34 | (if (and (getenv "COLORTERM") |
| 35 | (string-match "\\`rxvt" (getenv "COLORTERM"))) | 35 | (string-match "\\`rxvt" (getenv "COLORTERM"))) |
| 36 | (progn | 36 | (progn |
| 37 | (load "term/rxvt") | 37 | (eval-when-compile (load "term/rxvt")) |
| 38 | (terminal-init-rxvt)) | 38 | (terminal-init-rxvt)) |
| 39 | 39 | ||
| 40 | ;; The terminal intialization C code file might have initialized | 40 | ;; The terminal intialization C code file might have initialized |
| @@ -98,20 +98,11 @@ | |||
| 98 | (substitute-key-definition [f60] [A-f12] function-key-map) | 98 | (substitute-key-definition [f60] [A-f12] function-key-map) |
| 99 | 99 | ||
| 100 | (let ((map (make-sparse-keymap))) | 100 | (let ((map (make-sparse-keymap))) |
| 101 | (define-key map "\e[A" [up]) | 101 | ;; xterm from X.org 6.8.2 uses these key definitions. |
| 102 | (define-key map "\e[B" [down]) | 102 | (define-key map "\eOP" [f1]) |
| 103 | (define-key map "\e[C" [right]) | 103 | (define-key map "\eOQ" [f2]) |
| 104 | (define-key map "\e[D" [left]) | 104 | (define-key map "\eOR" [f3]) |
| 105 | (define-key map "\e[1~" [home]) | 105 | (define-key map "\eOS" [f4]) |
| 106 | (define-key map "\e[2~" [insert]) | ||
| 107 | (define-key map "\e[3~" [delete]) | ||
| 108 | (define-key map "\e[4~" [select]) | ||
| 109 | (define-key map "\e[5~" [prior]) | ||
| 110 | (define-key map "\e[6~" [next]) | ||
| 111 | (define-key map "\e[11~" [f1]) | ||
| 112 | (define-key map "\e[12~" [f2]) | ||
| 113 | (define-key map "\e[13~" [f3]) | ||
| 114 | (define-key map "\e[14~" [f4]) | ||
| 115 | (define-key map "\e[15~" [f5]) | 106 | (define-key map "\e[15~" [f5]) |
| 116 | (define-key map "\e[17~" [f6]) | 107 | (define-key map "\e[17~" [f6]) |
| 117 | (define-key map "\e[18~" [f7]) | 108 | (define-key map "\e[18~" [f7]) |
| @@ -120,12 +111,6 @@ | |||
| 120 | (define-key map "\e[21~" [f10]) | 111 | (define-key map "\e[21~" [f10]) |
| 121 | (define-key map "\e[23~" [f11]) | 112 | (define-key map "\e[23~" [f11]) |
| 122 | (define-key map "\e[24~" [f12]) | 113 | (define-key map "\e[24~" [f12]) |
| 123 | (define-key map "\e[29~" [print]) | ||
| 124 | |||
| 125 | (define-key map "\eOP" [f1]) | ||
| 126 | (define-key map "\eOQ" [f2]) | ||
| 127 | (define-key map "\eOR" [f3]) | ||
| 128 | (define-key map "\eOS" [f4]) | ||
| 129 | 114 | ||
| 130 | (define-key map "\eO2P" [S-f1]) | 115 | (define-key map "\eO2P" [S-f1]) |
| 131 | (define-key map "\eO2Q" [S-f2]) | 116 | (define-key map "\eO2Q" [S-f2]) |
| @@ -179,6 +164,13 @@ | |||
| 179 | (define-key map "\e[23;3~" [A-f11]) | 164 | (define-key map "\e[23;3~" [A-f11]) |
| 180 | (define-key map "\e[24;3~" [A-f12]) | 165 | (define-key map "\e[24;3~" [A-f12]) |
| 181 | 166 | ||
| 167 | (define-key map "\eOA" [up]) | ||
| 168 | (define-key map "\eOB" [down]) | ||
| 169 | (define-key map "\eOC" [right]) | ||
| 170 | (define-key map "\eOD" [left]) | ||
| 171 | (define-key map "\eOF" [end]) | ||
| 172 | (define-key map "\eOH" [home]) | ||
| 173 | |||
| 182 | (define-key map "\e[1;2A" [S-up]) | 174 | (define-key map "\e[1;2A" [S-up]) |
| 183 | (define-key map "\e[1;2B" [S-down]) | 175 | (define-key map "\e[1;2B" [S-down]) |
| 184 | (define-key map "\e[1;2C" [S-right]) | 176 | (define-key map "\e[1;2C" [S-right]) |
| @@ -207,6 +199,11 @@ | |||
| 207 | (define-key map "\e[1;3F" [A-end]) | 199 | (define-key map "\e[1;3F" [A-end]) |
| 208 | (define-key map "\e[1;3H" [A-home]) | 200 | (define-key map "\e[1;3H" [A-home]) |
| 209 | 201 | ||
| 202 | (define-key map "\e[2~" [insert]) | ||
| 203 | (define-key map "\e[3~" [delete]) | ||
| 204 | (define-key map "\e[5~" [prior]) | ||
| 205 | (define-key map "\e[6~" [next]) | ||
| 206 | |||
| 210 | (define-key map "\e[2;2~" [S-insert]) | 207 | (define-key map "\e[2;2~" [S-insert]) |
| 211 | (define-key map "\e[3;2~" [S-delete]) | 208 | (define-key map "\e[3;2~" [S-delete]) |
| 212 | (define-key map "\e[5;2~" [S-prior]) | 209 | (define-key map "\e[5;2~" [S-prior]) |
| @@ -227,12 +224,15 @@ | |||
| 227 | (define-key map "\e[5;3~" [A-prior]) | 224 | (define-key map "\e[5;3~" [A-prior]) |
| 228 | (define-key map "\e[6;3~" [A-next]) | 225 | (define-key map "\e[6;3~" [A-next]) |
| 229 | 226 | ||
| 230 | (define-key map "\eOA" [up]) | 227 | (define-key map "\e[4~" [select]) |
| 231 | (define-key map "\eOB" [down]) | 228 | (define-key map "\e[29~" [print]) |
| 232 | (define-key map "\eOC" [right]) | 229 | |
| 233 | (define-key map "\eOD" [left]) | 230 | ;; Other versions of xterm might emit these. |
| 234 | (define-key map "\eOF" [end]) | 231 | (define-key map "\e[A" [up]) |
| 235 | (define-key map "\eOH" [home]) | 232 | (define-key map "\e[B" [down]) |
| 233 | (define-key map "\e[C" [right]) | ||
| 234 | (define-key map "\e[D" [left]) | ||
| 235 | (define-key map "\e[1~" [home]) | ||
| 236 | 236 | ||
| 237 | (define-key map "\eO2A" [S-up]) | 237 | (define-key map "\eO2A" [S-up]) |
| 238 | (define-key map "\eO2B" [S-down]) | 238 | (define-key map "\eO2B" [S-down]) |
| @@ -248,6 +248,11 @@ | |||
| 248 | (define-key map "\eO5F" [C-end]) | 248 | (define-key map "\eO5F" [C-end]) |
| 249 | (define-key map "\eO5H" [C-home]) | 249 | (define-key map "\eO5H" [C-home]) |
| 250 | 250 | ||
| 251 | (define-key map "\e[11~" [f1]) | ||
| 252 | (define-key map "\e[12~" [f2]) | ||
| 253 | (define-key map "\e[13~" [f3]) | ||
| 254 | (define-key map "\e[14~" [f4]) | ||
| 255 | |||
| 251 | ;; Use inheritance to let the main keymap override those defaults. | 256 | ;; Use inheritance to let the main keymap override those defaults. |
| 252 | ;; This way we don't override terminfo-derived settings or settings | 257 | ;; This way we don't override terminfo-derived settings or settings |
| 253 | ;; made in the .emacs file. | 258 | ;; made in the .emacs file. |