summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-10-31 15:31:17 +0200
committerEli Zaretskii <eliz@gnu.org>2015-10-31 15:31:17 +0200
commit553d7e9b384b9c9a8500c5229e1dbc76002d5a10 (patch)
treed9cf56d6b6656d2c9bdea4dee4a2250751302edd
parentb059c6b584e964296d425667642650f42972c238 (diff)
Avoid errors in redisplay--pre-redisplay-functions
* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't use 'bobp', instead compare window-point with 1. (Bug#21730)
-rw-r--r--lisp/emacs-lisp/cursor-sensor.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cursor-sensor.el b/lisp/emacs-lisp/cursor-sensor.el
index 1d1780baed..2fc7a0d151 100644
--- a/lisp/emacs-lisp/cursor-sensor.el
+++ b/lisp/emacs-lisp/cursor-sensor.el
@@ -113,7 +113,7 @@
;; 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 (bobp)
+ (unless (= point 1)
(get-char-property (1- point) 'cursor-sensor-functions))))
(old (window-parameter window 'cursor-sensor--last-state))
(oldposmark (car old))