annotate lisp/emulation/pc-mode.el @ 11804:7a7da7fca594

(compilation-next-error-locus): Ignore zero column number. (compilation-parse-errors): Don't store the beginning of the line containing the end of the error-regexp match. Instead, store the beginning of the line containing the start of the match, unless the match starts with a newline, in which case the beginning of the next line.
author Roland McGrath <roland@gnu.org>
date Fri, 12 May 1995 17:26:59 +0000
parents f09f5b29f524
children 91dc931a32c8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 (defun pc-bindings-mode ()
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 "Set up certain key bindings for PC compatibility.
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 The keys affected are:
11748
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
4 Delete (and its variants) delete forward instead of backward.
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
5 C-Backspace kills backward a word (as C-Delete normally would).
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
6 M-Backspace does undo.
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
7 Home and End move to beginning and end of line
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
8 C-Home and C-End move to beginning and end of buffer.
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
9 C-Escape does list-buffers."
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 (interactive)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 (define-key function-key-map [delete] "\C-d")
11747
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
13 (define-key function-key-map [M-delete] [?\M-d])
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
14 (define-key function-key-map [C-delete] [?\M-d])
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 (global-set-key [C-M-delete] 'kill-sexp)
11747
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
16 (global-set-key [C-backspace] 'backward-kill-word)
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
17 (global-set-key [M-backspace] 'undo)
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18
11748
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
19 (global-set-key [C-escape] 'list-buffers)
f09f5b29f524 Add C-escape binding.
Richard M. Stallman <rms@gnu.org>
parents: 11747
diff changeset
20
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 (global-set-key [home] 'beginning-of-line)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 (global-set-key [end] 'end-of-line)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 (global-set-key [C-home] 'beginning-of-buffer)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 (global-set-key [C-end] 'end-of-buffer))
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25