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#65382: 27.1; Sometimes two cursors are unexpectedly shown Date: Sat, 19 Aug 2023 15:46:45 +0300 Message-ID: <83edjzyzbe.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65382@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 19 14:47:25 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 1qXLMS-0006vY-V6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 14:47:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXLM6-0005qu-N3; Sat, 19 Aug 2023 08:47:02 -0400 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 1qXLM5-0005qQ-IB for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 08:47:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXLM5-0006Bb-9a for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 08:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXLM5-0005xC-Sv for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 08:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Aug 2023 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65382 X-GNU-PR-Package: emacs Original-Received: via spool by 65382-submit@debbugs.gnu.org id=B65382.169244920622865 (code B ref 65382); Sat, 19 Aug 2023 12:47:01 +0000 Original-Received: (at 65382) by debbugs.gnu.org; 19 Aug 2023 12:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:49672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXLLp-0005wi-Pv for submit@debbugs.gnu.org; Sat, 19 Aug 2023 08:46:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXLLl-0005wP-M1 for 65382@debbugs.gnu.org; Sat, 19 Aug 2023 08:46:44 -0400 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 1qXLLe-00067B-5e; Sat, 19 Aug 2023 08:46:34 -0400 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=nT6N3tIRttSLl6DJCiWBhIKVyhvuy0SdB31qyloeGVk=; b=B2kgCJIwpv9l ls586C9Z0qC+1ZU8jj+P86EUZTOqVd3IinH4bgjxQ/q6cdNoeVaT21lSofS20xmJdJ2NqDRmNsH94 xEg3erc8GI6OnXWo7F0TkNPojVT/HSBDPa4k+BqwW+yKZAuOGx/iFRVK+WqMhIQxZa1CY45wQI/xB jFtKvj6OUwGtGXOaVLlRg+Wsq5nWbe8JUl+/3Y/RzkTYvy2zzF2fGBr7/sO55DF1PNygX5X8tOK8Z UrSEWAF58PW0xOiaUpcd0Uj4rjhoh9236M9tMaaA0HGE2kbOMJrd6+f1op8VQk4koZCDcbguQ7Ou1 EKj/pRKY5NYkkIVSAD1h5Q==; In-Reply-To: (message from Markus Triska on Sat, 19 Aug 2023 14:11:57 +0200) 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:267862 Archived-At: > From: Markus Triska > Date: Sat, 19 Aug 2023 14:11:57 +0200 > > > To reproduce this issue, please save the forms below in the file > duplicate_cursor.el, and then open the file in Emacs with: > > $ emacs -Q duplicate_cursor.el > > Next, evaluate the forms in the file with: > > M-x eval-buffer RET > > The function `duplicate-cursor' is now defined. Invoke this function > with: > > M-x duplicate-cursor RET > > A new buffer called duplicated-cursor is now selected. So far, > everything works as intended, and a single cursor is shown in the > penultimate line of the window, as expected, at the position of point. > > Now the issue: Invoke `duplicate-cursor' again, i.e., please do again: > > M-x duplicate-cursor RET > > Unexpectedly, two cursors now appear in the buffer duplicated-cursor: > One, as before, in the penultimate line of the window, and a second > cursor in the last line of the window. This second cursor is unexpected > and does not appear at the position of point, but one line below it. I cannot reproduce this. I see just one cursor. It could be that some or all of the magic constants you use need to be adjusted for other systems due to slightly different sizes of the default fonts and/or the initial frames.