aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2005-04-26 12:17:42 +0000
committerKaroly Lorentey2005-04-26 12:17:42 +0000
commit030cd69ff13d95f439ca0d13a03215fc45959789 (patch)
tree4554735b53848a05f107b8b421a898e0e9fe7ee6 /lisp
parent3379bbb24d58ecd8dca0c96b976b7031167e76a5 (diff)
parent35b1b8abe3d3833ecb4b4cee75b7340ffb707d65 (diff)
downloademacs-030cd69ff13d95f439ca0d13a03215fc45959789.tar.gz
emacs-030cd69ff13d95f439ca0d13a03215fc45959789.zip
Merged from miles@gnu.org--gnu-2005 (patch 279-280)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-279 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-280 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-335
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog32
-rw-r--r--lisp/calc/calc-help.el14
-rw-r--r--lisp/calc/calc.el2
-rw-r--r--lisp/font-core.el11
-rw-r--r--lisp/font-lock.el3
-rw-r--r--lisp/international/mule-cmds.el3
-rw-r--r--lisp/term.el10
-rw-r--r--lisp/term/xterm.el97
8 files changed, 137 insertions, 35 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8820980bf7d..1e08f220182 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,35 @@
12005-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * term/xterm.el (function-key-map): Fix strings for
4 {C,S,A,C-S}-f[1-4]. Use substitute-key-definition to bind
5 {C,S,A,C-S}-{f1-f12}.
6
72005-04-26 Kenichi Handa <handa@m17n.org>
8
9 * international/mule-cmds.el (select-safe-coding-system): Fix
10 previous change.
11
122005-04-26 Lute Kamstra <lute@gnu.org>
13
14 * calc/calc.el (calc-trail-mode): Don't set font-lock-defaults.
15
162005-04-25 Jay Belanger <belanger@truman.edu>
17
18 * calc/calc-help.el (calc-view-news): Let-bind inhibit-read-only
19 to t while inserting information; use help-mode.
20
212005-04-25 Dan Nicolaescu <dann@ics.uci.edu>
22
23 * term.el (ansi-term-color-vector): Use the xterm colors.
24 (term-raw-map): Don't add mappings for \eO and \e[. Map
25 deletechar.
26
272005-04-25 Lute Kamstra <lute@gnu.org>
28
29 * font-core.el (font-lock-defaults): Fix docstring.
30
31 * font-lock.el (font-lock-syntactic-face-function): Fix docstring.
32
12005-04-25 Kenichi Handa <handa@m17n.org> 332005-04-25 Kenichi Handa <handa@m17n.org>
2 34
3 * international/mule-cmds.el (select-safe-coding-system): Don't 35 * international/mule-cmds.el (select-safe-coding-system): Don't
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el
index 46b8cec2ac6..2a89bb2b883 100644
--- a/lisp/calc/calc-help.el
+++ b/lisp/calc/calc-help.el
@@ -393,12 +393,14 @@ C-w Describe how there is no warranty for Calc."
393 (error "Can't locate Calc sources")) 393 (error "Can't locate Calc sources"))
394 (calc-quit) 394 (calc-quit)
395 (switch-to-buffer "*Help*") 395 (switch-to-buffer "*Help*")
396 (erase-buffer) 396 (let ((inhibit-read-only t))
397 (insert-file-contents (expand-file-name "README" (car path))) 397 (erase-buffer)
398 (search-forward "Summary of changes") 398 (insert-file-contents (expand-file-name "README" (car path)))
399 (forward-line -1) 399 (search-forward "Summary of changes")
400 (delete-region (point-min) (point)) 400 (forward-line -1)
401 (goto-char (point-min)))) 401 (delete-region (point-min) (point))
402 (goto-char (point-min)))
403 (help-mode)))
402 404
403(defvar calc-help-long-names '((?b . "binary/business") 405(defvar calc-help-long-names '((?b . "binary/business")
404 (?g . "graphics") 406 (?g . "graphics")
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index ceee013e493..ce9681b828f 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -1174,8 +1174,6 @@ commands given here will actually operate on the *Calculator* stack."
1174 (setq buffer-read-only t) 1174 (setq buffer-read-only t)
1175 (make-local-variable 'overlay-arrow-position) 1175 (make-local-variable 'overlay-arrow-position)
1176 (make-local-variable 'overlay-arrow-string) 1176 (make-local-variable 'overlay-arrow-string)
1177 (set (make-local-variable 'font-lock-defaults)
1178 '(nil t nil nil nil (font-lock-core-only . t)))
1179 (when buf 1177 (when buf
1180 (set (make-local-variable 'calc-main-buffer) buf)) 1178 (set (make-local-variable 'calc-main-buffer) buf))
1181 (when (= (buffer-size) 0) 1179 (when (= (buffer-size) 0)
diff --git a/lisp/font-core.el b/lisp/font-core.el
index 5bf30d4d6c5..a077ce756c0 100644
--- a/lisp/font-core.el
+++ b/lisp/font-core.el
@@ -32,7 +32,7 @@
32 "Defaults for Font Lock mode specified by the major mode. 32 "Defaults for Font Lock mode specified by the major mode.
33Defaults should be of the form: 33Defaults should be of the form:
34 34
35 (KEYWORDS KEYWORDS-ONLY CASE-FOLD SYNTAX-ALIST SYNTAX-BEGIN ...) 35 (KEYWORDS [KEYWORDS-ONLY [CASE-FOLD [SYNTAX-ALIST [SYNTAX-BEGIN ...]]]])
36 36
37KEYWORDS may be a symbol (a variable or function whose value is the keywords to 37KEYWORDS may be a symbol (a variable or function whose value is the keywords to
38use for fontification) or a list of symbols. If KEYWORDS-ONLY is non-nil, 38use for fontification) or a list of symbols. If KEYWORDS-ONLY is non-nil,
@@ -66,11 +66,10 @@ textual modes (i.e., the mode-dependent function is known to put point and mark
66around a text block relevant to that mode). 66around a text block relevant to that mode).
67 67
68Other variables include that for syntactic keyword fontification, 68Other variables include that for syntactic keyword fontification,
69`font-lock-syntactic-keywords' 69`font-lock-syntactic-keywords' and those for buffer-specialized fontification
70and those for buffer-specialized fontification functions, 70functions, `font-lock-fontify-buffer-function',
71`font-lock-fontify-buffer-function', `font-lock-unfontify-buffer-function', 71`font-lock-unfontify-buffer-function', `font-lock-fontify-region-function',
72`font-lock-fontify-region-function', `font-lock-unfontify-region-function', 72`font-lock-unfontify-region-function', and `font-lock-inhibit-thing-lock'.")
73`font-lock-inhibit-thing-lock' and `font-lock-maximum-size'.")
74(make-variable-buffer-local 'font-lock-defaults) 73(make-variable-buffer-local 'font-lock-defaults)
75 74
76(defvar font-lock-defaults-alist nil 75(defvar font-lock-defaults-alist nil
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 5bac7c56b21..3b49647395f 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -496,7 +496,7 @@ sometimes be slightly incorrect.")
496 "Function to determine which face to use when fontifying syntactically. 496 "Function to determine which face to use when fontifying syntactically.
497The function is called with a single parameter (the state as returned by 497The function is called with a single parameter (the state as returned by
498`parse-partial-sexp' at the beginning of the region to highlight) and 498`parse-partial-sexp' at the beginning of the region to highlight) and
499should return a face.") 499should return a face. This is normally set via `font-lock-defaults'.")
500 500
501(defvar font-lock-syntactic-keywords nil 501(defvar font-lock-syntactic-keywords nil
502 "A list of the syntactic keywords to highlight. 502 "A list of the syntactic keywords to highlight.
@@ -646,6 +646,7 @@ Major/minor modes can set this variable if they know which option applies.")
646;;;###autoload 646;;;###autoload
647(defun font-lock-add-keywords (mode keywords &optional append) 647(defun font-lock-add-keywords (mode keywords &optional append)
648 "Add highlighting KEYWORDS for MODE. 648 "Add highlighting KEYWORDS for MODE.
649
649MODE should be a symbol, the major mode command name, such as `c-mode' 650MODE should be a symbol, the major mode command name, such as `c-mode'
650or nil. If nil, highlighting keywords are added for the current buffer. 651or nil. If nil, highlighting keywords are added for the current buffer.
651KEYWORDS should be a list; see the variable `font-lock-keywords'. 652KEYWORDS should be a list; see the variable `font-lock-keywords'.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 8d758abe53f..a91c12bcaf2 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -929,7 +929,8 @@ and TO is ignored."
929 ;; by using `find-file-literally'. 929 ;; by using `find-file-literally'.
930 (unless (or (stringp from) 930 (unless (or (stringp from)
931 find-file-literally 931 find-file-literally
932 (memq (coding-system-type coding-system) '(0 5))) 932 (and coding-system
933 (memq (coding-system-type coding-system) '(0 5))))
933 (let ((auto-cs (save-excursion 934 (let ((auto-cs (save-excursion
934 (save-restriction 935 (save-restriction
935 (widen) 936 (widen)
diff --git a/lisp/term.el b/lisp/term.el
index b1ce432144e..473fafd558a 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -711,9 +711,10 @@ Buffer local variable.")
711 :group 'term 711 :group 'term
712 :type 'string) 712 :type 'string)
713 713
714;;; Use the same colors that xterm uses, see `xterm-standard-colors'.
714(defvar ansi-term-color-vector 715(defvar ansi-term-color-vector
715 [unspecified "black" "red" "green" "yellow" "blue" 716 [unspecified "black" "red3" "green3" "yellow3" "blue2"
716 "magenta" "cyan" "white"]) 717 "magenta3" "cyan3" "white"])
717 718
718;;; Inspiration came from comint.el -mm 719;;; Inspiration came from comint.el -mm
719(defvar term-buffer-maximum-size 2048 720(defvar term-buffer-maximum-size 2048
@@ -886,7 +887,9 @@ is buffer-local.")
886 (i 0)) 887 (i 0))
887 (while (< i 128) 888 (while (< i 128)
888 (define-key map (make-string 1 i) 'term-send-raw) 889 (define-key map (make-string 1 i) 'term-send-raw)
889 (define-key esc-map (make-string 1 i) 'term-send-raw-meta) 890 ;; Avoid O and [. They are used in escape sequences for various keys.
891 (unless (or (eq i ?O) (eq i 91))
892 (define-key esc-map (make-string 1 i) 'term-send-raw-meta))
890 (setq i (1+ i))) 893 (setq i (1+ i)))
891 (dolist (elm (generic-character-list)) 894 (dolist (elm (generic-character-list))
892 (define-key map (vector elm) 'term-send-raw)) 895 (define-key map (vector elm) 'term-send-raw))
@@ -909,6 +912,7 @@ is buffer-local.")
909 (define-key term-raw-map [right] 'term-send-right) 912 (define-key term-raw-map [right] 'term-send-right)
910 (define-key term-raw-map [left] 'term-send-left) 913 (define-key term-raw-map [left] 'term-send-left)
911 (define-key term-raw-map [delete] 'term-send-del) 914 (define-key term-raw-map [delete] 'term-send-del)
915 (define-key term-raw-map [deletechar] 'term-send-del)
912 (define-key term-raw-map [backspace] 'term-send-backspace) 916 (define-key term-raw-map [backspace] 'term-send-backspace)
913 (define-key term-raw-map [home] 'term-send-home) 917 (define-key term-raw-map [home] 'term-send-home)
914 (define-key term-raw-map [end] 'term-send-end) 918 (define-key term-raw-map [end] 'term-send-end)
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 96f79f6c864..c30ee7ab34a 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -53,10 +53,15 @@
53 (define-key map "\e[24~" [f12]) 53 (define-key map "\e[24~" [f12])
54 (define-key map "\e[29~" [print]) 54 (define-key map "\e[29~" [print])
55 55
56 (define-key map "\e[11;2~" [S-f1]) 56 (define-key map "\eOP" [f1])
57 (define-key map "\e[12;2~" [S-f2]) 57 (define-key map "\eOQ" [f2])
58 (define-key map "\e[13;2~" [S-f3]) 58 (define-key map "\eOR" [f3])
59 (define-key map "\e[14;2~" [S-f4]) 59 (define-key map "\eOS" [f4])
60
61 (define-key map "\eO2P" [S-f1])
62 (define-key map "\eO2Q" [S-f2])
63 (define-key map "\eO2R" [S-f3])
64 (define-key map "\eO2S" [S-f4])
60 (define-key map "\e[15;2~" [S-f5]) 65 (define-key map "\e[15;2~" [S-f5])
61 (define-key map "\e[17;2~" [S-f6]) 66 (define-key map "\e[17;2~" [S-f6])
62 (define-key map "\e[18;2~" [S-f7]) 67 (define-key map "\e[18;2~" [S-f7])
@@ -66,10 +71,10 @@
66 (define-key map "\e[23;2~" [S-f11]) 71 (define-key map "\e[23;2~" [S-f11])
67 (define-key map "\e[24;2~" [S-f12]) 72 (define-key map "\e[24;2~" [S-f12])
68 73
69 (define-key map "\e[11;5~" [C-f1]) 74 (define-key map "\eO5P" [C-f1])
70 (define-key map "\e[12;5~" [C-f2]) 75 (define-key map "\eO5Q" [C-f2])
71 (define-key map "\e[13;5~" [C-f3]) 76 (define-key map "\eO5R" [C-f3])
72 (define-key map "\e[14;5~" [C-f4]) 77 (define-key map "\eO5S" [C-f4])
73 (define-key map "\e[15;5~" [C-f5]) 78 (define-key map "\e[15;5~" [C-f5])
74 (define-key map "\e[17;5~" [C-f6]) 79 (define-key map "\e[17;5~" [C-f6])
75 (define-key map "\e[18;5~" [C-f7]) 80 (define-key map "\e[18;5~" [C-f7])
@@ -79,10 +84,10 @@
79 (define-key map "\e[23;5~" [C-f11]) 84 (define-key map "\e[23;5~" [C-f11])
80 (define-key map "\e[24;5~" [C-f12]) 85 (define-key map "\e[24;5~" [C-f12])
81 86
82 (define-key map "\e[11;6~" [C-S-f1]) 87 (define-key map "\eO6P" [C-S-f1])
83 (define-key map "\e[12;6~" [C-S-f2]) 88 (define-key map "\eO6Q" [C-S-f2])
84 (define-key map "\e[13;6~" [C-S-f3]) 89 (define-key map "\eO6R" [C-S-f3])
85 (define-key map "\e[14;6~" [C-S-f4]) 90 (define-key map "\eO6S" [C-S-f4])
86 (define-key map "\e[15;6~" [C-S-f5]) 91 (define-key map "\e[15;6~" [C-S-f5])
87 (define-key map "\e[17;6~" [C-S-f6]) 92 (define-key map "\e[17;6~" [C-S-f6])
88 (define-key map "\e[18;6~" [C-S-f7]) 93 (define-key map "\e[18;6~" [C-S-f7])
@@ -92,10 +97,10 @@
92 (define-key map "\e[23;6~" [C-S-f11]) 97 (define-key map "\e[23;6~" [C-S-f11])
93 (define-key map "\e[24;6~" [C-S-f12]) 98 (define-key map "\e[24;6~" [C-S-f12])
94 99
95 (define-key map "\e[11;3~" [A-f1]) 100 (define-key map "\eO3P" [A-f1])
96 (define-key map "\e[12;3~" [A-f2]) 101 (define-key map "\eO3Q" [A-f2])
97 (define-key map "\e[13;3~" [A-f3]) 102 (define-key map "\eO3R" [A-f3])
98 (define-key map "\e[14;3~" [A-f4]) 103 (define-key map "\eO3S" [A-f4])
99 (define-key map "\e[15;3~" [A-f5]) 104 (define-key map "\e[15;3~" [A-f5])
100 (define-key map "\e[17;3~" [A-f6]) 105 (define-key map "\e[17;3~" [A-f6])
101 (define-key map "\e[18;3~" [A-f7]) 106 (define-key map "\e[18;3~" [A-f7])
@@ -180,6 +185,66 @@
180 (set-keymap-parent map (keymap-parent function-key-map)) 185 (set-keymap-parent map (keymap-parent function-key-map))
181 (set-keymap-parent function-key-map map)) 186 (set-keymap-parent function-key-map map))
182 187
188;;; The terminal intialization C code file might have initialized
189;;; function keys F13->F60 from the termcap/terminfo information. On
190;;; a PC-style keyboard these keys correspond to
191;;; MODIFIER-FUNCTION_KEY, where modifier is S-, C, A-, C-S-. The
192;;; code here subsitutes the corresponding defintions in
193;;; function-key-map. This substitution is needed because if a key
194;;; definition if found in function-key-map, there are no further
195;;; lookups in other keymaps.
196(substitute-key-definition [f13] [S-f1] function-key-map)
197(substitute-key-definition [f14] [S-f2] function-key-map)
198(substitute-key-definition [f15] [S-f3] function-key-map)
199(substitute-key-definition [f16] [S-f4] function-key-map)
200(substitute-key-definition [f17] [S-f5] function-key-map)
201(substitute-key-definition [f18] [S-f6] function-key-map)
202(substitute-key-definition [f19] [S-f7] function-key-map)
203(substitute-key-definition [f20] [S-f8] function-key-map)
204(substitute-key-definition [f21] [S-f9] function-key-map)
205(substitute-key-definition [f22] [S-f10] function-key-map)
206(substitute-key-definition [f23] [S-f11] function-key-map)
207(substitute-key-definition [f24] [S-f12] function-key-map)
208
209(substitute-key-definition [f25] [C-f1] function-key-map)
210(substitute-key-definition [f26] [C-f2] function-key-map)
211(substitute-key-definition [f27] [C-f3] function-key-map)
212(substitute-key-definition [f28] [C-f4] function-key-map)
213(substitute-key-definition [f29] [C-f5] function-key-map)
214(substitute-key-definition [f30] [C-f6] function-key-map)
215(substitute-key-definition [f31] [C-f7] function-key-map)
216(substitute-key-definition [f32] [C-f8] function-key-map)
217(substitute-key-definition [f33] [C-f9] function-key-map)
218(substitute-key-definition [f34] [C-f10] function-key-map)
219(substitute-key-definition [f35] [C-f11] function-key-map)
220(substitute-key-definition [f36] [C-f12] function-key-map)
221
222(substitute-key-definition [f37] [C-S-f1] function-key-map)
223(substitute-key-definition [f38] [C-S-f2] function-key-map)
224(substitute-key-definition [f39] [C-S-f3] function-key-map)
225(substitute-key-definition [f40] [C-S-f4] function-key-map)
226(substitute-key-definition [f41] [C-S-f5] function-key-map)
227(substitute-key-definition [f42] [C-S-f6] function-key-map)
228(substitute-key-definition [f43] [C-S-f7] function-key-map)
229(substitute-key-definition [f44] [C-S-f8] function-key-map)
230(substitute-key-definition [f45] [C-S-f9] function-key-map)
231(substitute-key-definition [f46] [C-S-f10] function-key-map)
232(substitute-key-definition [f47] [C-S-f11] function-key-map)
233(substitute-key-definition [f48] [C-S-f12] function-key-map)
234
235(substitute-key-definition [f49] [A-f1] function-key-map)
236(substitute-key-definition [f50] [A-f2] function-key-map)
237(substitute-key-definition [f51] [A-f3] function-key-map)
238(substitute-key-definition [f52] [A-f4] function-key-map)
239(substitute-key-definition [f53] [A-f5] function-key-map)
240(substitute-key-definition [f54] [A-f6] function-key-map)
241(substitute-key-definition [f55] [A-f7] function-key-map)
242(substitute-key-definition [f56] [A-f8] function-key-map)
243(substitute-key-definition [f57] [A-f9] function-key-map)
244(substitute-key-definition [f58] [A-f10] function-key-map)
245(substitute-key-definition [f59] [A-f11] function-key-map)
246(substitute-key-definition [f60] [A-f12] function-key-map)
247
183;; Set up colors, for those versions of xterm that support it. 248;; Set up colors, for those versions of xterm that support it.
184(defvar xterm-standard-colors 249(defvar xterm-standard-colors
185 ;; The names in the comments taken from XTerm-col.ad in the xterm 250 ;; The names in the comments taken from XTerm-col.ad in the xterm