From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Barra =?UTF-8?Q?=C3=93_?= =?UTF-8?Q?Cath=C3=A1in?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73308: [PATCH] Add file-to-register and buffer-to-register. Date: Wed, 18 Sep 2024 03:51:47 +0100 Message-ID: <87h6adu118.fsf@ocathain.ie> References: <877cbbrx7r.fsf@ocathain.ie> <86msk6bhfa.fsf@gnu.org> <87jzfamkv2.fsf@posteo.net> <877cbagkbq.fsf@web.de> Reply-To: Barra =?UTF-8?Q?=C3=93_?= =?UTF-8?Q?Cath=C3=A1in?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thierry Volpiatto , Eli Zaretskii , 73308@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 04:53:13 2024 Return-path: 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 ) id 1sqkoa-000ACA-42 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 04:53:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqkoE-0000df-8w; Tue, 17 Sep 2024 22:52:50 -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 ) id 1sqkoB-0000dV-TL for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 22:52:48 -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 ) id 1sqkoB-0006Us-Dt for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 22:52:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:Date:References:In-reply-to:From:To:Subject; bh=hqsiVFXlINPmtVeGd3FLvEcUec3FZGdKPYol92Yh7iI=; b=pfqXcf4FIhVC1Z9mZvneCPNs0bvklCqXRPfm6rQbCbYbjNVfgekIfue77QCQC5vMw1iogoNXrZTSzoM/PRB/p9cw5UIfw7ykxLNWO4w97LzrDBlEHKPINfjOY0Bb9uf5Rv9g8FZP/sHXoP1q1F6C45CBkuH61Zjco7zPXhyYAqaxAwiFs7WsbPIO16gFgI2owZntyFnbVEWdS4Zb6LRXpcg1K0fXhDgi+MCLUWGuQSLXtNPY9g2Tfg7cRbU9SFagekSDDVr60lcCJB7qvtRbT6mErl6X1W6lDX8HzlLfY3eqOicca9QsR2hMIzjPn2QUATb3mJZgIVT9LRP35b2DXg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqkoQ-0000HY-C8 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 22:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barra =?UTF-8?Q?=C3=93_?= =?UTF-8?Q?Cath=C3=A1in?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2024 02:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73308-submit@debbugs.gnu.org id=B73308.1726627935948 (code B ref 73308); Wed, 18 Sep 2024 02:53:02 +0000 Original-Received: (at 73308) by debbugs.gnu.org; 18 Sep 2024 02:52:15 +0000 Original-Received: from localhost ([127.0.0.1]:56798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqkne-0000FB-L2 for submit@debbugs.gnu.org; Tue, 17 Sep 2024 22:52:15 -0400 Original-Received: from abi149bb126.cwl1.oracleemaildelivery.com ([129.149.22.126]:39399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqknc-0000Ek-Hc for 73308@debbugs.gnu.org; Tue, 17 Sep 2024 22:52:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=ocathain-2023-02-08; d=ocathain.ie; h=Date:To:From:Subject:Message-Id:MIME-Version:Sender:List-Unsubscribe:List-Unsubscribe-Post; bh=hqsiVFXlINPmtVeGd3FLvEcUec3FZGdKPYol92Yh7iI=; b=Fj3/6vvFtsPhsCJMTVDJfg2lem4UYQId0TdMl6E20SE4eQGbgiBL7RBqu/i0ILAaHMOUBGPcQfqa P9t28oLaVJab5uhaQpP47qTGw1JwlzqoHzINnblDaLHbgNULHSUMPC3Pa1RQGrHnbQW3JaIdzpg6 as7SDN86/d94f/IJW+57vjkNDZb65ihks4VPlS2uoRle0x6TAB9sFuBbKMooKuRBlFrZSKk/msEz guNPRj+Wx+QWD6eODi+1BWBpNbga7xtRzxMaTLeBm4cUrLZPDsLm/vqYiq13doNYX5X7fsc4KvVK q2dm55RRaS1J4dcBu/M8Q1dvhxUMRKsEl5PPVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=prod-cwl-20201026; d=cwl1.rp.oracleemaildelivery.com; h=Date:To:From:Subject:Message-Id:MIME-Version:Sender:List-Unsubscribe:List-Unsubscribe-Post; bh=hqsiVFXlINPmtVeGd3FLvEcUec3FZGdKPYol92Yh7iI=; b=XFQIGUd3M+BvUeskYKs+9a198dzvlxFAaFI6UL0ubnuK3cORqR96jfWY2jJxzh5VaJJ0m+Rlcxnn e81zEQJtlDYBg8gJN+xOagMXXSm7Qynw0dh2uryJBLyH/5zy2Fk+en+PLHM+k++PqGq8VhrM8h4C 3nXu4BEZRj94UxLDAoATXFv9/cKzn0uapCRiyyzT8uWtFQBLZKADhpEMEHrRjq1kUxUqW8zsqqoC FSdJaPM5MTjRfQ6JiNIyYcoQjTzsya+6i1l1KJkQj+a424vZRVapin3SqbRAcrQ8/eNsqdfZLuFL K0gbAWVldmxZqoWXdf8ZsL9k7wlWKCTnglHOMw== Original-Received: by omta-ad1-fd2-401-uk-cardiff-1.omtaad1.vcndpcwl.oraclevcn.com (Oracle Communications Messaging Server 8.1.0.1.20240709 64bit (built Jul 9 2024)) with ESMTPS id <0SJZ00FM8MMCGP20@omta-ad1-fd2-401-uk-cardiff-1.omtaad1.vcndpcwl.oraclevcn.com> for 73308@debbugs.gnu.org; Wed, 18 Sep 2024 02:51:49 +0000 (GMT) List-Unsubscribe-Post: List-Unsubscribe=One-Click In-reply-to: <877cbagkbq.fsf@web.de> (Michael Heerdegen's message of "Tue, 17 Sep 2024 21:18:49 +0200") Reporting-Meta: AAF5j09jcVJRV5CrI0aaTEnkK3zY4BLnqyUOstoqyB7/pDjK/o0npEYCMTSPezqu WEwRY9Vls+cJyViHfgSALZKQUACb1rzoLJAB1gQJ2Kyjii49nqaJU4BEGWapORmJ eZkbk/M7PPkWWakTykCg9n/vRE4pfITbJf4oOMsQVyXIBbPbviirVpdfTNN5AvVx x3uYxZpUATn14NDXsv58RZf7wZ0+RFB8/aIwPPnjFfJ/Eo+okdzd+aBfwNxmM84F QULOUIerdZ3flekjuUj/dMcsUBdRPjIV9QX9hk9xD3TtD6d724kHveCqVm6hIs8h PasmrCVnhjNqjysMkue9WNAWQt3ESwiWcQWYTLnVjG66eMZWSSt0QrMKs9Hudwy5 v/D2sDKCQ6IjJwXylgaYiygoZsT7OeqCasE3GtaB9luMzKncYXX0l7c9uJWOH2rm zqmXKmy6BzmbsCTqLNtjyNn5fevSWm+Nur+tTeRQcO9ad73Y9BYKBFIXbg== 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:291992 Archived-At: Perhaps the easiest way to demonstrate the differences I saw in their usage is to explain why I chose to wrote them and not use point-to-register: I use buffer-to-register when I'm working with lots of different buffers but I don't wish to disturb the point when switching back to them. For example, running long commands in a shell window or even just different files that I'm bouncing between, rather than dancing with switching buffers through one of the other means. I use file-to-register to pre-load notes files into registers on startup. It visually makes more sense to read in an init-file. Frankly, in interactive use I haven't found a real use for file-to-register, but I also saw no reason not to bind it. I think the main benefit to this is discoverability. Let me know if I can clarify anything for you further with this. ----- Barra Michael Heerdegen writes: > Thierry Volpiatto writes: > >> More or less you can have the same with point-to-register, the advantage >> is that when you kill the buffer, the register-alist entry is turned in >> a file-query entry (when buffer is representing a file of course), for >> example from register.el buffer: >> >> C-x r RET > > I'm worrying a bit: with this patch we would have 3 different types of > registers that would really be very similar. The user would have to > think about which is appropriate when setting the register. Or - if the > question doesn't matter - why have 3 different types? > > > Michael.