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, 24 Oct 2023 05:30:20 +0000
Message-ID: <878r7spoj2.fsf@posteo.net>
References: <87il7ib6cu.fsf@posteo.net> <87sf67qqmp.fsf@web.de>
 <875y3386ep.fsf@posteo.net> <87a5sddh14.fsf@web.de>
 <8734y5vnj7.fsf@posteo.net> <87bkcslr18.fsf@web.de>
 <87y1fwtyrl.fsf@posteo.net> <87y1fut1wp.fsf@web.de>
 <87msw99a95.fsf@posteo.net> <87bkcovg7e.fsf@web.de>
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="35991"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 66394@debbugs.gnu.org
To: Michael Heerdegen <michael_heerdegen@web.de>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 24 07:41:00 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 1qvAA0-0009BI-AL
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Oct 2023 07:41:00 +0200
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 1qvA9f-0003xg-FV; Tue, 24 Oct 2023 01:40:41 -0400
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 1qvA9Z-0003xS-BU
 for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 01:40:33 -0400
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 1qvA9Z-0002dE-3C
 for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 01:40:33 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qvAA2-0007AL-57
 for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 01:41:02 -0400
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, 24 Oct 2023 05:41:02 +0000
Resent-Message-ID: <handler.66394.B66394.169812601727476@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.169812601727476
 (code B ref 66394); Tue, 24 Oct 2023 05:41:02 +0000
Original-Received: (at 66394) by debbugs.gnu.org; 24 Oct 2023 05:40:17 +0000
Original-Received: from localhost ([127.0.0.1]:52734 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qvA9I-000795-Rd
 for submit@debbugs.gnu.org; Tue, 24 Oct 2023 01:40:17 -0400
Original-Received: from mout02.posteo.de ([185.67.36.66]:57311)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <thievol@posteo.net>) id 1qvA9G-00078n-1s
 for 66394@debbugs.gnu.org; Tue, 24 Oct 2023 01:40:16 -0400
Original-Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 59C8B240103
 for <66394@debbugs.gnu.org>; Tue, 24 Oct 2023 07:39:38 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1698125978; bh=nTV5u+LqAy4LgF4SY2kepRNUUzFgMIpOiAfiq19fwWQ=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=YOWKvBSEqCrN+BjPU1anMtIenI5eEgxqdqYYFkJUK2YW4XqpY1M6gNfDAa35S0BKd
 fnNy4VOD1DWKOzpS5aqoQnYwcTUNPWhwNpC88x7T9g5dODscip1mo85x2HP87ZDgny
 gNVjc1EcA72HpBy00y9lTAHwCEeZND4Y2KQUQiXdHJ2MsjZK2JK+fSHaR+Y8PDLI4U
 YHcde6WB4dYwubnAmaJawoQa19xyI9pgMtmySFk33b7sJve5D1k+m3r/ffSA36GrAD
 AdXbWNO9zKqaz6jMrLi+TqjCcWnh9930Z1qXgdFazGoik7vhnFK2BDLo7jjdck5tmX
 ROK7hbSD7PILw==
Original-Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4SF18n0WvPz6tx0;
 Tue, 24 Oct 2023 07:39:36 +0200 (CEST)
In-reply-to: <87bkcovg7e.fsf@web.de>
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:273077
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/273077>

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


Michael Heerdegen <michael_heerdegen@web.de> writes:

> Thierry Volpiatto <thievol@posteo.net> writes:
>
>> Yes but I think this should go into another commit on top of my patch
>> to avoid having a "too big patch".
>
> Yes, maybe.
>
> Ok, some more remarks (I have looked at that url now...):
>
> * Would it make sense to also allow M-n (known as "future history" for
>   `completing-read') to gather the next free register (seems also
>   natural - just a thought)

It is already done ;-)

> * Multiple times I saw "contains no text" where a better hint would have
>   been to say "empty".  Not all registers contain text.  Happens
>   e.g. for C-x r SPC R where R is any unused register.

Yes I used the message vanilla Emacs already use somewhere, but yes
empty seems better.

> * register-preview-default-keys may be initialized using
>   (mapcar #'string (number-sequence ?a ?z)) if you like.

Yes could be done.=20

PS: I found a bug in my code with frame configs not appearing in preview,
now fixed, will update the gist right now with your suggestions as well.

Thanks.

=2D-=20
Thierry

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

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

iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmU3WJETHHRoaWV2b2xA
cG9zdGVvLm5ldAAKCRAOxW0UHRbvk4AQC/9N0LZLvCJzGeG05FqUCk8T6OpJGKR6
PPQxQylivR2oitfTrCT7hlUfPhWtwQeoEpWTfybQ4M/JYq87N7s9FjKI7EQpj90v
71d2ai0eYC48QVgV2hwanmgHAbTDDwEB+pRmh8wSoftXOZJ/2I18aX65D8caTzCH
njllJayiUD9M+l4KSxE8CwBA/idBAqHWzie0dFJPx/+EoqQz7CzXGuWILaaiKvmI
3tF7tWEKWMeH/64TP8ftw6sdoQ6oWeHl6lYQpbzWL6wDLQj4P43AQqcArt6JklcL
XO+tQbsM2OQe35BKTVTybtdNo9oe1kpGkopZDpBLgbJE9lSW9OQbEOMA4kXbZuFP
edgj5PxYGbAllNAW++WzhQSt3f6mbN6MaLgnlQ5dUBple3FHZBYMVDTIpQthqjjr
FpNF7G8kJxEGJWsnCxrrK+J/vGKtWxScEDrIcSWJli/q6kMjWiwpnq1uyM6bFqYb
1G2JjMaMUfzV9DcrSgHFhjRbqFQ6xFasLUU=
=OtUk
-----END PGP SIGNATURE-----
--=-=-=--