GNU bug report logs - #75645
Implement something like (bookmark-bmenu-list) for registers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Dani Moncayo <dmoncayo@HIDDEN>; dated Sat, 18 Jan 2025 10:51:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 20:07:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 15:07:34 2025
Received: from localhost ([127.0.0.1]:43860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZF6T-0001qH-Ry
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 15:07:34 -0500
Received: from mout01.posteo.de ([185.67.36.65]:55349)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <thievol@HIDDEN>)
 id 1tZF6R-0001py-GF
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 15:07:32 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id DAAC8240027
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 21:07:23 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1737230843; bh=Sp79JkaC/CuA7NXseNxwPBkTw9Sl406Smz5A2vbmuHo=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=NgOasFcwQNHxeHV7YSWEgSUPRMotJfB/JGHywa7qDMZAlj8ANGAfE0SSqP0dChxo2
 luE8Vqr+70WGlHOdqaTDlBKqdYXIsz21jRyOUckKIgTNcJGnsn8WfIJPXD4ze0B0+C
 dkm0SJ1j/SLlDN8UGj7RNc7I4AuNuT/uji8EBMTNl5XH9pmoNTXXn66sMpJ1K1eXiH
 IUtZAs2KFZUU+BC2JZuqvJ5CHtVrGbcOzwBhoLMFEIBAU05Ia33DJ5cpV2T26pdaGs
 XpM+03Df6dBH/wsCPrgvzpvVuXcuTaevoYme/6HVryuZYeC/QV2D6N+PN7LQq86k19
 53+3j3UGNOM7w==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Yb71Q04hDz6twd;
 Sat, 18 Jan 2025 21:07:21 +0100 (CET)
From: Thierry Volpiatto <thievol@HIDDEN>
To: Dani Moncayo <dmoncayo@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
In-Reply-To: <CAH8Pv0izOK0sw=wrbA-HAikqM4gyAdAFpxOs8L=xoLVZXLGuMA@HIDDEN>
 (Dani Moncayo's message of "Sat, 18 Jan 2025 20:06:01 +0100")
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 <86sepg9vh8.fsf@HIDDEN> <87tt9wnjfs.fsf@HIDDEN>
 <CAH8Pv0h1qUUjoNpsxpFr7s_KTXGsXKvJK3ZKo0s9FBVzG3OSfQ@HIDDEN>
 <87o704nfl6.fsf@HIDDEN>
 <CAH8Pv0jCsXhOwT4Lfw=dDP-Axn_DDMRLpZnPCQNr1BQV3Nj2yA@HIDDEN>
 <CAH8Pv0izOK0sw=wrbA-HAikqM4gyAdAFpxOs8L=xoLVZXLGuMA@HIDDEN>
Date: Sat, 18 Jan 2025 20:13:50 +0000
Message-ID: <87ikqbop6p.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75645
Cc: Thierry Volpiatto <thievol@HIDDEN>, 75645 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Dani Moncayo <dmoncayo@HIDDEN> writes:

> On Sat, Jan 18, 2025 at 7:44=E2=80=AFPM Dani Moncayo <dmoncayo@HIDDEN>=
 wrote:
>>
>> On Sat, Jan 18, 2025 at 7:20=E2=80=AFPM Thierry Volpiatto <thievol@poste=
o.net> wrote:
>> >
>> > Dani Moncayo <dmoncayo@HIDDEN> writes:
>> > >
>> > > I like that (register-delete) command.  But I think it should error
>> > > out if I specify an already empty register.
>> >
>> > You can't (try to) delete an empty register with the preview.
>>
>> (??) Maybe I'm missing something.
>>
>> If I execute the (delete-register) command you wrote, and then I type
>> a key which doesn't currently have any register value, what I see is
>> that the preview window and the prompt message disappear, as if the
>> command had finished correctly. But I could have accidentally hit the
>> wrong key, and thought everything went well, when it didn't.
>
> Oh, I think I found the misunderstanding: If I do
> (customize-set-variable 'register-use-preview 'insist), then I indeed
> get an error ("[not matching]") in the echo area.
>
> But with the default value of register-use-preview (traditional), the
> (delete-register) command should error out if I try to delete an empty
> register, like it does if I try to jump to an empty register.

Yes the default value (traditional) doesn't handle properly such issues
among other things.

=2D-=20
Thierry

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

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

iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmeMC34THHRoaWV2b2xA
cG9zdGVvLm5ldAAKCRAOxW0UHRbvk/0xDACVHK1e7s6WmEWePY4xsIJ5cQO2aUHL
fHTpJbopdKhhGnjMc265/yfmq03wpk6vvDaSQ3MMy+qv5C0gKNCLliYueO8VfcNl
aaOX8fX3xiR5gqvtKzn6HjpJlDHZ+W22tVNElDX4rHNR8wEF4Emji/XOrjsoRfin
nqPkmudaRT1OzIRQBZD3FR1E/vGQeN3go3DhgKS9DdwWUcIAXZ5kirCmRSlBsI7A
h+2PeA7VN+nWbo37IvaQ2zjjrff/rDm14TnZH5TekewOvUWKbJ+j1jl47RxXcb/O
WRnDIwGMnG6BA1T0WdjbGapOnBTJ54rkGus1b6hBhMWyiD0RgyZ0OD7KpPyvwG7E
0zqb9v1LJDw68/Iy4YRi/rbkzaYLWAK5PRky8ykGynPA+JSuIxzFQ7w+lFU29r+F
t/oO8cZ1P5FL8p6ieQpEVsFAwZTuf2U6rL6yVnNXbudhE9OfaYK2XjylP/Gidl7V
9a174gcQhTJyO5dQq0vgK8AMUQ+sp25S9CE=
=1WtO
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 19:06:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 14:06:21 2025
Received: from localhost ([127.0.0.1]:43793 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZE9F-0007UN-Cx
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 14:06:21 -0500
Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:47615)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <dmoncayo@HIDDEN>)
 id 1tZE9D-0007U9-28
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 14:06:19 -0500
Received: by mail-pj1-x102d.google.com with SMTP id
 98e67ed59e1d1-2f441791e40so4341642a91.3
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 11:06:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737227173; x=1737831973; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=u8OAzKTEE6rPCPJSXcDW0h/pSZk4W04qXdEscKV8bzo=;
 b=N9fOezZvICbmWlYR0f3nSgtvv/HRkhZ+0mduA/R7j6KL5zMOOoxItPUBciJsIaIs8p
 gM1NxEtXnYwa2E6kJxdPvdn8X7Imn/6Fy7oP1LwXWJS6gmyNHvDylEAnwUfF0VQgvUIN
 Wk36AYJIgx6Mb5L581qhLkutvHtim9wkb5u0sOCY/KPljs1OLQvSwF7kbE3agQ/TaCj7
 fTvXC4q0kRzaatnpHxUwNeM/73pOBspSrVeQWMla9bnnvauUuykC6X9dg2grABWqzcuU
 Lx9IULLWIJ/VFK8XMZgE+dUMG2xirRcKyPhDT2zrGy27oJHPIariBXYRUfihgxq9vXdx
 Px0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737227173; x=1737831973;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=u8OAzKTEE6rPCPJSXcDW0h/pSZk4W04qXdEscKV8bzo=;
 b=Livjc7eCKDtJtUhRX81DBqMU6HkWFpNQIaJFN6NlCigMWhHRxMDTXTjnxgXSxKT0n1
 v76SH9T+8H8Vftr3DIEEiM5XtNgI4OfqE6VqVvSNmn2AIye6FEnxgtyZp0M8fNluNXsg
 lIPlx5wZLCqmQDTXY/zL/Rq9SzeEhRs5s0Ela3UgwGW02kjAHa0OrRmJfxPQjBTCseXu
 5h1zFNNczD0yVdReii8kHgan/kK5gntUzeO8My8GM24fa5gQwWAPjH7338pwdrVkUZh1
 7m0eXdwMsbljKJTA4EpQkOZIhZiyStxGmqknywAib1JvbJdAZa0T9kmJbVi+1P1SQpMV
 Re+w==
