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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Xinyang Chen <chenxy@HIDDEN>; Keywords: wontfix; dated Wed, 8 Feb 2023 07:44:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 61361 <at> debbugs.gnu.org:


Received: (at 61361) by debbugs.gnu.org; 8 Feb 2023 14:41:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 08 09:41:40 2023
Received: from localhost ([127.0.0.1]:55159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pPldk-0007lk-Ew
	for submit <at> debbugs.gnu.org; Wed, 08 Feb 2023 09:41:40 -0500
Received: from mail-wm1-f46.google.com ([209.85.128.46]:36545)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1pPldg-0007lR-EX
 for 61361 <at> debbugs.gnu.org; Wed, 08 Feb 2023 09:41:38 -0500
Received: by mail-wm1-f46.google.com with SMTP id
 c4-20020a1c3504000000b003d9e2f72093so1632253wma.1
 for <61361 <at> debbugs.gnu.org>; Wed, 08 Feb 2023 06:41:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=+H87NkBJwuThtZM2swli+ukSldXLjgB4w1z1qCI1zH8=;
 b=lg59do2bJLAEie54QJbSWN2tT/oUoaDDLEIS/2rMEHZFY6t0ADJURg0zGfV13YgSyK
 7cz0EE5fgWioEaG7b/mT7QGMwvn2zwm/iiaO9poZdS9wj3dMhguF3C9drai6OUU1mx8a
 MfU5Vs55pg5sDUwNtRV54cn2RfMoJxlRKym/YV9ORWRuhRJb7HV95FYNamQHR4UB/iNB
 sb/oUoxj7g8AjZqzkVS8PJGsjoQutpitSig+ZYpsIOKUFMgK2ISFm2DO9+ublbVaoM3c
 qwxlKebSqRbP3WOAs0EI/7BtPDOBFi7bEVE6INrcIeJBVR8K8EMZgzaZyDwRb78TbkGX
 /glg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=+H87NkBJwuThtZM2swli+ukSldXLjgB4w1z1qCI1zH8=;
 b=PVoQdxuVNZ01TeylkR0vVbV82cbhdr9M2wEVbBEcKskbIaK+LQAJx8nhNWo4lsX0YE
 p1deZ5DQIBKfO5ulOvLP8yM9wjOHW3V1VzMK74K/rTzqxylyBZ23EGGjrLL7LxDbzjvj
 n5hmOl4xQTAFZSAFZAS5EzMtkkirMmjvTbdzZ1A0am5RdqYv0k9G3E8mJ6syfNjcoGdZ
 0rvAWsKTTnOXyoo2OGO7MSw4SAm2nt48KZJkq5k2vjHeE4+s/To8tFSj88+JBLIXMfZw
 zeyY3tkeymuyEuZLEIMgXmKyPVya1KUY5NB5sBpSZmHOWwmnMYdUkTjdNJC9P2P3Etk7
 pbAQ==
X-Gm-Message-State: AO0yUKXYPPrbNfgsQU4uIoPe+OCJdOgCIYrCfbrbtx743JPUHWPzLUmL
 AquB4yxxALYwpFAyFYhBJFo=
X-Google-Smtp-Source: AK7set8iQHVNF5qbOJ6xz7pGGORe8ihANw3YHuT27sAOW6hY8H5tpFG9INKB0CjfaHXyTdzgRK0GtQ==
X-Received: by 2002:a05:600c:4494:b0:3dc:5a13:c7d1 with SMTP id
 e20-20020a05600c449400b003dc5a13c7d1mr8768621wmo.16.1675867290361; 
 Wed, 08 Feb 2023 06:41:30 -0800 (PST)
Received: from [192.168.0.2] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 bi5-20020a05600c3d8500b003db012d49b7sm6033693wmb.2.2023.02.08.06.41.29
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 08 Feb 2023 06:41:29 -0800 (PST)
Message-ID: <20e98dc0-c939-7bd8-e922-aba4470a2567@HIDDEN>
Date: Wed, 8 Feb 2023 16:41:28 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.2
Subject: Re: bug#61361: cursor cannot be at the start of overlay that starts
 with a newline
Content-Language: en-US
To: Eli Zaretskii <eliz@HIDDEN>, Xinyang Chen <chenxy@HIDDEN>
References: <CAKGiUYy-9ZLHxKchx+RDzP+tvykvjbE17OQ2ywEz-EePgH8piA@HIDDEN>
 <83o7q4nw2s.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <83o7q4nw2s.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.9 (/)
X-Debbugs-Envelope-To: 61361
Cc: 61361 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.9 (-)

Hi Eli,

On 08/02/2023 15:08, Eli Zaretskii wrote:
> tags 61361 wontfix
> thanks
> 
>> From: Xinyang Chen<chenxy@HIDDEN>
>> 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.

Could you explain that a little further?

When I have a line with text and move point to the end of it, the cursor 
is rendered, right? Does that use some other method than "glyphs", 
making it unavailable to the handling of 'cursor' in a display spec?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61361; Package emacs. Full text available.
Added tag(s) wontfix. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 61361 <at> debbugs.gnu.org:


Received: (at 61361) by debbugs.gnu.org; 8 Feb 2023 13:08:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 08 08:08:36 2023
Received: from localhost ([127.0.0.1]:55034 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pPkBf-0002tb-Sp
	for submit <at> debbugs.gnu.org; Wed, 08 Feb 2023 08:08:36 -0500
Received: from eggs.gnu.org ([209.51.188.92]:45910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1pPkBd-0002tG-MW; Wed, 08 Feb 2023 08:08:34 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pPkBX-0008Ca-Vm; Wed, 08 Feb 2023 08:08:28 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=vumEBUcuru2u+Z2Z9HEoOrwyEtzXWNJOCimwJbRokWo=; b=lISR4vYCSGLX
 iqYybGM3+yt+7zVIG4/yeGi+pZhld3j3due2FlqGef4rdZEsOz38pBMw7qDd6EghatZ4s4ieTZWXd
 eQSVJN2/IbhIUNxxZizzEloA9BVh/B6XC1IfFbgWAXEhZwbWHee40snPvf/DbjiS7syB0zqI5HsQj
 BmdEShqCh0OnFX4vKC6MLuYNIRL4BP4IW96a8u1mDyKBzL0jQoHD0KB/0QE7t5DSS5f97O+qo0mhf
 CAZ+SaW0rAoihXIaVEACsOndRYvvdHid7VJS2lyMHWKsChJfzGaDUh8W/4E1/8c2FcPzmJQ5Nc5q9
 1UgdF4cW/+JygSPemnYcxQ==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pPkBV-0005rg-95; Wed, 08 Feb 2023 08:08:26 -0500
Date: Wed, 08 Feb 2023 15:08:43 +0200
Message-Id: <83o7q4nw2s.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Xinyang Chen <chenxy@HIDDEN>
In-Reply-To: <CAKGiUYy-9ZLHxKchx+RDzP+tvykvjbE17OQ2ywEz-EePgH8piA@HIDDEN>
 (message from Xinyang Chen on Tue, 7 Feb 2023 23:29:31 -0500)
Subject: Re: bug#61361: cursor cannot be at the start of overlay that starts
 with a newline
References: <CAKGiUYy-9ZLHxKchx+RDzP+tvykvjbE17OQ2ywEz-EePgH8piA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61361
Cc: 61361 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 61361 wontfix
thanks

> From: Xinyang Chen <chenxy@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61361; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Feb 2023 07:43:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 08 02:43:10 2023
Received: from localhost ([127.0.0.1]:54647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pPf6k-0005s4-6L
	for submit <at> debbugs.gnu.org; Wed, 08 Feb 2023 02:43:10 -0500
Received: from lists.gnu.org ([209.51.188.17]:40104)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <chenxy@HIDDEN>) id 1pPc5d-0000GE-3v
 for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 23:29:49 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <chenxy@HIDDEN>) id 1pPc5c-0007ve-No
 for bug-gnu-emacs@HIDDEN; Tue, 07 Feb 2023 23:29:48 -0500
Received: from outgoing-auth-1.mit.edu ([18.9.28.11] helo=outgoing.mit.edu)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <chenxy@HIDDEN>) id 1pPc5b-0000Vg-7A
 for bug-gnu-emacs@HIDDEN; Tue, 07 Feb 2023 23:29:48 -0500
Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com
 [209.85.208.53]) (authenticated bits=0)
 (User authenticated as chenxy@HIDDEN)
 by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 3184Thes012621
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <bug-gnu-emacs@HIDDEN>; Tue, 7 Feb 2023 23:29:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing;
 t=1675830585; bh=zZNjn3Wqj2Q2uvl+HIvE5l2n+SpjxqztIUA+kR6z6ik=;
 h=From:Date:Subject:To;
 b=PrSnDU727Q4evr2oI8nTXUyHFlmGylOlW3OqoKkcArsSJBeULTHrAayGFp7Qtz72z
 CYheW2xDmUIHRKpbP6OuslECMfHq5g8d/wFAxtEa8JEnvtoSDsmIqFGX3LOene3Ptp
 0rsO8BtQWML3M8tcErPR0/cQKGvahR8JlSByV+SHCx1C5/EzFsomdDRxVjKlm0oLZ6
 528WNx7uoZfQmXZY8P4wvZA8w3olZMMNYA2aL2q3PgA+5aPQbvurEjj801cWhsbzou
 ugqDzd4HbYHFnAR9sbIzSkbrEHMyy03MPnsrNRQjE5NZ8Bvh4rfreadn6QJ46e0IZh
 d/f2zCq4Vb+Lg==
