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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

This bug report was last modified 56 days ago.

Previous Next


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