GNU bug report logs - #23079
25.0.92; Movement commands leave cursor in invisible line

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Mon, 21 Mar 2016 20:20:01 UTC

Severity: normal

Tags: notabug

Found in version 25.0.92

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 23079 <at> debbugs.gnu.org, jonas <at> bernoul.li
Subject: bug#23079: 25.0.92; Movement commands leave cursor in invisible line
Date: Tue, 22 Mar 2016 17:02:02 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> > Seems that works only for the invisible text property.  In Magit,
> > they use overlays to make text invisible, and stickiness of text
> > properties has not effect there.
>
> For overlays, you need to use the insertion-type of the beg/end marker.
> See the FRONT-ADVANCE and REAR-ADVANCE args of make-overlay.

Hmm, that doesn't seem to work:

(progn
  (insert "111" "\n222\n")
  (let ((beg (point)) end)
    (insert "333\n444\n")
    (setq end (point))
    (insert "555\n666\n")
    (overlay-put
     (make-overlay beg end nil t t)
     'invisible t)
    (goto-char 1)
    (hl-line-mode +1)))


Michael.




This bug report was last modified 4 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.