From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61361: cursor cannot be at the start of overlay that starts with a newline Date: Wed, 8 Feb 2023 16:41:28 +0200 Message-ID: <20e98dc0-c939-7bd8-e922-aba4470a2567@yandex.ru> References: <83o7q4nw2s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 61361@debbugs.gnu.org To: Eli Zaretskii , Xinyang Chen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 08 15:42:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPleO-00079w-Gu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 15:42:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPleB-00065u-NE; Wed, 08 Feb 2023 09:42:07 -0500 Original-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 ) id 1pPle9-00065l-IM for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 09:42:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPle6-0002CQ-Mf for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 09:42:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPle6-0007mN-J4 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 09:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2023 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 61361-submit@debbugs.gnu.org id=B61361.167586730029872 (code B ref 61361); Wed, 08 Feb 2023 14:42:02 +0000 Original-Received: (at 61361) by debbugs.gnu.org; 8 Feb 2023 14:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:55159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPldk-0007lk-Ew for submit@debbugs.gnu.org; Wed, 08 Feb 2023 09:41:40 -0500 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:36545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPldg-0007lR-EX for 61361@debbugs.gnu.org; Wed, 08 Feb 2023 09:41:38 -0500 Original-Received: by mail-wm1-f46.google.com with SMTP id c4-20020a1c3504000000b003d9e2f72093so1632253wma.1 for <61361@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) Original-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) Content-Language: en-US In-Reply-To: <83o7q4nw2s.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255135 Archived-At: Hi Eli, On 08/02/2023 15:08, Eli Zaretskii wrote: > tags 61361 wontfix > thanks > >> From: Xinyang Chen >> 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?