diff options
author | Glenn Morris <rgm@gnu.org> | 2020-02-23 07:50:28 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2020-02-23 07:50:28 -0800 |
commit | 3f01a17d68644cc3d802e1565e6f2a3b89d9279a (patch) | |
tree | 5e1a60be7a5b935af4f04ffd4d6dba866b4cf34d /lisp/emacs-lisp | |
parent | b6be1ce644a07b6dc30eaa24dec082effd7add40 (diff) | |
parent | dd5756436c580cc0d00ee875d6645861daf5a867 (diff) | |
download | emacs-3f01a17d68644cc3d802e1565e6f2a3b89d9279a.tar.gz emacs-3f01a17d68644cc3d802e1565e6f2a3b89d9279a.tar.bz2 emacs-3f01a17d68644cc3d802e1565e6f2a3b89d9279a.zip |
Merge from origin/emacs-27
dd5756436c Move more logic to vc-ignore from vc-default-ignore
2aed279be1 Warn about the likes of "[:alnum:]" in regexps
0273f261a7 Don't write absolute filenames and duplicate strings to CV...
d7c22338d2 Fix cursor-sensor--detect when current buf != selected win...
2e39fc83bb * doc/emacs/sending.texi (Mail Sending): Fix index entries.
b410f902d5 Document 'message-send-mail-function' in the Emacs manual
ac0546612d Fix reference to 'message-send-and-exit' in Emacs manual
cd6a9b8f65 Skip shell prompt on current line in Eshell even if it's p...
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cursor-sensor.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/cursor-sensor.el b/lisp/emacs-lisp/cursor-sensor.el index d8e8eeb16ef..7728e78c471 100644 --- a/lisp/emacs-lisp/cursor-sensor.el +++ b/lisp/emacs-lisp/cursor-sensor.el @@ -146,9 +146,10 @@ By convention, this is a list of symbols where each symbol stands for the ;; It's often desirable to make the cursor-sensor-functions property ;; non-sticky on both ends, but that means get-pos-property might ;; never see it. - (new (or (get-char-property point 'cursor-sensor-functions) - (unless (<= (point-min) point) - (get-char-property (1- point) 'cursor-sensor-functions)))) + (new (and (eq (current-buffer) (window-buffer)) + (or (get-char-property point 'cursor-sensor-functions) + (unless (<= (point-min) point) + (get-char-property (1- point) 'cursor-sensor-functions))))) (old (window-parameter window 'cursor-sensor--last-state)) (oldposmark (car old)) (oldpos (or (if oldposmark (marker-position oldposmark)) |