Received: by mail-ed1-f53.google.com with SMTP id q19so18880481edd.2
 for <bug-gnu-emacs@HIDDEN>; Tue, 07 Feb 2023 20:29:44 -0800 (PST)
X-Gm-Message-State: AO0yUKW69XyM0qWgdzn5kIqn2d98wOam6fcuhKIwilCd+ILPBenQZqwj
 nuBYaqNaShVOk03JJgCrfzsEp+5IIeouEkFYWqA=
X-Google-Smtp-Source: AK7set/nWiLod7wq/sICWBuzMpXnrQMB7wpAoopOputBiRk+2QTFSaujA+7kpdkeEenaG/6cxSgSfgErODBeVTypeIg=
X-Received: by 2002:a50:8741:0:b0:4aa:abae:199f with SMTP id
 1-20020a508741000000b004aaabae199fmr1570127edv.47.1675830582740; Tue, 07 Feb
 2023 20:29:42 -0800 (PST)
MIME-Version: 1.0
From: Xinyang Chen <chenxy@HIDDEN>
Date: Tue, 7 Feb 2023 23:29:31 -0500
X-Gmail-Original-Message-ID: <CAKGiUYy-9ZLHxKchx+RDzP+tvykvjbE17OQ2ywEz-EePgH8piA@HIDDEN>
Message-ID: <CAKGiUYy-9ZLHxKchx+RDzP+tvykvjbE17OQ2ywEz-EePgH8piA@HIDDEN>
Subject: cursor cannot be at the start of overlay that starts with a newline
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000968cf405f428b68b"
Received-SPF: pass client-ip=18.9.28.11; envelope-from=chenxy@HIDDEN;
 helo=outgoing.mit.edu
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 08 Feb 2023 02:43:09 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--000000000000968cf405f428b68b
Content-Type: text/plain; charset="UTF-8"

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.

--000000000000968cf405f428b68b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">steps to reproduce:<br>;; test line<br>(if (and (boundp &#=
39;overlay) (overlayp overlay)) (delete-overlay overlay))<br>(setq overlay =
(make-overlay 1 2))<br>(overlay-put overlay &#39;display &quot;\nhello&quot=
;)<br>;; same result if you do this intead<br>;; (overlay-put overlay &#39;=
display (propertize &quot;\nhello&quot; &#39;cursor 0))<br><br>cursor does =
not display in the first line.<br></div>

--000000000000968cf405f428b68b--




Acknowledgement sent to Xinyang Chen <chenxy@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#61361; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 8 Feb 2023 14:45:01 UTC

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