Mercurial > emacs
comparison lisp/emulation/pc-select.el @ 19289:4e824f1fe62d
Customized.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 11 Aug 1997 00:23:00 +0000 |
parents | 75f7eec6d388 |
children | a77d473867b8 |
comparison
equal
deleted
inserted
replaced
19288:bdc4b7818976 | 19289:4e824f1fe62d |
---|---|
53 ;; David Biesack <sasdjb@unx.sas.com> suggested some more cleanup. | 53 ;; David Biesack <sasdjb@unx.sas.com> suggested some more cleanup. |
54 ;; Thanks to Pete Forman <pete.forman@airgun.wg.waii.com> | 54 ;; Thanks to Pete Forman <pete.forman@airgun.wg.waii.com> |
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. |
62 ;; | 62 ;; |
63 ;; Ok, some details about the idea of pc-selection-mode: | 63 ;; Ok, some details about the idea of pc-selection-mode: |
75 ;; S-insert (paste) and C-insert (copy). These keys do the same in many | 75 ;; S-insert (paste) and C-insert (copy). These keys do the same in many |
76 ;; other programs. | 76 ;; other programs. |
77 ;; | 77 ;; |
78 | 78 |
79 ;;;; Customization: | 79 ;;;; Customization: |
80 | 80 (defgroup pc-select nil |
81 (defvar pc-select-override-scroll-error t | 81 "Emulate pc bindings." |
82 :prefix "pc-select" | |
83 :group 'editing-basics) | |
84 | |
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." |
88 | 92 :type 'boolean |
89 (defvar pc-select-selection-keys-only nil | 93 :group 'pc-select) |
94 | |
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." |
93 | 99 :type 'boolean |
94 (defvar pc-select-meta-moves-sexps nil | 100 :group 'pc-select) |
95 "*Non-nil means move sexp-wise with Meta key, otherwise move word-wise.") | 101 |
102 (defcustom pc-select-meta-moves-sexps nil | |
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 |
99 ;;;; | 109 ;;;; |
100 | 110 |
748 (setq highlight-nonselected-windows nil) | 758 (setq highlight-nonselected-windows nil) |
749 (setq transient-mark-mode t) | 759 (setq transient-mark-mode t) |
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 |