# HG changeset patch # User Richard M. Stallman # Date 872355892 0 # Node ID 25a37a54148f7fa519399b5c26c430ae8f402c38 # Parent 67cdccd3cc4c198a74cf2deb5b4119f4cbc4646b (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. diff -r 67cdccd3cc4c -r 25a37a54148f lisp/delsel.el --- 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