X-Forwarded-Encrypted: i=1;
 AJvYcCVOTqHAxySQOZ10P7ZsApumyWxRLd34YXWfm6gsj1cs+uhf8Bexa5CIvWcIKhKjoeqVAciyAg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwgSKHtFl1QEBWkZPhg4yeg1kDTrH6G0MDIqfDwLDUtFwWsKLP4
 P3f33qiNrOt0VHxsSr7RG5txSnv1TdvbY1OKpQm8WdNZCGAG5vgX31xY0sGUgOOqLhNDqGLLbLL
 O5fYHHa3YO6z8oBkBnI77RzXrQ0g=
X-Gm-Gg: ASbGnctZRHdqKo1yfCfCeT0KXEdf2YQ/EngE0cKUuJgTPA0ElD9oSw+PxYP9NhQCiDC
 q/9nQYdaydBbpvjBRlhjDYQVNSt5z6BjROaQQDDqEG9rYCwNW8xA=
X-Google-Smtp-Source: AGHT+IER41ahsEjGSi98RoHAwy71bo7PpcFxYiX/ZcHf/c/gqzUofGkReGRBEuZAduKL/QClYejG0Lw/0x4BZt1Vn5s=
X-Received: by 2002:a17:90b:2e0b:b0:2ef:3192:d280 with SMTP id
 98e67ed59e1d1-2f782c65731mr9561150a91.5.1737227172724; Sat, 18 Jan 2025
 11:06:12 -0800 (PST)
MIME-Version: 1.0
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 <86sepg9vh8.fsf@HIDDEN> <87tt9wnjfs.fsf@HIDDEN>
 <CAH8Pv0h1qUUjoNpsxpFr7s_KTXGsXKvJK3ZKo0s9FBVzG3OSfQ@HIDDEN>
 <87o704nfl6.fsf@HIDDEN>
 <CAH8Pv0jCsXhOwT4Lfw=dDP-Axn_DDMRLpZnPCQNr1BQV3Nj2yA@HIDDEN>
In-Reply-To: <CAH8Pv0jCsXhOwT4Lfw=dDP-Axn_DDMRLpZnPCQNr1BQV3Nj2yA@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Sat, 18 Jan 2025 20:06:01 +0100
X-Gm-Features: AbW1kvbwLFl2fMwseG2pARtwL3bqmTNzZduC0273NURCLWu7r8Tt95rfcfn6C6A
Message-ID: <CAH8Pv0izOK0sw=wrbA-HAikqM4gyAdAFpxOs8L=xoLVZXLGuMA@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
To: Thierry Volpiatto <thievol@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75645
Cc: 75645 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, Jan 18, 2025 at 7:44=E2=80=AFPM Dani Moncayo <dmoncayo@HIDDEN> w=
rote:
>
> On Sat, Jan 18, 2025 at 7:20=E2=80=AFPM Thierry Volpiatto <thievol@posteo=
.net> wrote:
> >
> > Dani Moncayo <dmoncayo@HIDDEN> writes:
> > >
> > > I like that (register-delete) command.  But I think it should error
> > > out if I specify an already empty register.
> >
> > You can't (try to) delete an empty register with the preview.
>
> (??) Maybe I'm missing something.
>
> If I execute the (delete-register) command you wrote, and then I type
> a key which doesn't currently have any register value, what I see is
> that the preview window and the prompt message disappear, as if the
> command had finished correctly. But I could have accidentally hit the
> wrong key, and thought everything went well, when it didn't.

Oh, I think I found the misunderstanding: If I do
(customize-set-variable 'register-use-preview 'insist), then I indeed
get an error ("[not matching]") in the echo area.

But with the default value of register-use-preview (traditional), the
(delete-register) command should error out if I try to delete an empty
register, like it does if I try to jump to an empty register.

--=20
Dani Moncayo




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 18:44:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 13:44:21 2025
Received: from localhost ([127.0.0.1]:43727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZDnx-0006Ok-JE
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 13:44:21 -0500
Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:55528)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <dmoncayo@HIDDEN>)
 id 1tZDnv-0006OX-4g
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 13:44:20 -0500
Received: by mail-pl1-x635.google.com with SMTP id
 d9443c01a7336-21636268e43so74682895ad.2
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 10:44:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737225853; x=1737830653; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=J+GgN8U9oNfIxsdXP96lBbasri05lGUo7O9il2ay5x4=;
 b=Ic/AdCb77ZhnstLDCy0/ZItgVaQsMUIPwRZbh61rpUGYPomdJb2ABA0kNxRkIwOPMr
 HlWuds0ujiY0+1QWYgUb9hbGmA4GGHfDN9ecR65iF3RvPUgRnV9s9MG/XKbgRAsbe9cq
 ILcTP3VPnFYVWzmbjDmntpnGG18IW2LmEHHzon0zbfE+zapWLWfLO/RgDTUXO+MSm+j0
 jvjU2Yd9ssFf7oaO3K3i1+D594IagQrfOeUiADDEeTp4dRnV/c720kyYFEBJnGvwI/jH
 oaTxLLC7/AaFaDL43oelcrSzQOo65yD3FMsnPXlk7SOflblM+kooulVDQLO3rbPWMws2
 6QCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737225853; x=1737830653;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=J+GgN8U9oNfIxsdXP96lBbasri05lGUo7O9il2ay5x4=;
 b=wimTnVn61i5CUsoOYjyuX6AFw1VsVoEsXRuNIGEUEU8m6jrjIAHdRLxlO+gUw2/+9H
 1Pwv+Rcm61Wtft2sWVEHHeZOCr5pxeCkNdv4QBOIeNy0k3bQOq+7apxvMkAiWCLXscjz
 FnUJbxJ+amN9lL4bVPuPnG5p0MWv6YD1ydEtbGFD734VNZ/x7mY/kKyTF07fsXcB5Xyp
 pEOLq1Av54UiyOWms7ytYtjXQZYPRajrDMV5JEyezDlnzCQGVon6s2BF+jY2+KtLojWY
 MUeiYDMptKXCYsziuC0OmhGk9GLXZJAYibnIcrcqcDbMkwmFrFAq7CBGZ39dboaFYFld
 cFnA==
