]> git.eshelyaron.com Git - emacs.git/commitdiff
Set the normal-erase-is-backspace variable from Customize
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 24 Jul 2021 16:21:50 +0000 (18:21 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 24 Jul 2021 16:21:50 +0000 (18:21 +0200)
* lisp/simple.el (normal-erase-is-backspace): Always set the
variable so that Customize is up-to-date (bug#49593).

lisp/simple.el

index 1a49fe24252da670d5a790423c41a625967f573c..5ec7fd80eb5bc595f29f09b6de05798c45d73694 100644 (file)
@@ -9535,9 +9535,9 @@ call `normal-erase-is-backspace-mode' (which see) instead."
   :set (lambda (symbol value)
         ;; The fboundp is because of a problem with :set when
         ;; dumping Emacs.  It doesn't really matter.
-        (if (fboundp 'normal-erase-is-backspace-mode)
-            (normal-erase-is-backspace-mode (or value 0))
-          (set-default symbol value))))
+        (when (fboundp 'normal-erase-is-backspace-mode)
+          (normal-erase-is-backspace-mode (or value 0)))
+        (set-default symbol value)))
 
 (defun normal-erase-is-backspace-setup-frame (&optional frame)
   "Set up `normal-erase-is-backspace-mode' on FRAME, if necessary."