[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exchange-point-and-mark behavior
From: |
Sean Whitton |
Subject: |
Re: exchange-point-and-mark behavior |
Date: |
Sun, 09 Mar 2025 15:07:23 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello,
I think that a good way to frame this is: a new defcustom to invert the
behaviour of the prefix argument to exchange-point-and-mark.
That way people not using transient-mark-mode could also make use of it,
if they wanted.
This is what I use for this (obviously it's not how we'd want to do this
in emacs.git):
--8<---------------cut here---------------start------------->8---
;; Swap C-x C-x and C-u C-x C-x in Transient Mark mode.
(defun spw/exchange-point-and-mark (args)
(list (if (and transient-mark-mode (not mark-active))
(not (car args))
(car args))))
(advice-add 'exchange-point-and-mark
:filter-args #'spw/exchange-point-and-mark)
--8<---------------cut here---------------end--------------->8---
--
Sean Whitton
- Re: exchange-point-and-mark behavior, (continued)
- Re: exchange-point-and-mark behavior, Thierry Volpiatto, 2025/03/11
- Re: exchange-point-and-mark behavior, Eli Zaretskii, 2025/03/11
- Re: exchange-point-and-mark behavior, Thierry Volpiatto, 2025/03/11
- Re: exchange-point-and-mark behavior, Sean Whitton, 2025/03/09
- Re: exchange-point-and-mark behavior, Sean Whitton, 2025/03/09
- Re: exchange-point-and-mark behavior, Thierry Volpiatto, 2025/03/09
- Re: exchange-point-and-mark behavior, Thierry Volpiatto, 2025/03/09
- Re: exchange-point-and-mark behavior, Eric Gillespie, 2025/03/08
- Re: exchange-point-and-mark behavior, Eli Zaretskii, 2025/03/08
- Re: exchange-point-and-mark behavior, Thierry Volpiatto, 2025/03/09
- Re: exchange-point-and-mark behavior,
Sean Whitton <=
- Re: exchange-point-and-mark behavior, Sean Whitton, 2025/03/09
- Re: exchange-point-and-mark behavior, Thierry Volpiatto, 2025/03/09
- Re: exchange-point-and-mark behavior, Eli Zaretskii, 2025/03/09
- Re: exchange-point-and-mark behavior, Sean Whitton, 2025/03/09
- Re: exchange-point-and-mark behavior, Eli Zaretskii, 2025/03/09
- Re: exchange-point-and-mark behavior, Sean Whitton, 2025/03/09
- A new Emacs package substitutes the default toolbar icons with those from SF Symbols, providing different icon sets for both light and dark mode appearances., aaaa, 2025/03/11