X-Forwarded-Encrypted: i=1;
 AJvYcCXYfOYGr5QrWYLBnJwKspfYg64Hf6XlOjvd+T+wjpcGdQEaGGxTNkReahHl/ueFXpLP/CYI5g==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxN9MGNbXNoXLvUeFjeLct/BarU3x9r8LRkljzw74ibmeUjqIio
 T+0J4Tf/IlcsCb0hehFCgQ+quMzHr9Vy2Gb3bMiDW8HyeqErpA95hMYmRFzfmVPHNXjmNiSL0Zw
 lZZGlb1bC2PCOgCMyzhSJTxGId84=
X-Gm-Gg: ASbGncsi5HTKStSx+2ju7KgoEofCZ4LlFFETkj3R9ikw9HXZib/59x8/z5VEeJ4dA6t
 jIEUem70Pd60EGYuujlwaNZ/BI3o+auR2e9LYZp2SlB3esTlO8+o=
X-Google-Smtp-Source: AGHT+IGEf+SqypkvJhsqT+xuUbJLGozvZ+gYEdWmVGrRwmVLkbXsP+73VTBbUA6Q3zaQ8Ncol703svfQDaFOSbm+tQ8=
X-Received: by 2002:a17:902:f7ce:b0:215:773a:c168 with SMTP id
 d9443c01a7336-21c352de425mr110634945ad.1.1737225852917; Sat, 18 Jan 2025
 10:44:12 -0800 (PST)
MIME-Version: 1.0
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 <86sepg9vh8.fsf@HIDDEN> <87tt9wnjfs.fsf@HIDDEN>
 <CAH8Pv0h1qUUjoNpsxpFr7s_KTXGsXKvJK3ZKo0s9FBVzG3OSfQ@HIDDEN>
 <87o704nfl6.fsf@HIDDEN>
In-Reply-To: <87o704nfl6.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Sat, 18 Jan 2025 19:44:01 +0100
X-Gm-Features: AbW1kvZw4v3UV9vbfudaqtz4CX_HRrQ7AvUZErHfI92dtbY_8pEcjZeFpC4XKv8
Message-ID: <CAH8Pv0jCsXhOwT4Lfw=dDP-Axn_DDMRLpZnPCQNr1BQV3Nj2yA@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
To: Thierry Volpiatto <thievol@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75645
Cc: 75645 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, Jan 18, 2025 at 7:20=E2=80=AFPM Thierry Volpiatto <thievol@HIDDEN=
et> wrote:
>
> Dani Moncayo <dmoncayo@HIDDEN> writes:
> >
> > I like that (register-delete) command.  But I think it should error
> > out if I specify an already empty register.
>
> You can't (try to) delete an empty register with the preview.

(??) Maybe I'm missing something.

If I execute the (delete-register) command you wrote, and then I type
a key which doesn't currently have any register value, what I see is
that the preview window and the prompt message disappear, as if the
command had finished correctly. But I could have accidentally hit the
wrong key, and thought everything went well, when it didn't.

--=20
Dani Moncayo




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 18:20:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 13:20:14 2025
Received: from localhost ([127.0.0.1]:43689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZDQb-0005O8-Vr
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 13:20:14 -0500
Received: from mout02.posteo.de ([185.67.36.66]:46811)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <thievol@HIDDEN>)
 id 1tZDQZ-0005Iz-H0
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 13:20:12 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 4540C240103
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 19:20:02 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1737224403; bh=/ntHhFYpoxT7tN2+hNm3TGcMlA1U0xNJYmqc3A5/riY=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=Pxjc0te/8c7/O0vQ8beXmKX68+Vly5egnqpkrX/SxgjLiXk8kVatOfXWQ1CxEXzxR
 481sP1p9Os0EdX5yW7ReM6I0xsGrretcBkVqBBXDXXtME8V+dMLxqc1+1W8nHJoF0D
 dBrsqMuYGGG2dsy9Px48+QsiK8EYAH/WrMeKAyEK2rPKPf/7lWtaLKysMBr1z9q6Gu
 7IEBfv2gNyNaadhWKRUyB/9JX4TUWyVwE4pzm5T1RhmhJKhDABJe2SLaCqSL9wXI7T
 BHYCWabNTHQz85Gr9W5xoNfYT4dGdVD+Lr8+09jm/9nWcGqqapMRBTlRxXZzi2svIO
 jJWUykNSH6Eqw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Yb4dY3HRKz6twC;
 Sat, 18 Jan 2025 19:20:01 +0100 (CET)
