Merge from origin/emacs-28
da23e607d3
Select the right buffer for event in context-menu function...
This commit is contained in:
commit
abf06a46b4
2 changed files with 12 additions and 9 deletions
|
@ -93,7 +93,9 @@
|
|||
'mark-whole-buffer)
|
||||
|
||||
;; Include text-mode select menu only in strings and comments.
|
||||
(when (nth 8 (save-excursion (syntax-ppss (posn-point (event-end click)))))
|
||||
(when (nth 8 (save-excursion
|
||||
(with-current-buffer (window-buffer (posn-window (event-end click)))
|
||||
(syntax-ppss (posn-point (event-end click))))))
|
||||
(text-mode-context-menu menu click))
|
||||
|
||||
menu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue