aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term/bg-mouse.el
diff options
context:
space:
mode:
authorEli Zaretskii2026-01-21 17:37:33 +0200
committerEli Zaretskii2026-01-21 17:37:33 +0200
commitd4dbce74a7bbd1e7c0a3ef7cc7600a5627e26ad6 (patch)
treed985dc392660f79a02fd7fc514592e6cf32150e3 /lisp/term/bg-mouse.el
parentfe2469c1c139e85742cf56dc2a9b6eaf7aad36a7 (diff)
downloademacs-master.tar.gz
emacs-master.zip
Fix updating buffer menu after invoking "M-x term"HEADmaster
The doc string of 'frame-or-buffer-changed-p' says not to call it with the nil argument, but term.el did. Since "M-x term" puts 'term--update-term-menu' on the 'menu-bar-update-hook' ahead of 'menu-bar-update-buffers', it caused the latter decide that there was no change in buffers, because the internal state variable used by 'frame-or-buffer-changed-p' when called with the nil argument was reset by 'term--update-term-menu'. Fix that by using a non-nil state variable. * lisp/term.el (term--buffers-changed): New variable. (term--update-term-menu): Use it when calling 'frame-or-buffer-changed-p'. (Bug#80231)
Diffstat (limited to 'lisp/term/bg-mouse.el')
0 files changed, 0 insertions, 0 deletions