From: Thierry Volpiatto <thievol@HIDDEN>
To: Dani Moncayo <dmoncayo@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
In-Reply-To: <CAH8Pv0h1qUUjoNpsxpFr7s_KTXGsXKvJK3ZKo0s9FBVzG3OSfQ@HIDDEN>
 (Dani Moncayo's message of "Sat, 18 Jan 2025 19:07:56 +0100")
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 <86sepg9vh8.fsf@HIDDEN> <87tt9wnjfs.fsf@HIDDEN>
 <CAH8Pv0h1qUUjoNpsxpFr7s_KTXGsXKvJK3ZKo0s9FBVzG3OSfQ@HIDDEN>
Date: Sat, 18 Jan 2025 18:26:29 +0000
Message-ID: <87o704nfl6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75645
Cc: Thierry Volpiatto <thievol@HIDDEN>, 75645 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Dani Moncayo <dmoncayo@HIDDEN> writes:

> On Sat, Jan 18, 2025 at 5:56=E2=80=AFPM Thierry Volpiatto <thievol@posteo=
.net> wrote:
>>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>> >> From: Dani Moncayo <dmoncayo@HIDDEN>
>> >> Date: Sat, 18 Jan 2025 11:50:23 +0100
>> >>
>> >> While analyzing source code files, I use (a lot) the functionality of
>> >> keeping buffer
>> >> positions in registers ((point-to-register) and (jump-to-register)).
>> >>
>> >> But I miss being able to display the current list of registers in a n=
ew buffer
>> >> similar to the one generated for bookmarks with the command
>> >> (bookmark-bmenu-list).
>> >>
>> >> And following the analogy, I'd like that new buffer to allow things l=
ike:
>> >> * Delete one, several, or all registers.
>> >> * Jump to the position pointed by some register, by clicking (or
>> >> pressing ENTER) on its line.
>> >>
>> >> I'd very much like to have such a feature, and I think others would l=
ike it too.
>> >
>> > Thanks.
>> >
>> > Thierry, any comments or suggestions?
>>
>> It is easy to provide a delete register command for Emacs, however with
>> the preview interface we can delete only one register at once:
>>
>> --8<---------------cut here---------------start------------->8---
>> (customize-set-variable 'register-use-preview 'insist)
>>
>> (defun register-delete (register)
>>   (interactive (list (register-read-with-preview "Delete register: ")))
>>   (setq register-alist (delete (assoc register register-alist)
>>                                register-alist)))
>>
>> (cl-defmethod register-command-info ((_command (eql register-delete)))
>>   (make-register-preview-info
>>    :types '(all)
>>    :msg "Delete register `%s'"
>>    :act 'modify
>>    :smatch t))
>> --8<---------------cut here---------------end--------------->8---
>
> I like that (register-delete) command.  But I think it should error
> out if I specify an already empty register.

You can't (try to) delete an empty register with the preview.

=2D-=20
Thierry

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

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

iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmeL8lYTHHRoaWV2b2xA
cG9zdGVvLm5ldAAKCRAOxW0UHRbvk93fC/0fno2WNXE4t9K1cA6aViZKf2Uybdbx
vR8ql/BAqC7uNGwD0G7Rx4McYy7tp4HV0jnigXD/XvQ5bL/3rUMq5amvi6DQnpMl
L+KDejASU7mO2jRxo90Kc4UXpIQ5XZhflLxSb8oxjO76RWtEFRBpk7RMyI/houtn
bERyh7hcoQAf6wNTC6doC5UMFdmm3RY6bCi5HQimO96rHI33mhuk4hD0AHxhXx/I
LcpanbzS54NWSuaATJnb20SW9YRwstE5JjfCUsG8aSNiIpK6nv8hYTlPqzQ0YhzJ
x38IZMOQgN359YHq9tFDfXu+CC2tliY/IQLEnCTuzt5yIMlCnNRU52Z8CT+Kfdwg
nS12H39T3kYz9spjx1Opp5ws048Z2TnAS540rhjxK7CVZ9SvxrjmEa9jefRN+viZ
QVxVH5VV/oA5QQVAhnY9ijaz66ZTXDD0SOLXg5NBZTgJ8P71QtPwzLhnS2vzBXkc
PdRs4USbnA77WNIm50LVoYsLoPYuVzpV2kM=
=A2r8
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 18:08:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 13:08:18 2025
Received: from localhost ([127.0.0.1]:43676 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZDF3-0004oR-By
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 13:08:17 -0500
Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:42166)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <dmoncayo@HIDDEN>)
 id 1tZDF0-0004oA-6j
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 13:08:15 -0500
Received: by mail-pj1-x102d.google.com with SMTP id
 98e67ed59e1d1-2ef714374c0so5056691a91.0
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 10:08:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737223687; x=1737828487; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=5oa5N/QLRnnicXHfyI8MDsLiGTqhltOJNBzZqYl7RE0=;
 b=DePV9Une6O/k6RjuJsvBPsuhUEiAuYjVALhZZ2x+QQ+5xNEKCsUszxbCtY6si6WqEg
 rSNCmdaWJj0a5CMdL2byPUqTuWY8KXzynURAvm2w4oq7uAKMTYE93yMjWDn6XPpDImec
 /XIJwZgEqbi7LjfLMgv27mBljjBn4tl8b9MvFNOcP6VOlOBKdgsbQOdVwemlUE1lFwiA
 lK+o1PNprENfwe7TSTp9N6WzajWpWxNe1+ZiZjOy+dJgysODoZ/cWCgY4lp3vqbb+cOV
 Bk3ZEfDCOSJ4DuG8pZu3WMlAhuzLKGYsgk83AeFXkfGJ/ruSBL3U7Hfu19+NrjAVdu+q
 WNaQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737223687; x=1737828487;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=5oa5N/QLRnnicXHfyI8MDsLiGTqhltOJNBzZqYl7RE0=;
 b=ePzICg9ON1eepMD9nSu2EIUOpybOVomkuhXUaquw9aUphj7leXybatKdXbKm2oPIyP
 G1fkqFioTDlT655ivyGco6OuQ5J5SEyMYJeksW/6kck1FU9XbrCNZQxaVtTtXfFShC4G
 Usj1MIV6nYeA54NO23W7n/2Epg3TQdTFsDEMn8Lt8LD+qMYxjxMfwfshHYn+ZMgFj2y/
 WloM5BGZH0t2WB6n7CCLXwjijdJBK4kNIhgfkdbtPgSSJid1OFgHL44UqDHQgrGwEPYA
 lNmI+0zbAxn2OvV8oz6roZNPIjKi8aWVVsXm3JOKOQ0Kx1/nIWIYgWUnGLB+bPTomNNo
 ZkJg==
X-Forwarded-Encrypted: i=1;
 AJvYcCXrgrfp2lhAqI/oX8TSO9XNawNvvzIpad3QbEq6rM+B5KRMXY6PYTNKEEODcPZI6MSw/mE+rQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwsDKuxmbJtk2AXY3A42m5Kr+Py0vCVbwvB+UGNw4zK7S4YLjrj
 n4riBZ0HXz1x7GoPgYsXjEBg0Yc3TZZD8tv19hHChrYqpRWvHpw6TFIkW2DfHG4fH2UbVYD0Eml
 aN9ZYX7u2/qm/NqDEGCgNtFZw/3A=
X-Gm-Gg: ASbGncu8FKVHDFdg9VByyOykH4RohM3kFSXfff+ihzEvnjxpUneaEvhI8Ak35WDa6ID
 CzfBd3ULq223r3Ke/fxz0pHtCi3KuQ1o1EYe3bd0QBfaBouecIdk=
X-Google-Smtp-Source: AGHT+IFwnidgiEm5d3uCuBZe1zfR73DXjBvmsVmAbPijpjRvc8eMmMjAvocOzMSG/wHgjpg7wH+G7btvyPJeJMXWD5w=
X-Received: by 2002:a17:90b:38c6:b0:2ef:949c:6f6b with SMTP id
 98e67ed59e1d1-2f728e472dcmr23946046a91.13.1737223687598; Sat, 18 Jan 2025
 10:08:07 -0800 (PST)
MIME-Version: 1.0
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 <86sepg9vh8.fsf@HIDDEN> <87tt9wnjfs.fsf@HIDDEN>
In-Reply-To: <87tt9wnjfs.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Sat, 18 Jan 2025 19:07:56 +0100
X-Gm-Features: AbW1kva_ZNU0ocxOCUGC3tJ5xMPlt2l625NM-xXMnZuY47UAu96kxg3tk7ey2QE
Message-ID: <CAH8Pv0h1qUUjoNpsxpFr7s_KTXGsXKvJK3ZKo0s9FBVzG3OSfQ@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
To: Thierry Volpiatto <thievol@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75645
Cc: 75645 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, Jan 18, 2025 at 5:56=E2=80=AFPM Thierry Volpiatto <thievol@HIDDEN=
et> wrote:
>
> Eli Zaretskii <eliz@HIDDEN> writes:
>
> >> From: Dani Moncayo <dmoncayo@HIDDEN>
> >> Date: Sat, 18 Jan 2025 11:50:23 +0100
> >>
> >> While analyzing source code files, I use (a lot) the functionality of
> >> keeping buffer
> >> positions in registers ((point-to-register) and (jump-to-register)).
> >>
> >> But I miss being able to display the current list of registers in a ne=
w buffer
> >> similar to the one generated for bookmarks with the command
> >> (bookmark-bmenu-list).
> >>
> >> And following the analogy, I'd like that new buffer to allow things li=
ke:
> >> * Delete one, several, or all registers.
> >> * Jump to the position pointed by some register, by clicking (or
> >> pressing ENTER) on its line.
> >>
> >> I'd very much like to have such a feature, and I think others would li=
ke it too.
> >
> > Thanks.
> >
> > Thierry, any comments or suggestions?
>
> It is easy to provide a delete register command for Emacs, however with
> the preview interface we can delete only one register at once:
>
> --8<---------------cut here---------------start------------->8---
> (customize-set-variable 'register-use-preview 'insist)
>
> (defun register-delete (register)
>   (interactive (list (register-read-with-preview "Delete register: ")))
>   (setq register-alist (delete (assoc register register-alist)
>                                register-alist)))
>
> (cl-defmethod register-command-info ((_command (eql register-delete)))
>   (make-register-preview-info
>    :types '(all)
>    :msg "Delete register `%s'"
>    :act 'modify
>    :smatch t))
> --8<---------------cut here---------------end--------------->8---

