diff options
| author | Richard M. Stallman | 1997-08-11 00:23:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-11 00:23:00 +0000 |
| commit | 83d1d58cbfaa6ddcce035873a04646855f0eca98 (patch) | |
| tree | d44d147b20981ad05d5aca2e19dfb3ebf07fa376 | |
| parent | 65788bc22829e1d832bf2aabc01f00d3aa928f88 (diff) | |
| download | emacs-83d1d58cbfaa6ddcce035873a04646855f0eca98.tar.gz emacs-83d1d58cbfaa6ddcce035873a04646855f0eca98.zip | |
Customized.
| -rw-r--r-- | lisp/emulation/pc-select.el | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/lisp/emulation/pc-select.el b/lisp/emulation/pc-select.el index e0e6aa2c215..b2ad316fb66 100644 --- a/lisp/emulation/pc-select.el +++ b/lisp/emulation/pc-select.el | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | ;; for additional motif keybindings. | 55 | ;; for additional motif keybindings. |
| 56 | ;; Thanks to jvromans@squirrel.nl (Johan Vromans) for a bug report | 56 | ;; Thanks to jvromans@squirrel.nl (Johan Vromans) for a bug report |
| 57 | ;; concerning setting of this-command. | 57 | ;; concerning setting of this-command. |
| 58 | ;; Dan Nicolaescu <done@nexus.sorostm.ro> suggested suppressing the | 58 | ;; Dan Nicolaescu <done@ece.arizona.ro> suggested suppressing the |
| 59 | ;; scroll-up/scroll-down error. | 59 | ;; scroll-up/scroll-down error. |
| 60 | ;; Eli Barzilay (eli@cs.bgu.ac.il) suggested the sexps functions and | 60 | ;; Eli Barzilay (eli@cs.bgu.ac.il) suggested the sexps functions and |
| 61 | ;; keybindings. | 61 | ;; keybindings. |
| @@ -77,22 +77,32 @@ | |||
| 77 | ;; | 77 | ;; |
| 78 | 78 | ||
| 79 | ;;;; Customization: | 79 | ;;;; Customization: |
| 80 | (defgroup pc-select nil | ||
| 81 | "Emulate pc bindings." | ||
| 82 | :prefix "pc-select" | ||
| 83 | :group 'editing-basics) | ||
| 80 | 84 | ||
| 81 | (defvar pc-select-override-scroll-error t | 85 | (defcustom pc-select-override-scroll-error t |
| 82 | "*Non-nil means don't generate error on scrolling past edge of buffer. | 86 | "*Non-nil means don't generate error on scrolling past edge of buffer. |
| 83 | This variable applies in PC Selection mode only. | 87 | This variable applies in PC Selection mode only. |
| 84 | The scroll commands normally generate an error if you try to scroll | 88 | The scroll commands normally generate an error if you try to scroll |
| 85 | past the top or bottom of the buffer. This is annoying when selecting | 89 | past the top or bottom of the buffer. This is annoying when selecting |
| 86 | text with these commands. If you set this variable to non-nil, these | 90 | text with these commands. If you set this variable to non-nil, these |
| 87 | errors are suppressed.") | 91 | errors are suppressed." |
| 92 | :type 'boolean | ||
| 93 | :group 'pc-select) | ||
| 88 | 94 | ||
| 89 | (defvar pc-select-selection-keys-only nil | 95 | (defcustom pc-select-selection-keys-only nil |
| 90 | "*Non-nil means only bind the basic selection keys when started. | 96 | "*Non-nil means only bind the basic selection keys when started. |
| 91 | Other keys that emulate pc-behavior will be untouched. | 97 | Other keys that emulate pc-behavior will be untouched. |
| 92 | This gives mostly Emacs-like behaviour with only the selection keys enabled.") | 98 | This gives mostly Emacs-like behaviour with only the selection keys enabled." |
| 99 | :type 'boolean | ||
| 100 | :group 'pc-select) | ||
| 93 | 101 | ||
| 94 | (defvar pc-select-meta-moves-sexps nil | 102 | (defcustom pc-select-meta-moves-sexps nil |
| 95 | "*Non-nil means move sexp-wise with Meta key, otherwise move word-wise.") | 103 | "*Non-nil means move sexp-wise with Meta key, otherwise move word-wise." |
| 104 | :type 'boolean | ||
| 105 | :group 'pc-select) | ||
| 96 | 106 | ||
| 97 | ;;;; | 107 | ;;;; |
| 98 | ;; misc | 108 | ;; misc |
| @@ -750,4 +760,18 @@ but before calling pc-selection-mode): | |||
| 750 | (setq mark-even-if-inactive t) | 760 | (setq mark-even-if-inactive t) |
| 751 | (delete-selection-mode 1) | 761 | (delete-selection-mode 1) |
| 752 | ) | 762 | ) |
| 763 | |||
| 764 | ;;;###autoload | ||
| 765 | (defcustom pc-selection-mode nil | ||
| 766 | "Toggle PC Selection mode. | ||
| 767 | Change mark behaviour to emulate Motif, MAC or MS-Windows cut and paste style, | ||
| 768 | and cursor movement commands. | ||
| 769 | This mode enables Delete Selection mode and Transient Mark mode. | ||
| 770 | You must modify via \\[customize] for this variable to have an effect." | ||
| 771 | :set (lambda (symbol value) | ||
| 772 | (if value (pc-selection-mode))) | ||
| 773 | :type 'boolean | ||
| 774 | :group 'pc-select | ||
| 775 | :require 'pc-select) | ||
| 776 | |||
| 753 | ;;; pc-select.el ends here | 777 | ;;; pc-select.el ends here |