diff options
| author | Noam Postavsky | 2017-07-22 08:07:37 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-07-22 08:20:13 -0400 |
| commit | 37954f39168e0dbfe3a82feb9b58fecfc5f1f318 (patch) | |
| tree | 11cf1284b5dbff3b96e6f0c0a9c148b69f88cb37 | |
| parent | ebb78a7bfa3e6a87cfb53f1f2b17fc2f61add595 (diff) | |
| download | emacs-37954f39168e0dbfe3a82feb9b58fecfc5f1f318.tar.gz emacs-37954f39168e0dbfe3a82feb9b58fecfc5f1f318.zip | |
Revert "Let delete-selection-mode work with popup-menu commands (Bug#27569)"
It turns out that this change is not needed, and it leaves several
command loops settings not done.
https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00757.html
https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00840.html
| -rw-r--r-- | lisp/menu-bar.el | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 4a569783293..3ca7d1b5b3d 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -2375,10 +2375,6 @@ FROM-MENU-BAR, if non-nil, means we are dropping one of menu-bar's menus." | |||
| 2375 | ;; `setup-specified-language-environment', for instance, | 2375 | ;; `setup-specified-language-environment', for instance, |
| 2376 | ;; expects this to be set from a menu keymap. | 2376 | ;; expects this to be set from a menu keymap. |
| 2377 | (setq last-command-event (car (last event))) | 2377 | (setq last-command-event (car (last event))) |
| 2378 | ;; Update `this-command' and run `pre-command-hook' so that | ||
| 2379 | ;; things like `delete-selection-pre-hook' will work correctly. | ||
| 2380 | (setq this-command cmd) | ||
| 2381 | (run-hooks 'pre-command-hook) | ||
| 2382 | ;; mouse-major-mode-menu was using `command-execute' instead. | 2378 | ;; mouse-major-mode-menu was using `command-execute' instead. |
| 2383 | (call-interactively cmd)))) | 2379 | (call-interactively cmd)))) |
| 2384 | 2380 | ||