I like that (register-delete) command.  But I think it should error
out if I specify an already empty register.

I propose to add it to Emacs, and also a command to delete all registers.

I would be OK with these two.

>
> But for this use case why not using bookmarks instead of registers?
>

I use registers for temporary, single-session things (analysis of source co=
de).
It would be cumbersome to use bookmarks for that.

> Note: Helm provides a command (helm-register) that does what you are
> asking.

Maybe I'll check it out if I find time.  Thanks.

> --
> Thierry


--=20
Dani Moncayo




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 16:57:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 11:57:04 2025
Received: from localhost ([127.0.0.1]:43553 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZC87-0001UA-VY
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 11:57:04 -0500
Received: from mout02.posteo.de ([185.67.36.66]:46899)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <thievol@HIDDEN>)
 id 1tZC84-0001Td-O7
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 11:57:02 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 48384240101
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 17:56:53 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1737219414; bh=vtfvSb0aPXoRMdCOVGRQnZVXGrOOa6v2eerLh6tbEZg=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=Op3IQzcYIxf/mYYg9bsn6pd0bERDFv1IPIYvIymnkQDnXGyucnJV2qUJ/mX4J1wM0
 3+BYjYqHLmOkGMfUokIttiSQixz1IjYRtP9nd+TKxWleefqhHsYX9HbEeYQ1gQM6nm
 8hYLDJQ92/ZYMCa7F2szJynb5joPTyJ8xLxjrHGEmTjirJSAQZbzozY8q94Q8rw4zN
 NuKWU82OQkvLMTPD/NlQVk5Q5MAEo4Z2QIoAzWRtEp6cWiJerYqJPw5U7lZt/peN5s
 zeHEsjKpNhoe26F/izcc5juidGOhy0wfzZZTSSrOv8zJHxl40THmRYHyDtWapaEupX
 oUcV579YgLjfg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Yb2nc0kBQz9rxF;
 Sat, 18 Jan 2025 17:56:51 +0100 (CET)
From: Thierry Volpiatto <thievol@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
In-Reply-To: <86sepg9vh8.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 18 Jan
 2025 14:06:59 +0200")
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 <86sepg9vh8.fsf@HIDDEN>
Date: Sat, 18 Jan 2025 17:03:19 +0000
Message-ID: <87tt9wnjfs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75645
Cc: Thierry Volpiatto <thievol@HIDDEN>, 75645 <at> debbugs.gnu.org,
 Dani Moncayo <dmoncayo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

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

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Dani Moncayo <dmoncayo@HIDDEN>
>> Date: Sat, 18 Jan 2025 11:50:23 +0100
>>=20
>> While analyzing source code files, I use (a lot) the functionality of
>> keeping buffer
>> positions in registers ((point-to-register) and (jump-to-register)).
>>=20
>> But I miss being able to display the current list of registers in a new =
buffer
>> similar to the one generated for bookmarks with the command
>> (bookmark-bmenu-list).
>>=20
>> And following the analogy, I'd like that new buffer to allow things like:
>> * Delete one, several, or all registers.
>> * Jump to the position pointed by some register, by clicking (or
>> pressing ENTER) on its line.
>>=20
>> I'd very much like to have such a feature, and I think others would like=
 it too.
>
> Thanks.
>
> Thierry, any comments or suggestions?

It is easy to provide a delete register command for Emacs, however with
the preview interface we can delete only one register at once:

=2D-8<---------------cut here---------------start------------->8---
(customize-set-variable 'register-use-preview 'insist)

(defun register-delete (register)
  (interactive (list (register-read-with-preview "Delete register: ")))
  (setq register-alist (delete (assoc register register-alist)
                               register-alist)))

(cl-defmethod register-command-info ((_command (eql register-delete)))
  (make-register-preview-info
   :types '(all)
   :msg "Delete register `%s'"
   :act 'modify
   :smatch t))
=2D-8<---------------cut here---------------end--------------->8---


But for this use case why not using bookmarks instead of registers?

Note: Helm provides a command (helm-register) that does what you are
asking.

=2D-=20
Thierry

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

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

iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmeL3tcTHHRoaWV2b2xA
cG9zdGVvLm5ldAAKCRAOxW0UHRbvk/oEC/9yAA2QKGAbAh1J4l0iqHFgSbe/GT3g
mdx2vTZ4pVcGTATjYe8BaU521a7QevNmkK6WtrqdqB9QPCn0kSmvTI8TLkN0lUUv
aWIkSVEmEZdw9aNp467kp9a2UV5fjhzhi6zC28ogPZaEqr9gesbgtksnNOaTLGJR
k4Mulj13sH6/WqBddscPFgvxz8f9KhtDRFQcZcrW+VNiDqQvrsP6w81LmjrnxqnW
kjgaL/QkaddY/dKhmtiX+WgpxfrRwYDt2Lx3ewV8+REhB/CBhXzsC3SS/XVlWjlA
aHjOO7yW21uOyvuV+r/vN5tw1lG3Gok28vDX2GLRDLr+feR/9zA6X/cv9DSwA7Ro
EcMymvT6l2xLSrug8xPUXhZJYu3lNTy1/MP64vqlXNEOuvjMegzrFPTF7RUJchzP
RUJACWvdGXShqkUE1GWI2vEASIpDhZtYZfSwfadGmAqn5z8sVjCJjAuZ9LyYVz5C
cxqlBzMfR+Wm6HzzZNqUjQiwkOy2f0M0tEc=
=WmhD
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 13:50:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 08:50:17 2025
Received: from localhost ([127.0.0.1]:40729 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZ9DM-0000fy-Qw
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 08:50:17 -0500
Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:52679)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <dmoncayo@HIDDEN>)
 id 1tZ9DJ-0000bL-9q
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 08:50:14 -0500
Received: by mail-pj1-x1032.google.com with SMTP id
 98e67ed59e1d1-2ee51f8c47dso4261081a91.1
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 05:50:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737208207; x=1737813007; darn=debbugs.gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=ba70A4e4GD+xDQVInOARwm5DLxJnmQtY+i0TEW8ZBLI=;
 b=F/YmlnSm8ieaGGCpZpRCTrmeK/S/Kx+uQvz+FeXX1E4mLV8pge7NHC/r0tV21FEUiU
 wExXJZ74cwwzWy/twYM9kjagLfptacanNfhSEhqKPtR46a1riS1Z6XmgzIdOcwrjNDzd
 8RAJ8TdgpBMBl0d8RnaBC5OzmPcqm+D1DQl1ncSShrCFQApgYcC35QGZcFY6GXO4pwc3
 Ls+Q7aPwweW8jRQWYVvj4GAvUBt4NncdRw8G9mZ3ijCplQvOd1cxOTt60VwFDmyGmUOm
 Va6uYMXRHHhma7r83F38yXEUkh5BRWaRu3Yz1HihGVl3+mq5CMLcwmECGwQMn85rhF8/
 RadQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737208207; x=1737813007;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=ba70A4e4GD+xDQVInOARwm5DLxJnmQtY+i0TEW8ZBLI=;
 b=QOv97LQqWV/s0IyfpX5cmNICBt5S/nb1har/3bWGXOnjNIiRfr9Agmq1yL8IhvIqrv
 yf8lMaYKlMIAbXcqAf2Bk9kSbrxJqz0hPt6PDPQkHfPS7X8nvPQ+5t7v5mWiL0DYA+Wz
 OL1II1ZCxHi0x5DXp3KeZanETa78WxkhgJsxw5oW52Yah7RYo7/wB4XskYS06eu0H3FA
 5RLOWIhEYyXaqq94syrr7xSxludW58XnqlZT2qtZ0xoM6wHRpjz2g5R2GEWWIf4ROtkY
 0mWJAALT3CioOdqdMz4FEvq76cmPaokq7cb+/cYsyJBzDIO7KktLEmt1uIChv/QM8YpS
 e6eQ==
