GNU bug report logs - #78806
[PATCH] (smerge-refine-region): Add support for a virtual "other cursor"

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Mon, 16 Jun 2025 11:12:01 UTC

Severity: normal

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78806: closed ([PATCH] (smerge-refine-region): Add support
 for a virtual "other cursor")
Date: Mon, 23 Jun 2025 04:05:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 23 Jun 2025 00:04:06 -0400
with message-id <jwvecvbxfxd.fsf-monnier+emacs <at> gnu.org>
and subject line Re: bug#78806: [PATCH] (smerge-refine-region): Add support for a virtual "other cursor"
has caused the debbugs.gnu.org bug report #78806,
regarding [PATCH] (smerge-refine-region): Add support for a virtual "other cursor"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78806: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78806
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] (smerge-refine-region): Add support for a virtual "other
 cursor"
Date: Mon, 16 Jun 2025 07:11:24 -0400
[Message part 3 (text/plain, inline)]
Tags: patch

The patch below adds support to `smerge-refine-region` for keeping
a kind of "virtual cursor" that shows the "corresponding" point in the
other part of a diff.  I.e. it shows where
`smerge-refine-exchange-point` would jump.

The patch is somewhat incomplete in that it works only after the user
explicitly calls `M-x cursor-sensor-mode RET` (and it lacks a NEWS entry).

I'm thinking of adding a global `smerge-refine-shadow-cursor-mode` minor
mode to enable this feature and am thinking of enabling it by default.

Comments, objections?


        Stefan


 In GNU Emacs 31.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.24.49,
 cairo version 1.18.4) of 2025-06-06 built on asado
Repository revision: 8c3dd116ce3e4ef235618502512045d47a3f0329
Repository branch: work
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)

Configured using:
 'configure -C --enable-checking --enable-check-lisp-object-type --with-modules --with-cairo --with-tiff=ifavailable
 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign'
 PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig'

[0001-smerge-refine-region-Add-support-for-a-virtual-other.patch (text/patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78806-done <at> debbugs.gnu.org
Subject: Re: bug#78806: [PATCH] (smerge-refine-region): Add support for a
 virtual "other cursor"
Date: Mon, 23 Jun 2025 00:04:06 -0400
Thanks, pushed with the suggested improvements,


        Stefan



This bug report was last modified 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.