changeset 18840:c8c67c398475

(delete-selection-mode): Add custom-loads property.
author Richard M. Stallman <rms@gnu.org>
date Thu, 17 Jul 1997 21:59:31 +0000
parents 1405083241e8
children 36704f455f32
files lisp/delsel.el
diffstat 1 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/delsel.el	Thu Jul 17 19:37:07 1997 +0000
+++ b/lisp/delsel.el	Thu Jul 17 21:59:31 1997 +0000
@@ -67,18 +67,12 @@
   :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))