X-Gm-Message-State: AOJu0Yx86vz13LsRcaYynX64771BWUOgExcBtp78Z0J/UbifbDkuNGoO
 f9R9ubKHyRzQgsjqelYWab+BrSqyrf2866y66M7447v1MHxv2sULefkCYSGvunkMmF8wY6JdlRm
 8/RbYBRpd0NAhR6UDLa6e++R91wozRnOG
X-Gm-Gg: ASbGncsALwU+pNSSbtSCNrqwulON2mPgNELjpR3n8Tvf3PQgx1PtA3n3yUSbr+1Whz9
 usP5QkAp4GOjyxE+dJixbjZnoLKyYJRR0I4AbWXCLKzgGyZWMSj4=
X-Google-Smtp-Source: AGHT+IE8xC83f6Fy4woHm674LhUa4wSR38yaJmOniyAYNtb532R8Xng8xqudRKR1UwverOO6FOU311FGom7XhdNNEOU=
X-Received: by 2002:a17:90a:c88c:b0:2ef:e0bb:1ef2 with SMTP id
 98e67ed59e1d1-2f782cbdfefmr8985491a91.19.1737208206704; Sat, 18 Jan 2025
 05:50:06 -0800 (PST)
MIME-Version: 1.0
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Sat, 18 Jan 2025 14:49:55 +0100
X-Gm-Features: AbW1kvZyHYYghp4GoUcNdx_G3M5D7j5RMlWWrWWEqiMNZwZ78yGGhiufRPryIRg
Message-ID: <CAH8Pv0hU-K+SjnQxY4w4N5ymWu3j415hJanOXp=FS_sFdRU9qw@HIDDEN>
Subject: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
To: 75645 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75645
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

By the way, I also miss a command to reset/clear the list of registers.

For now, I have the below code in my init file.  I find it useful when
I'm about to start a new research, and what to start anew with an
empty list of registers.

Something like this may be useful for others, I think.

-------
(defun clear-all-registers ()
  "Clear all registers."
  (interactive)
  (setq register-alist nil)
  (message "All registers have been cleared."))
(define-key global-map [?\C-x?r?a] 'clear-all-registers)

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 12:07:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 07:07:10 2025
Received: from localhost ([127.0.0.1]:40614 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZ7bZ-0001Uq-Rh
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 07:07:10 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:60384)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZ7bX-0001UZ-VD
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 07:07:08 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tZ7bS-00077a-DB; Sat, 18 Jan 2025 07:07:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=jfEk4rIsWX7nmx7ay6QA/Dmpgxt9p6pSDQONTGP6yqI=; b=Xj6iOH78B/KX
 9IXXX/F5pGc2bSaW3DVSl41elD8eH/ED/zxLhGqGpt/Hc6igwewhueygJ9bQTbA7EsuWmb77AkeUb
 nTVGydjP8Xk60auvryMqt3hGDl4em6dRSeWTbCiRKIF8dfatgXcB8reO9JgEd3lWgn0/f0nv14VmA
 BqipkDeCiidpXIkvcFqVwVvtaxqYLsytPYvNoypfRAOEGlzyIdMWKICHnWsxp8Z6Fxb+T04pZ6Dt4
 ueZingFFIFBsie+8DhgtDDj7GKWeQ+RiUBXI/d2OkS5xPMWo3y7j6c0Qmrdca06SoBugEsEffwi6i
 eDEMV5yr1EtJoz5ESXNPig==;
Date: Sat, 18 Jan 2025 14:06:59 +0200
Message-Id: <86sepg9vh8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dani Moncayo <dmoncayo@HIDDEN>, Thierry Volpiatto <thievol@HIDDEN>
In-Reply-To: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
 (message from Dani Moncayo on Sat, 18 Jan 2025 11:50:23 +0100)
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75645
Cc: 75645 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Dani Moncayo <dmoncayo@HIDDEN>
> Date: Sat, 18 Jan 2025 11:50:23 +0100
> 
> While analyzing source code files, I use (a lot) the functionality of
> keeping buffer
> positions in registers ((point-to-register) and (jump-to-register)).
> 
> But I miss being able to display the current list of registers in a new buffer
> similar to the one generated for bookmarks with the command
> (bookmark-bmenu-list).
> 
> And following the analogy, I'd like that new buffer to allow things like:
> * Delete one, several, or all registers.
> * Jump to the position pointed by some register, by clicking (or
> pressing ENTER) on its line.
> 
> I'd very much like to have such a feature, and I think others would like it too.

Thanks.

Thierry, any comments or suggestions?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at 75645 <at> debbugs.gnu.org:


Received: (at 75645) by debbugs.gnu.org; 18 Jan 2025 11:02:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 06:02:13 2025
Received: from localhost ([127.0.0.1]:40438 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZ6ai-0003mh-Kj
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 06:02:13 -0500
Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]:56572)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1tZ6af-0003mF-NF
 for 75645 <at> debbugs.gnu.org; Sat, 18 Jan 2025 06:02:10 -0500
