]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove 'mode-exit(ed)' stuff
authorEshel Yaron <me@eshelyaron.com>
Fri, 24 May 2024 13:22:10 +0000 (15:22 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 24 May 2024 13:39:21 +0000 (15:39 +0200)
lisp/repeat.el
lisp/replace.el
lisp/simple.el
src/keyboard.c

index 34cef51906777aa288fb2734e90fbacb187c3743..9d54ea542e4c803c945484a12b0b5e6efee4956c 100644 (file)
@@ -223,8 +223,6 @@ recently executed command not bound to an input event\"."
   (cond
    ((null last-repeatable-command)
     (error "There is nothing to repeat"))
-   ((eq last-repeatable-command 'mode-exit)
-    (error "`last-repeatable-command' is `mode-exit' and can't be repeated"))
    ((memq last-repeatable-command repeat-too-dangerous)
     (error "Command %S too dangerous to repeat automatically"
           last-repeatable-command)))
index 14b16172e45da2cd2e100e5c7e9a181326ceb25a..042f37a808f328479af860cbcedb832beb54d8df 100644 (file)
@@ -3327,7 +3327,6 @@ characters."
                        ;; specially here, since we reread
                        ;; any unrecognized character.
                        (t
-                        (setq this-command 'mode-exited)
                         (setq keep-going nil)
                         (setq unread-command-events
                               (append (listify-key-sequence key)
index 32bc4599a1dfb9892ff1dfd0ccd971e85c38b17a..8f4664200de93c2326fdb2587f820ad66f4cfe12 100644 (file)
@@ -9574,8 +9574,7 @@ can get out of the minibuffer or other recursive edit,
 cancel the use of the current buffer (for special-purpose buffers),
 or go back to just one window (by deleting all but the selected window)."
   (interactive)
-  (cond ((eq last-command 'mode-exited) nil)
-       ((region-active-p)
+  (cond ((region-active-p)
         (deactivate-mark))
        ((> (minibuffer-depth) 0)
         (abort-recursive-edit))
index 3551a77a9c939d6f6db1f192774b2dc8d6c09754..d49aa7d2ee8f9c25688f00aadd62d339daa0cace 100644 (file)
@@ -13194,11 +13194,6 @@ Normally a symbol with a function definition, but can be whatever was found
 in the keymap, or whatever the variable `this-command' was set to by that
 command.
 
-The value `mode-exit' is special; it means that the previous command
-read an event that told it to exit, and it did so and unread that event.
-In other words, the present command is the event that made the previous
-command exit.
-
 The value `kill-region' is special; it means that the previous command
 was a kill command.