From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61361: cursor cannot be at the start of overlay that starts with a newline Date: Wed, 08 Feb 2023 15:08:43 +0200 Message-ID: <83o7q4nw2s.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37133"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61361@debbugs.gnu.org To: Xinyang Chen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 08 14:09:35 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 1pPkCd-0009TA-6W for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 14:09:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPkC8-00028G-M1; Wed, 08 Feb 2023 08:09:04 -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 1pPkC6-00027Z-HN for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 08:09:02 -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 1pPkC6-0001Nn-4C for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 08:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPkC5-0002uX-Uy for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 08:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2023 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61361 X-GNU-PR-Package: emacs Original-Received: via spool by 61361-submit@debbugs.gnu.org id=B61361.167586171611140 (code B ref 61361); Wed, 08 Feb 2023 13:09:01 +0000 Original-Received: (at 61361) by debbugs.gnu.org; 8 Feb 2023 13:08:36 +0000 Original-Received: from localhost ([127.0.0.1]:55034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPkBf-0002tb-Sp for submit@debbugs.gnu.org; Wed, 08 Feb 2023 08:08:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPkBd-0002tG-MW; Wed, 08 Feb 2023 08:08:34 -0500 Original-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 ) 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==; Original-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 ) id 1pPkBV-0005rg-95; Wed, 08 Feb 2023 08:08:26 -0500 In-Reply-To: (message from Xinyang Chen on Tue, 7 Feb 2023 23:29:31 -0500) 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:255125 Archived-At: 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.