Received: by mail-ua1-x929.google.com with SMTP id
 a1e0cc1a2514c-85bad7be09dso1662215241.0
 for <75645 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 03:02:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737198124; x=1737802924; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=5JtpomTEPFG7FbmKQrbL1UP/k68w0vZN4T/nV8CiY/s=;
 b=JezBW/La1Ng0oXogj7+e22x+R0fc4hgQqmEGGw4fZWU6vi+LC4OTTP3aq0zYbheYVm
 DgR8HzU1lksiPM3EUyL9U/OEE57qAir7AZ0OveJoNDpCp1+3tbH8IoMJhyDJoKwiOpS4
 TXP5sXmQP2AfNUfuL/8G71p6VmynzCcOIXRYl6ccq14F/9aQLdZzKH0T0vuWF+Gmoe+K
 r/DkbALrj2aTeugLnTwr7WcGhnanJHpF6cki71S5RpF0ATPa84U4uxVWqkDljwGNqCJz
 MiUZWabSUJF06+bWpiz4PCat3MuRoWw1rSLM8QWJfGx4t39ZzikuumlLQaKbWF8vJ7FQ
 1+aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737198124; x=1737802924;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=5JtpomTEPFG7FbmKQrbL1UP/k68w0vZN4T/nV8CiY/s=;
 b=cZ63wHTf9L5UzRRT37pJ54u/6yP0xL7ou0YzDhaucFcZ4vrvksXXoAO/d2PgxPqDDt
 ZxvrpZR7cjTLkVLXoasSuh27pjJMqHng+ttHG/q3B7n9UUml7425ogHuJyMC6qiXhxAw
 sPgXh+4+z8PNYGyFoAkF2rBTRx4RFny8q8DkCaisTfVug4VqLyfCqpNuFhrMSESQHMw9
 366xzuK/wNtcyFeE14CRUidvRt8qdtFLWaUuQ5cZHDE9Pl9Rb41XcO1zurCsTQ+nrT1S
 03cXaDp5iwcIXrx21G3m7Ly3gYZnWdYddUarGv6HRYrbsTzxA7DBtAr80Kggd2A3Kzx2
 h9wA==
X-Gm-Message-State: AOJu0YzJfMBjpyCvY+hptdQatepkOyI3bpxeH4vr+Qo2tbTOZtNl2JwC
 B+SevysE4pTZ2SjohoyO5WXX/RRXEasR495rw1HgbmMVw4jyi7f0t37puT7mjrR2pPZlPcYF9PI
 Uwp8Nvau/neMXDI77tM82KNlrRWs=
X-Gm-Gg: ASbGncunPz6BiLe/U2w624BXJtjlLspQPNZNf3IFtdTcuTA76EWs/kB6MM4Nf6W60Lf
 iAAe2YERGoWLJ1xTljlvCQFDFNJl8wZVaA7TK+p7hNt7tjYHkkhs=
X-Google-Smtp-Source: AGHT+IEu6Meq5fDe4DjOS/RnsZwfkn0KVd/kS9FQW1HEK7jiFyCzP5myD//9P36UInWtroFD7g/6vzTQBUZMfdOPtE4=
X-Received: by 2002:a05:6102:5112:b0:4af:e61d:e22f with SMTP id
 ada2fe7eead31-4b690d10285mr4562053137.24.1737198123821; Sat, 18 Jan 2025
 03:02:03 -0800 (PST)
MIME-Version: 1.0
References: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
In-Reply-To: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Sat, 18 Jan 2025 06:00:29 -0500
X-Gm-Features: AbW1kvZJC4se5enm3x2QTpBUFKiv2QpURoeyF3V5Q_hs1kFcMfXOlt7WLVTa3yA
Message-ID: <CAN+1HbqUY5STqpJA79F-XAueOWQ+5XXiCcDq0V78m1yrRFnW7g@HIDDEN>
Subject: Re: bug#75645: Implement something like (bookmark-bmenu-list) for
 registers
To: Dani Moncayo <dmoncayo@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000001332c7062bf8f587"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75645
Cc: 75645 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000001332c7062bf8f587
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

If you don't mind using a package, Daniel Mendler's consult package
supports viewing registers.

https://github.com/minad/consult?tab=3Dreadme-ov-file#register

Along with a raft of other great features.

On Sat, Jan 18, 2025 at 5:51=E2=80=AFAM Dani Moncayo <dmoncayo@HIDDEN> w=
rote:

> Severity: wishlist.
>
> While analyzing source code files, I use (a lot) the functionality of
> keeping buffer
> positions in registers ((point-to-register) and (jump-to-register)).
>
> But I miss being able to display the current list of registers in a new
> buffer
> similar to the one generated for bookmarks with the command
> (bookmark-bmenu-list).
>
> And following the analogy, I'd like that new buffer to allow things like:
> * Delete one, several, or all registers.
> * Jump to the position pointed by some register, by clicking (or
> pressing ENTER) on its line.
>
> I'd very much like to have such a feature, and I think others would like
> it too.
> Thanks.
>
> In GNU Emacs 31.0.50 (build 32, x86_64-pc-linux-gnu, GTK+ Version
>  3.24.41, cairo version 1.18.0) of 2025-01-18 built on C11-Q8YAKWONJX0
> Repository revision: 43c2e49d19f2e7a840507ae9e728b623fcb7c341
> Repository branch: master
> Windowing system distributor 'Microsoft Corporation', version 11.0.120100=
00
> System Description: Ubuntu 24.04.1 LTS
>
> Configured features:
> CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
> LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND
> THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2
> XPM GTK3 ZLIB
>
> Important settings:
>   value of $LANG: C.UTF-8
>   locale-coding-system: utf-8-unix
>
> --
> Dani Moncayo
>
>
>
>

--0000000000001332c7062bf8f587
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">If you don&#39;t mind using a package, Daniel Mendler&#39;s consult pack=
age supports viewing registers.</div><div class=3D"gmail_default" style=3D"=
font-family:monospace"><br></div><div class=3D"gmail_default" style=3D"font=
-family:monospace"><a href=3D"https://github.com/minad/consult?tab=3Dreadme=
-ov-file#register">https://github.com/minad/consult?tab=3Dreadme-ov-file#re=
gister</a></div><div class=3D"gmail_default" style=3D"font-family:monospace=
"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">Al=
ong with a raft of other great features.</div></div><br><div class=3D"gmail=
_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sat,=
 Jan 18, 2025 at 5:51=E2=80=AFAM Dani Moncayo &lt;<a href=3D"mailto:dmoncay=
o@HIDDEN">dmoncayo@HIDDEN</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">Severity: wishlist.<br>
<br>
While analyzing source code files, I use (a lot) the functionality of<br>
keeping buffer<br>
positions in registers ((point-to-register) and (jump-to-register)).<br>
<br>
But I miss being able to display the current list of registers in a new buf=
fer<br>
similar to the one generated for bookmarks with the command<br>
(bookmark-bmenu-list).<br>
<br>
And following the analogy, I&#39;d like that new buffer to allow things lik=
e:<br>
* Delete one, several, or all registers.<br>
* Jump to the position pointed by some register, by clicking (or<br>
pressing ENTER) on its line.<br>
<br>
I&#39;d very much like to have such a feature, and I think others would lik=
e it too.<br>
Thanks.<br>
<br>
In GNU Emacs 31.0.50 (build 32, x86_64-pc-linux-gnu, GTK+ Version<br>
=C2=A03.24.41, cairo version 1.18.0) of 2025-01-18 built on C11-Q8YAKWONJX0=
<br>
Repository revision: 43c2e49d19f2e7a840507ae9e728b623fcb7c341<br>
Repository branch: master<br>
Windowing system distributor &#39;Microsoft Corporation&#39;, version 11.0.=
12010000<br>
System Description: Ubuntu 24.04.1 LTS<br>
<br>
Configured features:<br>
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG<br>
LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND<br>
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2<br>
XPM GTK3 ZLIB<br>
<br>
Important settings:<br>
=C2=A0 value of $LANG: C.UTF-8<br>
=C2=A0 locale-coding-system: utf-8-unix<br>
<br>
-- <br>
Dani Moncayo<br>
<br>
<br>
<br>
</blockquote></div>

