summaryrefslogtreecommitdiff
path: root/lisp/delsel.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-17 21:59:31 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-17 21:59:31 +0000
commit775f2461405df9dec4842b80f32bc8564e44ee84 (patch)
tree2573a78b603ae09b509bf7ba1d0b2ab5a548c747 /lisp/delsel.el
parent1e70790f2f4826c646d5640a9f6162aa78ea682b (diff)
(delete-selection-mode): Add custom-loads property.
Diffstat (limited to 'lisp/delsel.el')
-rw-r--r--lisp/delsel.el16
1 files changed, 5 insertions, 11 deletions
diff --git a/lisp/delsel.el b/lisp/delsel.el
index bc6bea5987..0aea9cf221 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -67,18 +67,12 @@ You must modify via \\[customize] for this variable to have an effect."
:type 'boolean
:group 'editing-basics
:require 'delsel)
+;; Force loading of this file in order to customize delete-selection-mode.
+(put 'delete-selection-mode 'custom-loads '(delsel))
-;; Since the above autoloaded option contains a `:set' form, this file would
-;; get loaded from loaddefs.el. We can use the above `:initialize' keyword,
-;; and the below `when' form, to the prevent automatic loading of this file, or
-;; an `:initialize' keyword of the form:
-;;
-;; :initialize (lambda (symbol value)
-;; (if value
-;; (delete-selection-mode t)
-;; (custom-initialize-default symbol nil))
-;;
-;; We choose the former as it is the general mechanism for such toggle options.
+;; This is the standard way mechanism to put the mode into effect
+;; if delete-selection-mode has already been set to t
+;; when this file is loaded.
(when delete-selection-mode
(delete-selection-mode t))