[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package proposal: visual-path-abbrev.el
From: |
Stefan Monnier |
Subject: |
Re: [ELPA] New package proposal: visual-path-abbrev.el |
Date: |
Fri, 08 Mar 2019 17:18:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Haven't tried it yet, but it sounds like maybe it's just a plain bug in
> cursor-sensor.
Indeed, it seems the patch below fixes it (IOW, the problem was that
the code handled text-properties correctly but not overlay properties).
Stefan
diff --git a/lisp/emacs-lisp/cursor-sensor.el b/lisp/emacs-lisp/cursor-sensor.el
index a21d78998a..66b940f7fb 100644
--- a/lisp/emacs-lisp/cursor-sensor.el
+++ b/lisp/emacs-lisp/cursor-sensor.el
@@ -160,7 +160,7 @@ cursor-sensor--detect
(setcdr old nil))
(if (or (and (null new) (null (cdr old)))
(and (eq new (cdr old))
- (eq (next-single-property-change
+ (eq (next-single-char-property-change
start 'cursor-sensor-functions nil end)
end)))
;; Clearly nothing to do.
@@ -172,7 +172,7 @@ cursor-sensor--detect
(let ((pos start)
(missing nil))
(while (< pos end)
- (setq pos (next-single-property-change
+ (setq pos (next-single-char-property-change
pos 'cursor-sensor-functions
nil end))
(unless (memq f (get-char-property
- Re: [ELPA] New package proposal: visual-path-abbrev.el, (continued)
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Eli Zaretskii, 2019/03/04
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/05
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Eli Zaretskii, 2019/03/05
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/05
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Stefan Monnier, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Stefan Monnier, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el,
Stefan Monnier <=
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/09
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Stefan Monnier, 2019/03/08
Re: [ELPA] New package proposal: visual-path-abbrev.el, Leo Liu, 2019/03/02