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 17:09:22 +0200 Message-ID: <83k00snqhp.fsf@gnu.org> References: <83o7q4nw2s.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17782"; 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 16:11:01 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 1pPm68-0004Oi-Jg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 16:11:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPm5c-00021K-Se; Wed, 08 Feb 2023 10:10:30 -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 1pPm5D-0001vr-4p for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 10:10:06 -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 1pPm5C-0001Vh-Rd for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 10:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPm5C-0002i3-Ib for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 10:10:02 -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 15:10: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.167586895310328 (code B ref 61361); Wed, 08 Feb 2023 15:10:02 +0000 Original-Received: (at 61361) by debbugs.gnu.org; 8 Feb 2023 15:09:13 +0000 Original-Received: from localhost ([127.0.0.1]:56303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPm4P-0002gW-4X for submit@debbugs.gnu.org; Wed, 08 Feb 2023 10:09:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPm4N-0002gK-3z for 61361@debbugs.gnu.org; Wed, 08 Feb 2023 10:09:11 -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 1pPm4G-0000MR-V8; Wed, 08 Feb 2023 10:09:05 -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=2BZyMvxLOacNoUQRaVG4gz6oMCI0YePkqFSOzDRqZPQ=; b=dyCXWkOmZqGh CvoxGWxILaL0xSe0791QVpLQi2oM1U3WeuexT6Z6IEdwOmvLzhqwDnwwMSKQFWbiyU7N/IHQZ2lXX GDfG3S59uOnxC3sxUd4h6buG4ytV+rWxyyX67MLdUdUhytON+/J3Nw8jbyBfkYN0ZbBRgs5nfnFOM 3TusofrfQ/Sb8LCJlG2u0VHZcoVOh6daqs2H/kVQjX9orQc1zc8M+c5X6fxvOOIik0WnB6epxyZGE WmnU+6YNQjvHkly6eWd+e0z6FJrhEq5wwm+kgg6bAXq56xcEiYmo8rjt4qeXUkSxV5tyjwFhnT/4b CuekvKotbmPIf2rxj285HQ==; 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 1pPm4G-0004GG-5o; Wed, 08 Feb 2023 10:09:04 -0500 In-Reply-To: (message from Xinyang Chen on Wed, 8 Feb 2023 09:25:07 -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:255140 Archived-At: > From: Xinyang Chen > Date: Wed, 8 Feb 2023 09:25:07 -0500 > > I'm not seeing the point here though; what happens if you have a line with a single newline? What allows > placing a cursor there in that case? In that case, Emacs _knows_ that point is positioned at the newline, so it does an extra-special trick of placing the cursor after the last character of the line. But the 'cursor' property just supplies the index in the display string where your Lisp program wants to place the cursor. Emacs cannot place point inside a display string. So the display engine needs to find where that index is on display. And it cannot find that place because there's no glyph that corresponds to the newline.