From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Thierry Volpiatto <thievol@posteo.net>
Newsgroups: gmane.emacs.bugs
Subject: bug#66394: 29.1; Make register-read-with-preview more useful
Date: Tue, 12 Dec 2023 16:44:49 +0000
Message-ID: <875y13fjzy.fsf@posteo.net>
References: <87il7ib6cu.fsf@posteo.net> <877cmdx8ud.fsf@posteo.net>
 <jwvjzqcxrnq.fsf-monnier+emacs@gnu.org> <87sf50s1gh.fsf@posteo.net>
 <83o7ficesp.fsf@gnu.org> <878r6leh9d.fsf@posteo.net>
 <83il5pbnmh.fsf@gnu.org> <87zfz1cz7s.fsf@posteo.net>
 <83bkbc7j1o.fsf@gnu.org> <8734wov2wv.fsf@posteo.net>
 <83v89j6arv.fsf@gnu.org> <87cyvpf8y6.fsf@posteo.net>
 <83plzp82mb.fsf@gnu.org> <87a5qhxf05.fsf@posteo.net>
 <83jzpkvs4z.fsf@gnu.org> <87v8947ulo.fsf@posteo.net>
 <871qbsk5le.fsf@posteo.net>
 <f7f749d1-3a2d-0ea0-a106-6c586f4faca7@gutov.dev>
 <87v894hr2e.fsf@posteo.net> <87cyvbepi0.fsf@posteo.net>
 <87bkavk9nv.fsf@posteo.net>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="14333"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: michael_heerdegen@web.de, Eli Zaretskii <eliz@gnu.org>,
 stefankangas@gmail.com, monnier@iro.umontreal.ca, 66394@debbugs.gnu.org
To: Dmitry Gutov <dmitry@gutov.dev>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 12 17:46:09 2023
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1rD5tZ-0003SH-Dl
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Dec 2023 17:46:09 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1rD5tG-0005IK-DJ; Tue, 12 Dec 2023 11:45:50 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rD5tC-0005Ek-Nb
 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 11:45:47 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rD5tC-0005K1-Em
 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 11:45:46 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rD5tR-00027g-LR
 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 11:46:01 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Thierry Volpiatto <thievol@posteo.net>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 12 Dec 2023 16:46:01 +0000
Resent-Message-ID: <handler.66394.B66394.17023995208111@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 66394
X-GNU-PR-Package: emacs
Original-Received: via spool by 66394-submit@debbugs.gnu.org id=B66394.17023995208111
 (code B ref 66394); Tue, 12 Dec 2023 16:46:01 +0000
Original-Received: (at 66394) by debbugs.gnu.org; 12 Dec 2023 16:45:20 +0000
Original-Received: from localhost ([127.0.0.1]:57340 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1rD5sl-00026l-To
 for submit@debbugs.gnu.org; Tue, 12 Dec 2023 11:45:20 -0500
Original-Received: from mout02.posteo.de ([185.67.36.66]:55845)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <thievol@posteo.net>) id 1rD5sj-00026T-Lf
 for 66394@debbugs.gnu.org; Tue, 12 Dec 2023 11:45:18 -0500
Original-Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 08613240104
 for <66394@debbugs.gnu.org>; Tue, 12 Dec 2023 17:44:55 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1702399496; bh=vb07ETsvmV0LVHP3iXQtT5dY5Wm3U5Pzn04MFUwqKSY=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Autocrypt:OpenPGP:
 From;
 b=MLfAmCmphuGSkOiwnSC2JFZqYRG33LoRR2bUgj+FH7QHpugBthpASYrfKAGV/E7b4
 R8VmaUcSjpilYrErcmM+z+nr9i0Ywq3NfgNEPSYar77/HQR71FHTUbl2hWRZXmLwjY
 n5y2yOsYb/plNTMZk0noj7qBrJTfQRNQcft24buX+W2n8X8sXAD63JOl63WveOwrm/
 rsc+yOzqjJfrvQwaG5TnzQrcNg9Hzb4wCpms9L9r25feGRqwbgdg7yQfW/fZx3Lk8T
 0O3B45E4CBHuNri2bklXygvYjWAqgqdEuiB4fVXBoQJHVH1EwO3QvZp4XiHWPvld37
 uizVFjDW0dnxw==
Original-Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4SqPbn4ppWz6twP;
 Tue, 12 Dec 2023 17:44:53 +0100 (CET)
In-Reply-To: <87bkavk9nv.fsf@posteo.net> (Thierry Volpiatto's message of "Tue, 
 12 Dec 2023 11:16:52 +0100 (6 hours, 25 minutes, 45 seconds ago)")
Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual;
 keydata=xsDNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA
 edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p
 kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb
 tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ
 GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC
 WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha
 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA
 Ac0SdGhpZXZvbEBwb3N0ZW8ubmV0wsEOBBMBCgA4AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheA
 FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmL3HCoACgkQDsVtFB0W75OVEAv/f6XxmtIFz08fUb8h
 Bp/zJP6IC4/rhhh+0GMRIRzLN8DK0jV8JCzYdFHiRJOy2lNIOpmrrCmjRRxferc2G42+ePFIsslx
 hU46VSz1Z83NwIG3mpdYNV5WUTUdgzxExHTNTFCd7NKv0nlHKQaA 
OpenPGP: url=https://posteo.de/keys/thievol@posteo.net.asc; preference=encrypt
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=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:276061
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/276061>

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Thierry Volpiatto <thievol@posteo.net> writes:

> Here a third patch that allows more precise configuration if needed.
> For example if you have register-use-preview =3D=3D nil, no confirmation
> with RET is needed everywhere, even when overwriting a register.  If you
> want to have a confirmation when overwriting but no confirmation when
> jumping/inserting you can use this in addition of register-use-preview
> =3D=3D nil:

Finally patch 0003 is not needed, one can override default with:

    (cl-defmethod register-command-info ((_command (eql copy-to-register)))
      (make-register-preview-info
       :types '(all)
       :msg "Copy to register `%s'"
       :act 'set
       :noconfirm nil))

=2D-=20
Thierry

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmV4jgETHHRoaWV2b2xA
cG9zdGVvLm5ldAAKCRAOxW0UHRbvk0W2C/0UgdaUobiXIyNyjcvTDyVYOie4ZHk9
2O7mzHdH5t+nDDCnMzAzPTbL4Jo5tBEUYw9sl0jJXv3tLWjKMFDvnFbuLP+RYRD6
GNL0XDArdb75xT356Ab2nSYEpaJR2gZ22nWJ9ruezYaZ0d4/hQh6a05JbT23bB9b
rFFQPjMaiMKm4euAcLJPavaBArzKm0Ho0Cgv1Dv6sOAevysviFIG/4ntGjennKVk
xbGMYmSuEDlWbaVaeDBt/c3NJy52a20bjfrgqRH9syXqQKo7KhYRFmuFcJ3c1cms
s28MVofAudj+ujsSLFEA231phi5Oh5A5z0vbOXkxKIzBa0H3c15BAIW6J8FfjJAR
NmTbc11aYwt50AUsx/Size6Q0nAl2yQaO10Q4FxUI02lSSrl4w5Ngd8PXp/o8eTc
S6FsH+zmz2U45HoLPDgfhB5bUmBB/ifUZJ8mF+H/OLi6B0x50dwHCd17DvsAp0Y8
T4H3OZHXsDLInn6CZYqz+mXgsLH9Y0CyWgI=
=unJE
-----END PGP SIGNATURE-----
--=-=-=--