Visuwesh <visuwe...@gmail.com> 于2023年10月11日周三 23:36写道:
> >> + (caddr (read-multiple-choice > >> + "What to do with dropped file?" > >> + '((?a "attach" attach) > >> + (?o "open" open) > >> + (?f "insert file: link" file-link)))) > > > > The dialog box is shown in the center of frame and I find it a little > > inconvenient compared with a menu popped up just at the mouse > > location. How about using x-popup-menu? > > But isn't that for menus? I don't know how convenient is a menu > compared to a dialog box. But if the consensus is that a menu should be > popped, then I will adjust the query to use rmc or menu as per > use-dialog-box. Thanks for consideration. I don't mean menu keymap but a pop-up menu that simply returns a candidate, like (x-popup-menu t (list "What to do with dropped file?" (cons "" '(("Attach" . attach) ("Open" . open) ("Insert file: link" . file-link))))) The menu is popped up at the location where the file is dropped, so users only need to move the mouse slightly to select the desired action, rather than always moving the mouse to the center of frame. An example in dired mode is attached, and I feel it is a little more convenient and efficient from the perspective of user interaction ;)