changeset 19488:25a37a54148f

(delete-selection-mode): Put back :initialize keyword. At the end of the file, test this variable, and turn on the mode if it is non-nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 23 Aug 1997 17:04:52 +0000
parents 67cdccd3cc4c
children e8c4bdc27fc2
files lisp/delsel.el
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/delsel.el	Sat Aug 23 17:02:44 1997 +0000
+++ b/lisp/delsel.el	Sat Aug 23 17:04:52 1997 +0000
@@ -62,6 +62,7 @@
 You must modify via \\[customize] for this variable to have an effect."
   :set (lambda (symbol value)
 	 (delete-selection-mode (or value 0)))
+  :initialize 'custom-initialize-default
   :type 'boolean
   :group 'editing-basics
   :require 'delsel)
@@ -130,4 +131,10 @@
 
 (provide 'delsel)
 
+;; 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))
+
 ;;; delsel.el ends here