Subject: bug#61361: closed (Re: bug#61361: cursor cannot be at the start of overlay that starts with a newline)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 04 Sep 2023 21:09:02 +0000

Your bug report

#61361: cursor cannot be at the start of overlay that starts with a newline

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
61361: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61361
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#61361: cursor cannot be at the start of overlay that starts with a newline
From: Stefan Kangas <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: Xinyang Chen <[email-masked]>, [email-masked]
Date: Mon, 4 Sep 2023 14:08:08 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Eli Zaretskii <[email-masked]> writes:

> tags 61361 wontfix
> thanks
>
>> From: Xinyang Chen <[email-masked]>
>> 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.

Subject: cursor cannot be at the start of overlay that starts with a newline
From: Xinyang Chen <[email-masked]>
To: [email-masked]
Date: Tue, 7 Feb 2023 23:29:31 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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.