From unknown Tue Aug 19 10:05:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor Resent-From: Siyuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 00:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 71603@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171858428426391 (code B ref -1); Mon, 17 Jun 2024 00:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2024 00:31:24 +0000 Received: from localhost ([127.0.0.1]:56969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ0HL-0006rY-Mt for submit@debbugs.gnu.org; Sun, 16 Jun 2024 20:31:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:39328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ0HJ-0006rQ-Io for submit@debbugs.gnu.org; Sun, 16 Jun 2024 20:31:22 -0400 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 1sJ0HG-00080Z-G0 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 20:31:19 -0400 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJ0HE-0001qm-W7 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 20:31:18 -0400 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-632597a42b4so18086577b3.0 for ; Sun, 16 Jun 2024 17:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718584273; x=1719189073; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=j01WcsO1/iyAgTLyXv3oO8sdRwmhM6BHXw+ARQwRUtQ=; b=P/68OLhAHMlj1+v/hkL4t2S8rTHm4PKMCJJcCfubREZC9O+9Ha8rxNcdXrKQI/gHxN +iug1n9Jb7iQmJjRpCWiCWDRqi/8D316eY18PrFb34kDJNGRDcClk38KDgIU7VPcU0N+ rlF+NtxqbIQqogkcFG/ozH6C7YG/KURmVmGRSlti880ltAJ51pWWp2jMx2TiYkHHWNCD HHX8Fd4EmWOPZd6RqU1nym6NhoAaJ0tH3mAh+unqHDw0qeKYBsEGDJnU7kM1GRCj3rJV pBWQM5m6s3a3Kr4J4MHqWN8uaE4KI73gsoVXheNdXRWnb1eUX04jbNk9pICY1FM9+Ufl 7SEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718584273; x=1719189073; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=j01WcsO1/iyAgTLyXv3oO8sdRwmhM6BHXw+ARQwRUtQ=; b=l7W5eYsEURb7qxThlAWJ8O4gjzfFr5QlXTl1Bpg0My2reIHqlqvC4Mt424YMq8fzj/ fWEyR4PlraEgbH233fab1n6A7sRdi5BuLJdTQFl46t+Feum3gdz4ArxckBh3eNWX60SI wCNEJ5vAjQt3zZHpGJuNbxN8DNg1zPyiADxGW6LwJH/OBugEorkqzo0Ph5o7zyTGhipP Bl36wJ3RSAqya9DN6DpcYrLjBmbFUO1Teo14fXr3BZWk8ZGtoIleRpZYeuh0glk+BpUy tbjnjluY0C4vV23JPqcTu9QGxkcQ1iREueveo9VsWDodBnWHXd3VKLs6bch9oaQ6DKsL 5AJw== X-Gm-Message-State: AOJu0YyiJqiHeypRzLAcS+ZoHyUvWYdM7CARd0DL3byhe+5w52YIU1Us oxQTQyS6ED9sl8ij/bw/6vGWrMpys/8em4Zm/+gFTkHerSPDLtU57koy5/wzZblazA0ghJx0GW2 /3KyOp6qd0rmKH4oc1nLPjHWSZ5ddMs5JGJg= X-Google-Smtp-Source: AGHT+IHx7CA1s2cxCOmfxAADd9qFgNeGpRv+TpUjmOVsaQIOloTBAPiq3beq7vDo/rL01HdZuZFYxXqJ9SpcL6lImM8= X-Received: by 2002:a05:690c:4b09:b0:617:b979:a4db with SMTP id 00721157ae682-632064d7b7amr63057537b3.21.1718584273560; Sun, 16 Jun 2024 17:31:13 -0700 (PDT) MIME-Version: 1.0 From: Siyuan Chen Date: Mon, 17 Jun 2024 08:31:02 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000246de7061b0b1580" Received-SPF: pass client-ip=2607:f8b0:4864:20::1132; envelope-from=chansey97@gmail.com; helo=mail-yw1-x1132.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --000000000000246de7061b0b1580 Content-Type: text/plain; charset="UTF-8" The reproduce steps: 1. Open Emacs 29.3 on Windows with -Q 2. Open a .el file which included some code, e.g. init.el 3. M-x `bookmark-delete-all` to cleanup bookmarks if you have 4. M-x `bookmark-set` at some locations, e.g. bk1 bk2 5. M-x `list-bookmarks` to open *Bookmark List* which should have 2 entries 6. Split 2 windows, the up window displays init.el, the bottom window displays *Bookmark List* 7. Mouse left click (or press 'on' ) on bk1 or bk2 in *Bookmark List* The expected behavior: jump cursor to bk1 or bk2 The actual behavior: nothing happens, except the left fringe displays an additional bookmark icon if your current point is not at one of the bookmark locations. I don't know if this is a bug or the intended behavior, but when I put the mouse on the bk1 or bk2 entry it will show "mouse-1: go to this bookmark in other window", so I believe it is a bug. In addition, if you click the entries via Mouse middle click, i.e. mouse-2, then it seems to half work with a different weird behavior. Simply traced the code and found that both invoke `bookmark-bmenu-other-window-with-mouse` but I don't know why they have different behaviors. P.s. I can workaround it via hacking bookmark.el because `bookmark-jump` works perfectly, but I just want to know if this is a real bug. Thanks. Best regards, Siyuan Chen --000000000000246de7061b0b1580 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The reproduce steps:

1. Open Emacs 29.3 on Windo= ws with -Q

2. Open a .el file which included some code, e.g. init.el=

3. M-x `bookmark-delete-all` to cleanup bookmarks if you have
4. M-x `bookmark-set` at some locations, e.g. bk1 bk2

5. M-x `list= -bookmarks` to open *Bookmark List* which should have 2 entries

6. S= plit 2 windows, the up window displays init.el, the bottom window displays = *Bookmark List*

7. Mouse left click (or press 'on' ) on bk1 = or bk2 in *Bookmark List*

The expected behavior: jump cursor to bk1= or bk2

The actual behavior: nothing happens, except the left fringe= displays an additional bookmark icon if your current point is not at one o= f the bookmark locations.

I don't know if this is a bug or the i= ntended behavior, but when I put the mouse on the bk1 or bk2 entry it will = show "mouse-1: go to this bookmark in other window", so I believe= it is a bug.

In addition, if you clic= k the entries via Mouse middle click, i.e. mouse-2, then it seems to half work with a different weird = behavior. Simply traced the code and found that both invoke `bookmark-bmenu-other= -window-with-mouse` but I don't know why they have different behaviors.=

P.s. I can workaround it via h= acking bookmark.el because `bookmark-jump` works perfectly, but I just want to know if this is a real = bug.

Thanks.

Best regards,

Siyuan Chen<= br>
--000000000000246de7061b0b1580-- From unknown Tue Aug 19 10:05:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 06:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Siyuan Chen Cc: 71603@debbugs.gnu.org Received: via spool by 71603-submit@debbugs.gnu.org id=B71603.171860607731212 (code B ref 71603); Mon, 17 Jun 2024 06:35:01 +0000 Received: (at 71603) by debbugs.gnu.org; 17 Jun 2024 06:34:37 +0000 Received: from localhost ([127.0.0.1]:59356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ5wq-00087M-HV for submit@debbugs.gnu.org; Mon, 17 Jun 2024 02:34:36 -0400 Received: from mail.eshelyaron.com ([107.175.124.16]:53324 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ5wo-00087D-94 for 71603@debbugs.gnu.org; Mon, 17 Jun 2024 02:34:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1718606071; bh=qi0HicBBzCHfnUb8fe8pFFT6L8FtXRdqj6N75y5jrE0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IV3THEpznYvigoQ0JIhosbjWE7NqQrcRrycWckDMcgtNDInwpSq/rz2J/H8uWry/W 7eexNDYavszZ9n8vYeyxQ/GJORQ0Rarp1SXNj3NAlo11S3hjurROUks9bjuZM2QSGY 4uDBP/BQUkd22ryf/qYMzm34e4qMW5ah6a4NYyVCmK5sZykiwJ78L2GeNLILt4FP3X ae6GUgLUPvr/sU3ySBvDKmfw+F8iivO2bz2uBzsgBwkZsFt78oMJd9MRsnKyj7N0Fq UdAQPH0QvndxKWHcrckMQ3I0LuZJ7GPUbumqOdypIqtFWyn9HOvDDrEsTFHR9hb2Bn 4B2o0W5X+DUyA== From: Eshel Yaron In-Reply-To: (Siyuan Chen's message of "Mon, 17 Jun 2024 08:31:02 +0800") References: Date: Mon, 17 Jun 2024 08:34:29 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi there, Siyuan Chen writes: > The reproduce steps: > > 1. Open Emacs 29.3 on Windows with -Q > > 2. Open a .el file which included some code, e.g. init.el > > 3. M-x `bookmark-delete-all` to cleanup bookmarks if you have > > 4. M-x `bookmark-set` at some locations, e.g. bk1 bk2 > > 5. M-x `list-bookmarks` to open *Bookmark List* which should have 2 entries > > 6. Split 2 windows, the up window displays init.el, the bottom window displays *Bookmark List* > > 7. Mouse left click (or press 'on' ) on bk1 or bk2 in *Bookmark List* > > The expected behavior: jump cursor to bk1 or bk2 > > The actual behavior: nothing happens, except the left fringe displays an additional bookmark icon if your current > point is not at one of the bookmark locations. Thanks, I can reproduce this issue on master. Does the diff below yield the expected behavior? diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 06f8e24b518..d87d4e473ac 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1265,10 +1265,11 @@ bookmark--jump-via by BOOKMARK-NAME-OR-RECORD, if necessary, run `bookmark-after-jump-hook', and then show any annotations for this bookmark." (bookmark-handle-bookmark bookmark-name-or-record) - (save-current-buffer - (funcall display-function (current-buffer))) - (let ((win (get-buffer-window (current-buffer) 0))) - (if win (set-window-point win (point)))) + (let ((point (point))) + (save-current-buffer + (funcall display-function (current-buffer))) + (let ((win (get-buffer-window (current-buffer) 0))) + (if win (set-window-point win point)))) ;; FIXME: we used to only run bookmark-after-jump-hook in ;; `bookmark-jump' itself, but in none of the other commands. (when bookmark-fringe-mark From unknown Tue Aug 19 10:05:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eshel Yaron Cc: chansey97@gmail.com, 71603@debbugs.gnu.org Received: via spool by 71603-submit@debbugs.gnu.org id=B71603.171862552010862 (code B ref 71603); Mon, 17 Jun 2024 11:59:02 +0000 Received: (at 71603) by debbugs.gnu.org; 17 Jun 2024 11:58:40 +0000 Received: from localhost ([127.0.0.1]:60825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJB0S-0002p6-3C for submit@debbugs.gnu.org; Mon, 17 Jun 2024 07:58:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJB0P-0002os-TL for 71603@debbugs.gnu.org; Mon, 17 Jun 2024 07:58:38 -0400 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 1sJB0I-0000lW-GR; Mon, 17 Jun 2024 07:58:30 -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=CNcY4i0teiIdXgr1qq8V445C/8BFBwVV7W70xPZaGf0=; b=gjEyg4ZUnWKR F7cr290q646lahhFVXUGPRiYj6Mr3XVZw+WO3iW9RVujqdruEtI9/NRZn1pNnWBGRO9SD36Ish5cL Ty3m7ZcE5C/fKq9KJFoIFlQToEOwwdUTrfeEloTROvrhxK5gEF/hX5APZ3M9vVlmnclN4HTp1zW1f 43akXAS5fe4WwLf/FwMWotWrm3N3SudNakGOZfWp/kY0B8axzhp8WircrpDcw5vWhzYYD6b9RMtkH y9w5EFUCXg7QuYFzEf4ordDx6733egwI8OPj0H1tO0wZWHxEgQuygV2t3fTBJgYwq6pa+VoeD6kOy WbOgsdqu7NQ6uC3t0oB6Dw==; Date: Mon, 17 Jun 2024 14:58:18 +0300 Message-Id: <8634pbsrvp.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (bug-gnu-emacs@gnu.org) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 71603@debbugs.gnu.org > Date: Mon, 17 Jun 2024 08:34:29 +0200 > From: Eshel Yaron via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > The expected behavior: jump cursor to bk1 or bk2 > > > > The actual behavior: nothing happens, except the left fringe displays an additional bookmark icon if your current > > point is not at one of the bookmark locations. > > Thanks, I can reproduce this issue on master. Does the diff below yield > the expected behavior? Thanks, I have independently came to the same solution. So please install this on master, but with a comment explaining why we record point before calling display-function. From unknown Tue Aug 19 10:05:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: chansey97@gmail.com, 71603@debbugs.gnu.org Received: via spool by 71603-submit@debbugs.gnu.org id=B71603.17186373261745 (code B ref 71603); Mon, 17 Jun 2024 15:16:01 +0000 Received: (at 71603) by debbugs.gnu.org; 17 Jun 2024 15:15:26 +0000 Received: from localhost ([127.0.0.1]:35122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJE4r-0000S3-O4 for submit@debbugs.gnu.org; Mon, 17 Jun 2024 11:15:26 -0400 Received: from mail.eshelyaron.com ([107.175.124.16]:42732 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJE4q-0000Rw-2a for 71603@debbugs.gnu.org; Mon, 17 Jun 2024 11:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1718637321; bh=a97F8FHPc4wsoV/ObAMDoOShJnBYbdRA11p4PL8yRVE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GVwG2HoyiFYwAZS8aJ/AEQ7VEsle03cDyeraw3/gB8ao2BVv1wAD1z50+Kp416Qw3 +DcB5wtfuootxFdpfcVo85exCOgP/duw1S1kP98QqU2EZ3KGtR5NOcahb6Ap6Ult2m KGo4rNA0w4o0qwyBRjtKxaCmqh2SMvdRmtsoyYvS+7pkStqQuVnQi3VYZsGMMl+KSt xy6pE/87wkVYGhaw1cr8VjGDyTYFzizqldQF6EVitZRd/OZZsATxDTSBah5Qw+Sn/6 T1qFl9Acq4wbA4VlY5xH9LLFCuAl7VEfC9XdFVQ14w1aHnf6A3ONrBcCeQgjBnAxbL zS1d4UHlpTXxg== From: Eshel Yaron In-Reply-To: <8634pbsrvp.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Jun 2024 14:58:18 +0300") References: <8634pbsrvp.fsf@gnu.org> Date: Mon, 17 Jun 2024 17:15:18 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Cc: 71603@debbugs.gnu.org >> Date: Mon, 17 Jun 2024 08:34:29 +0200 >> From: Eshel Yaron via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> > The expected behavior: jump cursor to bk1 or bk2 >> > >> > The actual behavior: nothing happens, except the left fringe displays an additional bookmark icon if your current >> > point is not at one of the bookmark locations. >> >> Thanks, I can reproduce this issue on master. Does the diff below yield >> the expected behavior? > > Thanks, I have independently came to the same solution. So please > install this on master, but with a comment explaining why we record > point before calling display-function. All right, see commit 27f46ba4b96. Eshel From unknown Tue Aug 19 10:05:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor Resent-From: Siyuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eshel Yaron Cc: Eli Zaretskii , 71603@debbugs.gnu.org Received: via spool by 71603-submit@debbugs.gnu.org id=B71603.171864931732545 (code B ref 71603); Mon, 17 Jun 2024 18:36:02 +0000 Received: (at 71603) by debbugs.gnu.org; 17 Jun 2024 18:35:17 +0000 Received: from localhost ([127.0.0.1]:35334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJHCH-0008Sr-8r for submit@debbugs.gnu.org; Mon, 17 Jun 2024 14:35:17 -0400 Received: from mail-yw1-f179.google.com ([209.85.128.179]:55800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJHCE-0008SX-IC for 71603@debbugs.gnu.org; Mon, 17 Jun 2024 14:35:15 -0400 Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-62cddff7f20so46086957b3.3 for <71603@debbugs.gnu.org>; Mon, 17 Jun 2024 11:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718649247; x=1719254047; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=miDr3jxrTK7dV5FQrRE66/vYES+V4MxqiacjoE9Vytg=; b=G79FFjkz7a53FJXmErUdY8fKFdAIVsY+fGhI1LdFpVOPGi2A6QV2BObmU6Q4CfDM0/ E7LnWdRQPkwYtCbFsO3Z3EGd1pIvs5n0rsLVE5fqOjazxsxiMMQL8YMAs0R+4lmyVgaX aAJtP0N2bGS3uUx3KKuKZcc2kn/ELKkhm6olHmKGBGAqkh6kFBoS8MU3qlFPZXEPCQZc Pbg0BcAO1qFSknewTQRPnD/ns5HwhpX6KFsIl17nZZLt0WCR2r8avCAaiJiwrpBE6ZZn mJ2makFejdRWnBg7As82Sm022J15bEyNB8tx4uKRkce/FbCWcKwIRXxhZV4w5vFBTxZH cYiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718649247; x=1719254047; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=miDr3jxrTK7dV5FQrRE66/vYES+V4MxqiacjoE9Vytg=; b=Z10r67r5Pk0+Wt9s5ICKeIat1u13VLuivnQuYWI/44kcPSAqEQaRK1rDXEJmdv/Xmj KE5G7o1rFJLH0nvQ4esx3LlVEMrimS6rNgs+pqbigEx/+6kAKMBNmGioDZD8ezgZ/7B3 6jYzIzGJ7qDfqAa6lM/8LA42LaJLglFKBcTxN4Gh7oJ3CgQD6AYQJzUBsUdvI8d+Zui3 Hea+VEQeXV1bNgWjav23MWp5rOY0z2/YbCk6WhnvImhCi0rVP16wFFRi09ZkA7qS4weI n2kRjjlfE7511zi+7QAh0F1sG3UdTQU/A1tEuDt/LlRGYHaRuderpzN9Q4ioqriJUQrM BrCQ== X-Forwarded-Encrypted: i=1; AJvYcCUmyEO1Ap3wiCLvkI7WF3zeWureJbZNZyITpU+PtR3fcrwH1E3a+GaHdbT7MTZ9UIDFyc+6zg0+39pkNV0Zqc3YMeHwlgw= X-Gm-Message-State: AOJu0Yz+QHW/+E2n4FeEpEjV8zYX23CrGZDwYma0//ABxajCSU1VsaQZ 1DQMx0dTyfZXKM0P6ZgXDS1VbTppvAWoHdUcSZnxCzCFCckelYwIXgOrh4J09wxpGZUkUJVlLCU ve+0b0FNuSwel2B/GUTqzYNJ4av4= X-Google-Smtp-Source: AGHT+IFEqpbSau0DoB8VEBR66rUknlSMtxhd4tmIukLj0dR2UTExcnw8zfAGqJXh+x+ELzs5Kd7L/dwOhIg6k++ou4k= X-Received: by 2002:a05:690c:a98:b0:61b:e643:58c7 with SMTP id 00721157ae682-6322295aaa1mr121299757b3.28.1718649246756; Mon, 17 Jun 2024 11:34:06 -0700 (PDT) MIME-Version: 1.0 References: <8634pbsrvp.fsf@gnu.org> In-Reply-To: From: Siyuan Chen Date: Tue, 18 Jun 2024 02:33:56 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000d8b872061b1a3554" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --000000000000d8b872061b1a3554 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Does the diff below yield the expected behavior? Yes. It works perfectly. Thanks. Best regards, Siyuan Chen On Mon, Jun 17, 2024 at 11:15=E2=80=AFPM Eshel Yaron wr= ote: > Eli Zaretskii writes: > > >> Cc: 71603@debbugs.gnu.org > >> Date: Mon, 17 Jun 2024 08:34:29 +0200 > >> From: Eshel Yaron via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> > The expected behavior: jump cursor to bk1 or bk2 > >> > > >> > The actual behavior: nothing happens, except the left fringe display= s > an additional bookmark icon if your current > >> > point is not at one of the bookmark locations. > >> > >> Thanks, I can reproduce this issue on master. Does the diff below yie= ld > >> the expected behavior? > > > > Thanks, I have independently came to the same solution. So please > > install this on master, but with a comment explaining why we record > > point before calling display-function. > > All right, see commit 27f46ba4b96. > > > Eshel > --000000000000d8b872061b1a3554 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=20 Does the diff below yield
the expected behavior?

Yes. It works perfectl= y.

Thanks.

Best regards,<= /div>
Siyuan Chen

On Mon, Jun 17, 2024 at 11:15=E2=80=AFPM Esh= el Yaron <me@eshelyaron.com>= wrote:
Eli Zare= tskii <eliz@gnu.org> writes:

>> Cc:
716= 03@debbugs.gnu.org
>> Date: Mon, 17 Jun 2024 08:34:29 +0200
>> From:=C2=A0 Eshel Yaron via "Bug reports for GNU Emacs,
>>=C2=A0 the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>=
>>
>> > The expected behavior: jump cursor to bk1 or bk2
>> >
>> > The actual behavior: nothing happens, except the left fringe = displays an additional bookmark icon if your current
>> > point is not at one of the bookmark locations.
>>
>> Thanks, I can reproduce this issue on master.=C2=A0 Does the diff = below yield
>> the expected behavior?
>
> Thanks, I have independently came to the same solution.=C2=A0 So pleas= e
> install this on master, but with a comment explaining why we record > point before calling display-function.

All right, see commit 27f46ba4b96.


Eshel
--000000000000d8b872061b1a3554-- From unknown Tue Aug 19 10:05:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Siyuan Chen Subject: bug#71603: closed (Re: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor) Message-ID: References: <86jzihicgb.fsf@gnu.org> X-Gnu-PR-Message: they-closed 71603 X-Gnu-PR-Package: emacs Reply-To: 71603@debbugs.gnu.org Date: Sat, 22 Jun 2024 08:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1719046562-1779-1" This is a multi-part message in MIME format... ------------=_1719046562-1779-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71603@debbugs.gnu.org. --=20 71603: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71603 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1719046562-1779-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71603-done) by debbugs.gnu.org; 22 Jun 2024 08:55:26 +0000 Received: from localhost ([127.0.0.1]:44375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKwWs-0000Rv-Fk for submit@debbugs.gnu.org; Sat, 22 Jun 2024 04:55:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKwWr-0000Ri-4J for 71603-done@debbugs.gnu.org; Sat, 22 Jun 2024 04:55:25 -0400 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 1sKwWk-0001hz-I6; Sat, 22 Jun 2024 04:55:19 -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=PtrLbefnTcqozmVaJP56XuMygP2RHHqxdCi62KlU9cc=; b=sN0gQM0ufdez U9ehpakib5bIf4IV/q4Dml2r5QzZZOVmDNocuC9fUL3XwyKOe9Sn5wS8xh/9Dwm/Gy4ZgCPQvSd45 qSRz8XHSH5ZMjFShxIrUi2hGkJnsGurn8sX4WFHHhAK984JDx2pQ/pAMqeYGefCV7n0bQXq16BNnP BFPBjQAE6sk1Jwf9WcDWtNfwiGkZi53rjjJTFaqdBx4CdesCSZajqKFM3qwuAFzqDOZGAnx9ao92z vpOaunT2lbnCSfaOnabJ5fncTZz1iKr4vtAwbaaBdOJHCK7Er3/L9HMYvXFQGlxHzCYa6yV0jwtUV X8pqzlu/WY8UevUGYAaVfg==; Date: Sat, 22 Jun 2024 11:55:16 +0300 Message-Id: <86jzihicgb.fsf@gnu.org> From: Eli Zaretskii To: Eshel Yaron In-Reply-To: (message from Eshel Yaron on Mon, 17 Jun 2024 17:15:18 +0200) Subject: Re: bug#71603: Mouse clicking on a list-bookmarks' entry can not jump the cursor References: <8634pbsrvp.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71603-done Cc: chansey97@gmail.com, 71603-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Eshel Yaron > Cc: chansey97@gmail.com, 71603@debbugs.gnu.org > Date: Mon, 17 Jun 2024 17:15:18 +0200 > > Eli Zaretskii writes: > > >> Cc: 71603@debbugs.gnu.org > >> Date: Mon, 17 Jun 2024 08:34:29 +0200 > >> From: Eshel Yaron via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> > The expected behavior: jump cursor to bk1 or bk2 > >> > > >> > The actual behavior: nothing happens, except the left fringe displays an additional bookmark icon if your current > >> > point is not at one of the bookmark locations. > >> > >> Thanks, I can reproduce this issue on master. Does the diff below yield > >> the expected behavior? > > > > Thanks, I have independently came to the same solution. So please > > install this on master, but with a comment explaining why we record > > point before calling display-function. > > All right, see commit 27f46ba4b96. Thanks, closing. ------------=_1719046562-1779-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jun 2024 00:31:24 +0000 Received: from localhost ([127.0.0.1]:56969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ0HL-0006rY-Mt for submit@debbugs.gnu.org; Sun, 16 Jun 2024 20:31:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:39328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ0HJ-0006rQ-Io for submit@debbugs.gnu.org; Sun, 16 Jun 2024 20:31:22 -0400 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 1sJ0HG-00080Z-G0 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 20:31:19 -0400 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJ0HE-0001qm-W7 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 20:31:18 -0400 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-632597a42b4so18086577b3.0 for ; Sun, 16 Jun 2024 17:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718584273; x=1719189073; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=j01WcsO1/iyAgTLyXv3oO8sdRwmhM6BHXw+ARQwRUtQ=; b=P/68OLhAHMlj1+v/hkL4t2S8rTHm4PKMCJJcCfubREZC9O+9Ha8rxNcdXrKQI/gHxN +iug1n9Jb7iQmJjRpCWiCWDRqi/8D316eY18PrFb34kDJNGRDcClk38KDgIU7VPcU0N+ rlF+NtxqbIQqogkcFG/ozH6C7YG/KURmVmGRSlti880ltAJ51pWWp2jMx2TiYkHHWNCD HHX8Fd4EmWOPZd6RqU1nym6NhoAaJ0tH3mAh+unqHDw0qeKYBsEGDJnU7kM1GRCj3rJV pBWQM5m6s3a3Kr4J4MHqWN8uaE4KI73gsoVXheNdXRWnb1eUX04jbNk9pICY1FM9+Ufl 7SEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718584273; x=1719189073; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=j01WcsO1/iyAgTLyXv3oO8sdRwmhM6BHXw+ARQwRUtQ=; b=l7W5eYsEURb7qxThlAWJ8O4gjzfFr5QlXTl1Bpg0My2reIHqlqvC4Mt424YMq8fzj/ fWEyR4PlraEgbH233fab1n6A7sRdi5BuLJdTQFl46t+Feum3gdz4ArxckBh3eNWX60SI wCNEJ5vAjQt3zZHpGJuNbxN8DNg1zPyiADxGW6LwJH/OBugEorkqzo0Ph5o7zyTGhipP Bl36wJ3RSAqya9DN6DpcYrLjBmbFUO1Teo14fXr3BZWk8ZGtoIleRpZYeuh0glk+BpUy tbjnjluY0C4vV23JPqcTu9QGxkcQ1iREueveo9VsWDodBnWHXd3VKLs6bch9oaQ6DKsL 5AJw== X-Gm-Message-State: AOJu0YyiJqiHeypRzLAcS+ZoHyUvWYdM7CARd0DL3byhe+5w52YIU1Us oxQTQyS6ED9sl8ij/bw/6vGWrMpys/8em4Zm/+gFTkHerSPDLtU57koy5/wzZblazA0ghJx0GW2 /3KyOp6qd0rmKH4oc1nLPjHWSZ5ddMs5JGJg= X-Google-Smtp-Source: AGHT+IHx7CA1s2cxCOmfxAADd9qFgNeGpRv+TpUjmOVsaQIOloTBAPiq3beq7vDo/rL01HdZuZFYxXqJ9SpcL6lImM8= X-Received: by 2002:a05:690c:4b09:b0:617:b979:a4db with SMTP id 00721157ae682-632064d7b7amr63057537b3.21.1718584273560; Sun, 16 Jun 2024 17:31:13 -0700 (PDT) MIME-Version: 1.0 From: Siyuan Chen Date: Mon, 17 Jun 2024 08:31:02 +0800 Message-ID: Subject: Mouse clicking on a list-bookmarks' entry can not jump the cursor To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000246de7061b0b1580" Received-SPF: pass client-ip=2607:f8b0:4864:20::1132; envelope-from=chansey97@gmail.com; helo=mail-yw1-x1132.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --000000000000246de7061b0b1580 Content-Type: text/plain; charset="UTF-8" The reproduce steps: 1. Open Emacs 29.3 on Windows with -Q 2. Open a .el file which included some code, e.g. init.el 3. M-x `bookmark-delete-all` to cleanup bookmarks if you have 4. M-x `bookmark-set` at some locations, e.g. bk1 bk2 5. M-x `list-bookmarks` to open *Bookmark List* which should have 2 entries 6. Split 2 windows, the up window displays init.el, the bottom window displays *Bookmark List* 7. Mouse left click (or press 'on' ) on bk1 or bk2 in *Bookmark List* The expected behavior: jump cursor to bk1 or bk2 The actual behavior: nothing happens, except the left fringe displays an additional bookmark icon if your current point is not at one of the bookmark locations. I don't know if this is a bug or the intended behavior, but when I put the mouse on the bk1 or bk2 entry it will show "mouse-1: go to this bookmark in other window", so I believe it is a bug. In addition, if you click the entries via Mouse middle click, i.e. mouse-2, then it seems to half work with a different weird behavior. Simply traced the code and found that both invoke `bookmark-bmenu-other-window-with-mouse` but I don't know why they have different behaviors. P.s. I can workaround it via hacking bookmark.el because `bookmark-jump` works perfectly, but I just want to know if this is a real bug. Thanks. Best regards, Siyuan Chen --000000000000246de7061b0b1580 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The reproduce steps:

1. Open Emacs 29.3 on Windo= ws with -Q

2. Open a .el file which included some code, e.g. init.el=

3. M-x `bookmark-delete-all` to cleanup bookmarks if you have
4. M-x `bookmark-set` at some locations, e.g. bk1 bk2

5. M-x `list= -bookmarks` to open *Bookmark List* which should have 2 entries

6. S= plit 2 windows, the up window displays init.el, the bottom window displays = *Bookmark List*

7. Mouse left click (or press 'on' ) on bk1 = or bk2 in *Bookmark List*

The expected behavior: jump cursor to bk1= or bk2

The actual behavior: nothing happens, except the left fringe= displays an additional bookmark icon if your current point is not at one o= f the bookmark locations.

I don't know if this is a bug or the i= ntended behavior, but when I put the mouse on the bk1 or bk2 entry it will = show "mouse-1: go to this bookmark in other window", so I believe= it is a bug.

In addition, if you clic= k the entries via Mouse middle click, i.e. mouse-2, then it seems to half work with a different weird = behavior. Simply traced the code and found that both invoke `bookmark-bmenu-other= -window-with-mouse` but I don't know why they have different behaviors.=

P.s. I can workaround it via h= acking bookmark.el because `bookmark-jump` works perfectly, but I just want to know if this is a real = bug.

Thanks.

Best regards,

Siyuan Chen<= br>
--000000000000246de7061b0b1580-- ------------=_1719046562-1779-1--