Comments (6)
#42 fixes this for TTY in minibuffer menu bar, but not dropdown menubar.
from explain-pause-mode.
Doesn't work in windowed mode, function for example menu-find-file-existing
from explain-pause-mode.
menu-find-file-existing
ultimately calls x-file-dialog
, opening a new issue for that later. Focusing this only on TTY.
from explain-pause-mode.
Notes:
F10
-> menu-bar-open
(menu.el) -> popup-menu
-> x-popup-menu
(called a lot of places), C code -> menu_show_hook
(C).
x-popup-menu
only called inkeyboard.c
, inread_char_x_menu_prompt
fromread_char
which we already covered in #17
Splits into
-> x_menu_show
-> ns_menu_show
-> w32_menu_show
-> tty_menu_show
-
Timers definitely run when menu is open. Add a test for this case. Also, what if minibuffer is open and THEN you open menu?
-
tty_menu_show
->tty_menu_activate
->read_menu_input
->read_menu_command
->read_key_sequence
->read_char
is why
TL;DR we should be safe to advise x-popup-menu
, on TTY at the very least. Insert a native frame like read_char
family.
from explain-pause-mode.
Timer with minibuffer open THEN F10 without advising menu-bar-open
;; enter m-x
("enter" "execute-extended-command" "root-emacs" "root-emacs" nil 0 nil nil nil 1)
("enter" "completing-read-default" "execute-extended-command" "execute-extended-command" nil 0 nil nil nil 2)
;; advise read-from-minibuffer
("enter" "#<subr read-from-minibuffer>" "completing-read-default" "completing-read-default" t 0 nil nil nil 3)
;; timer runs
("enter" "silly" "#<subr read-from-minibuffer>" "timer" nil 0 nil nil nil 3)
("exit" "silly" "timer" 0 nil)
("enter" "silly" "#<subr read-from-minibuffer>" "timer" nil 0 nil nil nil 3)
("exit" "silly" "timer" 0 nil)
;; open menu-bar
("enter" "menu-bar-open" "#<subr read-from-minibuffer>" "#<subr read-from-minibuffer>" nil 0 nil nil nil 4)
;; close menu-bar with c-g
("exit" "menu-bar-open" "#<subr read-from-minibuffer>" 98114 profile)
;; close minibuffer with c-g
("enter" "abort-recursive-edit" "#<subr read-from-minibuffer>" "#<subr read-from-minibuffer>" nil 0 nil nil nil 4)
("exit" "abort-recursive-edit" "#<subr read-from-minibuffer>" 0 nil)
("exit" "#<subr read-from-minibuffer>" "completing-read-default" 6035 nil)
("exit" "completing-read-default" "execute-extended-command" 0 nil)
("exit" "execute-extended-command" "root-emacs" 0 nil)
from explain-pause-mode.
;; with advising `x-popup-menu`
("enter" "menu-bar-open" "root-emacs" "root-emacs" nil 0 nil nil nil 1)
("enter" "#<subr x-popup-menu>" "menu-bar-open" "menu-bar-open" t 0 nil nil nil 2)
("exit" "#<subr x-popup-menu>" "menu-bar-open" 5915 nil)
("exit" "menu-bar-open" "root-emacs" 1 nil)
from explain-pause-mode.
Related Issues (20)
- Bug report
- not top level in wrap-native HOT 3
- Installation of explain-pause-mode failed
- Explain-pause-mode is now _disabled_ so you can continue to hopefully use Emacs
- ignore functions run on idle timers / when idle?
- Bug report (same as many others, though details may be different)
- bug report
- problem with password in shell
- installation fails in Emacs 28.2 due to the long docstrings HOT 1
- Occasional hangs in Emacs 27.1, interruptible with SIGUSR2 HOT 10
- Disabling explain-pause-mode does not clear timers created while the mode is activated HOT 4
- Exception report HOT 2
- Exception
- Continuously log all function calls to file?
- Exception on void-function
- Bug HOT 1
- error when use emacs from snap
- Bug Report Requested
- Bug report requested
- not top level in wrap-native HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from explain-pause-mode.