aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-11 00:23:00 +0000
committerRichard M. Stallman1997-08-11 00:23:00 +0000
commit83d1d58cbfaa6ddcce035873a04646855f0eca98 (patch)
treed44d147b20981ad05d5aca2e19dfb3ebf07fa376
parent65788bc22829e1d832bf2aabc01f00d3aa928f88 (diff)
downloademacs-83d1d58cbfaa6ddcce035873a04646855f0eca98.tar.gz
emacs-83d1d58cbfaa6ddcce035873a04646855f0eca98.zip
Customized.
-rw-r--r--lisp/emulation/pc-select.el38
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.
83This variable applies in PC Selection mode only. 87This variable applies in PC Selection mode only.
84The scroll commands normally generate an error if you try to scroll 88The scroll commands normally generate an error if you try to scroll
85past the top or bottom of the buffer. This is annoying when selecting 89past the top or bottom of the buffer. This is annoying when selecting
86text with these commands. If you set this variable to non-nil, these 90text with these commands. If you set this variable to non-nil, these
87errors are suppressed.") 91errors 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.
91Other keys that emulate pc-behavior will be untouched. 97Other keys that emulate pc-behavior will be untouched.
92This gives mostly Emacs-like behaviour with only the selection keys enabled.") 98This 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.
767Change mark behaviour to emulate Motif, MAC or MS-Windows cut and paste style,
768and cursor movement commands.
769This mode enables Delete Selection mode and Transient Mark mode.
770You 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