GNU bug report logs - #61361
cursor cannot be at the start of overlay that starts with a newline

Previous Next

Package: emacs;

Reported by: Xinyang Chen <chenxy <at> mit.edu>

Date: Wed, 8 Feb 2023 07:44:02 UTC

Severity: normal

Tags: wontfix

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#61361: closed (cursor cannot be at the start of overlay that
 starts with a newline)
Date: Mon, 04 Sep 2023 21:09:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 4 Sep 2023 14:08:08 -0700
with message-id <CADwFkmnhT4kMV8uzhVRFiMpCAUKgx9WM5=k+MUthomfvgDtDTg <at> mail.gmail.com>
and subject line Re: bug#61361: cursor cannot be at the start of overlay that starts with a newline
has caused the debbugs.gnu.org bug report #61361,
regarding cursor cannot be at the start of overlay that starts with a newline
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
61361: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61361
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Xinyang Chen <chenxy <at> mit.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: cursor cannot be at the start of overlay that starts with a newline
Date: Tue, 7 Feb 2023 23:29:31 -0500
[Message part 3 (text/plain, inline)]
steps to reproduce:
;; test line
(if (and (boundp 'overlay) (overlayp overlay)) (delete-overlay overlay))
(setq overlay (make-overlay 1 2))
(overlay-put overlay 'display "\nhello")
;; same result if you do this intead
;; (overlay-put overlay 'display (propertize "\nhello" 'cursor 0))

cursor does not display in the first line.
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Xinyang Chen <chenxy <at> mit.edu>, 61361-done <at> debbugs.gnu.org
Subject: Re: bug#61361: cursor cannot be at the start of overlay that starts
 with a newline
Date: Mon, 4 Sep 2023 14:08:08 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> tags 61361 wontfix
> thanks
>
>> From: Xinyang Chen <chenxy <at> mit.edu>
>> Date: Tue, 7 Feb 2023 23:29:31 -0500
>>
>> steps to reproduce:
>> ;; test line
>> (if (and (boundp 'overlay) (overlayp overlay)) (delete-overlay overlay))
>> (setq overlay (make-overlay 1 2))
>> (overlay-put overlay 'display "\nhello")
>> ;; same result if you do this intead
>> ;; (overlay-put overlay 'display (propertize "\nhello" 'cursor 0))
>>
>> cursor does not display in the first line.
>
> Emacs cannot do what you are asking because the newline leaves no
> glyph on display.  So the display engine cannot place the cursor on
> the newline as it does on other characters, which do have glyphs.
>
> This is a limitation of the 'cursor' property feature.  Sorry.

Since this is a wontfix, I'm closing this bug report.


This bug report was last modified 1 year and 261 days ago.

Previous Next


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