]> code.delx.au - gnu-emacs/blobdiff - lisp/novice.el
* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class",
[gnu-emacs] / lisp / novice.el
index fa41b2bbc1e5f7c8adee9e961676255fefc55368..c621ac4b6923c44ad20cd9db409eed72c52dba73 100644 (file)
@@ -33,8 +33,6 @@
 ;; The command is found in this-command
 ;; and the keys are returned by (this-command-keys).
 
-(eval-when-compile (require 'cl))
-
 ;;;###autoload
 (define-obsolete-variable-alias 'disabled-command-hook
   'disabled-command-function "22.1")
@@ -101,7 +99,7 @@ SPC to try the command just this once, but leave it disabled.
         (ding)
         (message "Please type y, n, ! or SPC (the space bar): "))))
     (setq char (downcase char))
-    (case char
+    (pcase char
      (?\C-g (setq quit-flag t))
      (?! (setq disabled-command-function nil))
      (?y
@@ -161,8 +159,8 @@ to future sessions."
 (defun disable-command (command)
   "Require special confirmation to execute COMMAND from now on.
 COMMAND must be a symbol.
-This command alters the user's .emacs file so that this will apply
-to future sessions."
+This command alters your init file so that this choice applies to
+future sessions."
   (interactive "CDisable command: ")
   (en/disable-command command t))