From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xinyang Chen Newsgroups: gmane.emacs.bugs Subject: bug#61361: cursor cannot be at the start of overlay that starts with a newline Date: Tue, 7 Feb 2023 23:29:31 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000968cf405f428b68b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26660"; mail-complaints-to="usenet@ciao.gmane.io" To: 61361@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 08 08:44:18 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 1pPf7q-0006nm-Ju for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 08:44:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPf7g-00051j-CN; Wed, 08 Feb 2023 02:44:08 -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 1pPf7b-00050R-BL for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 02:44:04 -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 1pPf7a-0000jP-LD for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 02:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPf7a-0005tn-DA for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 02:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Xinyang Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2023 07:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61361 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167584219122578 (code B ref -1); Wed, 08 Feb 2023 07:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2023 07:43:11 +0000 Original-Received: from localhost ([127.0.0.1]:54647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPf6k-0005s4-6L for submit@debbugs.gnu.org; Wed, 08 Feb 2023 02:43:10 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPc5d-0000GE-3v for submit@debbugs.gnu.org; Tue, 07 Feb 2023 23:29:49 -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 1pPc5c-0007ve-No for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:29:48 -0500 Original-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 ) id 1pPc5b-0000Vg-7A for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:29:48 -0500 Original-Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (authenticated bits=0) (User authenticated as chenxy@ATHENA.MIT.EDU) 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 ; 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== Original-Received: by mail-ed1-f53.google.com with SMTP id q19so18880481edd.2 for ; 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) X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=18.9.28.11; envelope-from=chenxy@mit.edu; 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-Mailman-Approved-At: Wed, 08 Feb 2023 02:43:09 -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:255107 Archived-At: --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
steps to reproduce:
;; test line
(if (and (boundp &#= 39;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--