aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index c73c94b53ad..801a3c992c8 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2306,8 +2306,8 @@ maps."
2306 (let* ((execute-extended-command--last-typed nil) 2306 (let* ((execute-extended-command--last-typed nil)
2307 (keymaps 2307 (keymaps
2308 ;; The major mode's keymap and any active minor modes. 2308 ;; The major mode's keymap and any active minor modes.
2309 (cons 2309 (nconc
2310 (current-local-map) 2310 (and (current-local-map) (list (current-local-map)))
2311 (mapcar 2311 (mapcar
2312 #'cdr 2312 #'cdr
2313 (seq-filter 2313 (seq-filter
@@ -2957,7 +2957,8 @@ undo record: if we undo from 4, `pending-undo-list' will be at 3,
2957 2957
2958(defcustom undo-no-redo nil 2958(defcustom undo-no-redo nil
2959 "If t, `undo' doesn't go through redo entries." 2959 "If t, `undo' doesn't go through redo entries."
2960 :type 'boolean) 2960 :type 'boolean
2961 :group 'undo)
2961 2962
2962(defvar pending-undo-list nil 2963(defvar pending-undo-list nil
2963 "Within a run of consecutive undo commands, list remaining to be undone. 2964 "Within a run of consecutive undo commands, list remaining to be undone.
@@ -9440,9 +9441,6 @@ PREFIX is the string that represents this modifier in an event type symbol."
9440(defvar clone-buffer-hook nil 9441(defvar clone-buffer-hook nil
9441 "Normal hook to run in the new buffer at the end of `clone-buffer'.") 9442 "Normal hook to run in the new buffer at the end of `clone-buffer'.")
9442 9443
9443(defvar clone-indirect-buffer-hook nil
9444 "Normal hook to run in the new buffer at the end of `clone-indirect-buffer'.")
9445
9446(defun clone-process (process &optional newname) 9444(defun clone-process (process &optional newname)
9447 "Create a twin copy of PROCESS. 9445 "Create a twin copy of PROCESS.
9448If NEWNAME is nil, it defaults to PROCESS' name; 9446If NEWNAME is nil, it defaults to PROCESS' name;
@@ -9595,8 +9593,6 @@ Returns the newly created indirect buffer."
9595 (setq newname (substring newname 0 (match-beginning 0)))) 9593 (setq newname (substring newname 0 (match-beginning 0))))
9596 (let* ((name (generate-new-buffer-name newname)) 9594 (let* ((name (generate-new-buffer-name newname))
9597 (buffer (make-indirect-buffer (current-buffer) name t))) 9595 (buffer (make-indirect-buffer (current-buffer) name t)))
9598 (with-current-buffer buffer
9599 (run-hooks 'clone-indirect-buffer-hook))
9600 (when display-flag 9596 (when display-flag
9601 (pop-to-buffer buffer nil norecord)) 9597 (pop-to-buffer buffer nil norecord))
9602 buffer)) 9598 buffer))