--0000000000001332c7062bf8f587--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jan 2025 10:50:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 05:50:47 2025
Received: from localhost ([127.0.0.1]:40419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZ6Pe-0003Df-Pr
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 05:50:47 -0500
Received: from lists.gnu.org ([2001:470:142::17]:52964)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmoncayo@HIDDEN>)
 id 1tZ6Pc-0003DN-OH
 for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 05:50:45 -0500
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 <dmoncayo@HIDDEN>)
 id 1tZ6PW-0003yV-Vk
 for bug-gnu-emacs@HIDDEN; Sat, 18 Jan 2025 05:50:38 -0500
Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <dmoncayo@HIDDEN>)
 id 1tZ6PV-00052Q-IQ
 for bug-gnu-emacs@HIDDEN; Sat, 18 Jan 2025 05:50:38 -0500
Received: by mail-pl1-x636.google.com with SMTP id
 d9443c01a7336-2163dc5155fso55894385ad.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 18 Jan 2025 02:50:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737197435; x=1737802235; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=jcdicqwMxek5ZGBX3GV+b0hA1rakD5qClktTuDSGQ+o=;
 b=MT7SNDmKkg+TiwnQnkU9s166fSPXOg0drfPOTWbvl5tiKnTCZjKA5M21KN4dUaBAPH
 1ngS2meLabc6D+PM0xNDqnjHoRqB8lqzjdIYuMeMIDlzbOzAQF5fnAGLMGhLMnX2W48M
 09+NxwNnA5NShvDN/ME4aWnu8jksRNlVqg8bRhQQb3cHV3Lo1sN7e1OKaMx/99BmT2rC
 8iRkxGM+9wDgqcRfTJf6iApKcjURtOg1ZehYdxYdCqCyYTpcV2HE0VtUQ7vgCm6BU9yO
 SnVqAy7NNE0bm5lgsG4u2RHWspRUBfErSLe3qSdtmoXKd2D5En26RvchCuv1LWb6rjf1
 /x9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737197435; x=1737802235;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=jcdicqwMxek5ZGBX3GV+b0hA1rakD5qClktTuDSGQ+o=;
 b=OYIUQSvKKV5qb/NaQxdNaadyYx7+fg3F4IkjprRP8ROk8OAjnK5RhpdgbwANEY6qlI
 Q3L4xWxzacopBJDgIavI5+M60jyQ2iTv+K1HB7jbQJX7OcRJRv3xzPJPhBVeD/49ECJo
 PimncKXIu2bw6k4JIK2DPR85LGDs7TDI3zLKGYs7xtPsQ3o8o0plkXcko4I3DsiojZgL
 yx1gVoX8DDb42QiTrQja0M3sUt5YLNTZ0TwCPq+IgYQeO/9eu7HojeMDfMgOy1ym8K5E
 o3i7Uw6Fc95hfs2XP5xB4ofsvoq0/Ob9wWCMtsV8gDYCuIcWNiYZPAWEi10BgoTyMFhQ
 VeZA==
X-Gm-Message-State: AOJu0YxBK443X8WryY/qKejKly8UcDR+rR5xARj1xNPCZRuKd9R+DM6v
 X24yHo5HLsCsSAzRuTfeVwgA//T8ozeN0uxLxlAx6LGtEg1Lnh7CtdwMT3NChthR/v+lpJTFwGo
 zvOGUtX/g3/g63XEfHYx6bwv9zj1p/zW1
X-Gm-Gg: ASbGncvN6iUFCllxf9OAAeqf/fq3MvfnlAgCtBdakh040b3eE41E6tcCgEiUUugrLAN
 4DxicTqoIemqa4oW7vseAuM46eYpl0s1/XJAE8dRN9wW3czgzZMU=
X-Google-Smtp-Source: AGHT+IFPZ6ZMlWibb56kaUprzcK/dEU2Yqphh0WLfbbdW5JSYxxUd1hpi8nmXV9m/ngH3JlgSslv+xXUimT1CZepu08=
X-Received: by 2002:a17:902:ec84:b0:216:2bd7:1c27 with SMTP id
 d9443c01a7336-21c355dc5acmr86383205ad.33.1737197434591; Sat, 18 Jan 2025
 02:50:34 -0800 (PST)
MIME-Version: 1.0
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Sat, 18 Jan 2025 11:50:23 +0100
X-Gm-Features: AbW1kvbhM3NiMA4STWk7U8HxtyM3LGstW-Ql4VX6OIZ_PX5hOeCnHmMhunHHWX4
Message-ID: <CAH8Pv0gR2_emjC=a+h31WQmsYOtBXAxPjN3u3+_DLA=Fu5aOBA@HIDDEN>
Subject: Implement something like (bookmark-bmenu-list) for registers
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::636;
 envelope-from=dmoncayo@HIDDEN; helo=mail-pl1-x636.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Severity: wishlist.

While analyzing source code files, I use (a lot) the functionality of
keeping buffer
positions in registers ((point-to-register) and (jump-to-register)).

But I miss being able to display the current list of registers in a new buffer
similar to the one generated for bookmarks with the command
(bookmark-bmenu-list).

And following the analogy, I'd like that new buffer to allow things like:
* Delete one, several, or all registers.
* Jump to the position pointed by some register, by clicking (or
pressing ENTER) on its line.

I'd very much like to have such a feature, and I think others would like it too.
Thanks.

In GNU Emacs 31.0.50 (build 32, x86_64-pc-linux-gnu, GTK+ Version
 3.24.41, cairo version 1.18.0) of 2025-01-18 built on C11-Q8YAKWONJX0
Repository revision: 43c2e49d19f2e7a840507ae9e728b623fcb7c341
Repository branch: master
Windowing system distributor 'Microsoft Corporation', version 11.0.12010000
System Description: Ubuntu 24.04.1 LTS

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2
XPM GTK3 ZLIB

Important settings:
  value of $LANG: C.UTF-8
  locale-coding-system: utf-8-unix

-- 
Dani Moncayo




Acknowledgement sent to Dani Moncayo <dmoncayo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN.

Your message specified a Severity: in the pseudo-header, but the severity value wishlist. was not recognised. The default severity normal is being used instead. The recognised values are: critical, grave, serious, important, normal, minor, wishlist.

Full text available.


Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75645; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 21 Jan 2025 02:30:02 UTC

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