Mercurial > emacs
annotate lisp/emulation/pc-mode.el @ 14243:df4d211a0522
(Vwin32_enable_italics, Vwin32_enable_palette):
New variables.
(syms_of_win32fns): Set up new lisp variables.
(x_set_frame_parameters, x_real_positions, win32_load_font,
win32_abort): Conform to coding style.
(Fwin32_define_rgb_color, Fwin32_load_color_file, Fwin32_map_color,
Fwin32_unmap_color, Fwin32_regenerate_palette): New functions.
(syms_of_win32fns): Set up new lisp subroutines.
(defined_color): Use palettes.
(map_mode): Function removed.
(win32_init_class): Don't CS_OWNDC.
(win32_wnd_proc): Use segregated critical sections appropriately.
Handle WM_PALETTECHANGED.
Record WINDOWPLACEMENT structure length.
(x_to_win32_weight, win32_to_x_weight): Handle "heavy", "extrabold",
"light", "extralight", and "thin" fonts.
(x_to_win32_charset, win32_to_x_charset): New functions.
(win32_to_x_font): Use win32_to_x_charset.
(x_to_win32_font): Use x_to_win32_charset.
Support Windows font names.
(Fx_list_fonts, Fx_display_color_cells, Fx_display_mm_height.
Fx_display_mm_width): Use GetDC directly.
(Fx_open_connection): Support external color mapping files.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Sun, 21 Jan 1996 00:24:03 +0000 |
parents | 83f275dcd93a |
children | bd56cdc4d07b |
rev | line source |
---|---|
13337 | 1 ;;; pc-mode.el emulate certain key bindings used on PCs. |
14169 | 2 |
13336 | 3 ;; Copyright (C) 1995 Free Software Foundation, Inc. |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
4 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
5 ;; Keywords: emulations |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
6 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
7 ;; This file is part of GNU Emacs. |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
8 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
9 ;; GNU Emacs is free software; you can redistribute it and/or modify |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
10 ;; it under the terms of the GNU General Public License as published by |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
11 ;; the Free Software Foundation; either version 2, or (at your option) |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
12 ;; any later version. |
14169 | 13 |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
14 ;; GNU Emacs is distributed in the hope that it will be useful, |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
17 ;; GNU General Public License for more details. |
14169 | 18 |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
19 ;; You should have received a copy of the GNU General Public License |
14169 | 20 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
22 ;; Boston, MA 02111-1307, USA. | |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
23 |
14169 | 24 ;;; Code: |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
25 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
26 ;;;###autoload |
11344 | 27 (defun pc-bindings-mode () |
28 "Set up certain key bindings for PC compatibility. | |
29 The keys affected are: | |
11748 | 30 Delete (and its variants) delete forward instead of backward. |
31 C-Backspace kills backward a word (as C-Delete normally would). | |
32 M-Backspace does undo. | |
33 Home and End move to beginning and end of line | |
34 C-Home and C-End move to beginning and end of buffer. | |
35 C-Escape does list-buffers." | |
11344 | 36 |
37 (interactive) | |
38 (define-key function-key-map [delete] "\C-d") | |
11747 | 39 (define-key function-key-map [M-delete] [?\M-d]) |
40 (define-key function-key-map [C-delete] [?\M-d]) | |
11344 | 41 (global-set-key [C-M-delete] 'kill-sexp) |
11747 | 42 (global-set-key [C-backspace] 'backward-kill-word) |
43 (global-set-key [M-backspace] 'undo) | |
11344 | 44 |
11748 | 45 (global-set-key [C-escape] 'list-buffers) |
46 | |
11344 | 47 (global-set-key [home] 'beginning-of-line) |
48 (global-set-key [end] 'end-of-line) | |
49 (global-set-key [C-home] 'beginning-of-buffer) | |
50 (global-set-key [C-end] 'end-of-buffer)) | |
51 | |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
52 ;; pc-mode.el ends here |