Mercurial > emacs
annotate lisp/emulation/pc-mode.el @ 68192:2cfa649fa39d
* mh-customize.el (mh-index): Rename group to mh-search and sort group
definition and options accordingly.
(mh-index-program): Rename to mh-search-program.
(mh-kill-folder-suppress-prompt-hooks): Rename mh-index-p to
mh-search-p.
(mh-search-mode-hook): Change group from mh-index to mh-search.
(mh-index-folder): Rename to mh-search-folder. Change group from
mh-index to mh-search.
* mh-e.el (mh-folder-font-lock-keywords): Rename mh-index-folder to
mh-search-folder.
* mh-search.el (mh-indexer) Rename to mh-searcher. The commands pick
and grep are searchers too but aren't indexed.
(mh-index-execute-search-function): Rename to mh-search-function.
(mh-index-next-result-function): Rename to
mh-search-next-result-function.
(mh-index-regexp-builder): Rename to mh-search-regexp-builder.
(mh-search): Since redo-search-flag defaults to nil and is of lesser
importance, make it an optional argument and place it after the folder
and search-regexp arguments. Sync docstring with manual.
(mh-search-mode-map): Autoload so that keys are shown in help even
before mh-search is loaded.
(mh-search-mode): Sync docstring with manual.
(mh-index-do-search): Rename argument indexer to searcher. Sync
docstring with manual.
(mh-pick-do-search): Sync docstring with manual.
(mh-index-p): Rename to mh-search-p.
(mh-indexer-choices): Rename to mh-search-choices.
(mh-index-choose): Rename to mh-search-choose. Rename argument indexer
to searcher.
(mh-swish++-execute-search, mh-swish-execute-search)
(mh-mairix-execute-search, mh-namazu-execute-search): Drop "and read
the results" from docstring since these functions don't.
(mh-pick-execute-search, mh-grep-execute-search): Sync docstring with
manual.
(mh-index-generate-pretty-name): Prune -search from string so that
folder names for pick searches are the same as those of other
searches.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Sat, 14 Jan 2006 21:17:37 +0000 |
parents | 34bd8e434dd7 |
children | 067115a6e738 edf295560b5a |
rev | line source |
---|---|
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
18383
diff
changeset
|
1 ;;; pc-mode.el --- emulate certain key bindings used on PCs |
14169 | 2 |
64701
34bd8e434dd7
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1995, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
4 |
38695 | 5 ;; Maintainer: FSF |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
6 ;; Keywords: emulations |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
7 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
8 ;; This file is part of GNU Emacs. |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
9 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
10 ;; 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
|
11 ;; 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
|
12 ;; 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
|
13 ;; any later version. |
14169 | 14 |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
15 ;; 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
|
16 ;; 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
|
17 ;; 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
|
18 ;; GNU General Public License for more details. |
14169 | 19 |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
20 ;; You should have received a copy of the GNU General Public License |
14169 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
64085 | 22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 ;; Boston, MA 02110-1301, USA. | |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
24 |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
18383
diff
changeset
|
25 ;;; Commentary: |
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
18383
diff
changeset
|
26 |
14169 | 27 ;;; Code: |
12372
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
28 |
91dc931a32c8
(pc-bindings-mode): Add autoload.
Richard M. Stallman <rms@gnu.org>
parents:
11748
diff
changeset
|
29 ;;;###autoload |
11344 | 30 (defun pc-bindings-mode () |
31 "Set up certain key bindings for PC compatibility. | |
32 The keys affected are: | |
11748 | 33 Delete (and its variants) delete forward instead of backward. |
34 C-Backspace kills backward a word (as C-Delete normally would). | |
35 M-Backspace does undo. | |
36 Home and End move to beginning and end of line | |
37 C-Home and C-End move to beginning and end of buffer. | |
38 C-Escape does list-buffers." | |
11344 | 39 |
40 (interactive) | |
41 (define-key function-key-map [delete] "\C-d") | |
11747 | 42 (define-key function-key-map [M-delete] [?\M-d]) |
43 (define-key function-key-map [C-delete] [?\M-d]) | |
11344 | 44 (global-set-key [C-M-delete] 'kill-sexp) |
11747 | 45 (global-set-key [C-backspace] 'backward-kill-word) |
46 (global-set-key [M-backspace] 'undo) | |
11344 | 47 |
11748 | 48 (global-set-key [C-escape] 'list-buffers) |
49 | |
11344 | 50 (global-set-key [home] 'beginning-of-line) |
51 (global-set-key [end] 'end-of-line) | |
52 (global-set-key [C-home] 'beginning-of-buffer) | |
53 (global-set-key [C-end] 'end-of-buffer)) | |
54 | |
18383 | 55 (provide 'pc-mode) |
56 | |
52401 | 57 ;;; arch-tag: df007c05-f885-4cd0-8c1e-487d0f8dd9c9 |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
18383
diff
changeset
|
58 ;;; pc-mode.el ends here |