GNU bug report logs - #33033
27.0.50; [wishlist] Registers for non-file buffers

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Sat, 13 Oct 2018 08:10:02 UTC

Severity: wishlist

Found in version 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33033 in the body.
You can then email your comments to 33033 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33033; Package emacs. (Sat, 13 Oct 2018 08:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Eller <eller.helmut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 13 Oct 2018 08:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; [wishlist] Registers for non-file buffers
Date: Sat, 13 Oct 2018 10:09:44 +0200
1.) It would be nice if the register machinery could also be used for
switching to buffers that aren't connected to a file but have
more-or-less fixed names like *shell*, *Backtrace*, or *scratch*.

E.g. (set-register ?s '(buffer "*scratch*")) could set up things so that
C-x r j s would switch to the *scratch* buffer.

2.) Similarly, it would be useful to have a way to switch to a buffer
based on the buffer's mode.

E.g. (set-register ?l '(mode emacs-lisp)) could switch to the last
recently used buffer in emacs-lisp mode.

I suppose I could implement this myself with registerv-make, but maybe
those two use cases should be standardized and documented.

Helmut




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33033; Package emacs. (Thu, 11 Jul 2019 15:39:01 GMT) Full text and rfc822 format available.

Message #8 received at 33033 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 33033 <at> debbugs.gnu.org
Subject: Re: bug#33033: 27.0.50; [wishlist] Registers for non-file buffers
Date: Thu, 11 Jul 2019 17:38:27 +0200
Helmut Eller <eller.helmut <at> gmail.com> writes:

> 1.) It would be nice if the register machinery could also be used for
> switching to buffers that aren't connected to a file but have
> more-or-less fixed names like *shell*, *Backtrace*, or *scratch*.
>
> E.g. (set-register ?s '(buffer "*scratch*")) could set up things so that
> C-x r j s would switch to the *scratch* buffer.

Can you use registers today to jump to buffers that are connected to
files?  I'm wondering why you're singling out non-file buffers here...

But in general, it seems to me that these keystrokes aren't that much
more efficient than just C-x b scr RET or something.

> 2.) Similarly, it would be useful to have a way to switch to a buffer
> based on the buffer's mode.
>
> E.g. (set-register ?l '(mode emacs-lisp)) could switch to the last
> recently used buffer in emacs-lisp mode.

Hm...  I don't quite see the utility here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 11 Jul 2019 15:39:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33033; Package emacs. (Thu, 11 Jul 2019 16:16:02 GMT) Full text and rfc822 format available.

Message #13 received at 33033 <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 33033 <at> debbugs.gnu.org
Subject: Re: bug#33033: 27.0.50; [wishlist] Registers for non-file buffers
Date: Thu, 11 Jul 2019 18:15:12 +0200
On Thu, Jul 11 2019, Lars Ingebrigtsen wrote:

> Helmut Eller <eller.helmut <at> gmail.com> writes:
>
>> 1.) It would be nice if the register machinery could also be used for
>> switching to buffers that aren't connected to a file but have
>> more-or-less fixed names like *shell*, *Backtrace*, or *scratch*.
>>
>> E.g. (set-register ?s '(buffer "*scratch*")) could set up things so that
>> C-x r j s would switch to the *scratch* buffer.
>
> Can you use registers today to jump to buffers that are connected to
> files?  I'm wondering why you're singling out non-file buffers here...

Yes, I have (set-register ?e '(file . "~/.emacs")) in .emacs.

> But in general, it seems to me that these keystrokes aren't that much
> more efficient than just C-x b scr RET or something.
>
>> 2.) Similarly, it would be useful to have a way to switch to a buffer
>> based on the buffer's mode.
>>
>> E.g. (set-register ?l '(mode emacs-lisp)) could switch to the last
>> recently used buffer in emacs-lisp mode.
>
> Hm...  I don't quite see the utility here.

Well, you can close this bug.

Helmut




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33033; Package emacs. (Fri, 12 Jul 2019 15:15:03 GMT) Full text and rfc822 format available.

Message #16 received at 33033 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 33033 <at> debbugs.gnu.org
Subject: Re: bug#33033: 27.0.50; [wishlist] Registers for non-file buffers
Date: Fri, 12 Jul 2019 17:14:16 +0200
Helmut Eller <eller.helmut <at> gmail.com> writes:

>> Helmut Eller <eller.helmut <at> gmail.com> writes:
>>
>>> 1.) It would be nice if the register machinery could also be used for
>>> switching to buffers that aren't connected to a file but have
>>> more-or-less fixed names like *shell*, *Backtrace*, or *scratch*.
>>>
>>> E.g. (set-register ?s '(buffer "*scratch*")) could set up things so that
>>> C-x r j s would switch to the *scratch* buffer.
>>
>> Can you use registers today to jump to buffers that are connected to
>> files?  I'm wondering why you're singling out non-file buffers here...
>
> Yes, I have (set-register ?e '(file . "~/.emacs")) in .emacs.

Ah, I see.  Yes, then it makes sense to add a `buffer' form, too, I
think?

Does anybody object to this?  It seems about as useful as the `file'
form...  And looking at the implementation in register.el, it looks
pretty trivial to add.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Sep 2019 16:23:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33033; Package emacs. (Tue, 30 Nov 2021 14:18:02 GMT) Full text and rfc822 format available.

Message #21 received at 33033 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 33033 <at> debbugs.gnu.org
Subject: Re: bug#33033: 27.0.50; [wishlist] Registers for non-file buffers
Date: Tue, 30 Nov 2021 15:17:24 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Ah, I see.  Yes, then it makes sense to add a `buffer' form, too, I
> think?
>
> Does anybody object to this?  It seems about as useful as the `file'
> form...  And looking at the implementation in register.el, it looks
> pretty trivial to add.

I've now added this to Emacs 29.

As for the:

> E.g. (set-register ?l '(mode emacs-lisp)) could switch to the last
> recently used buffer in emacs-lisp mode.

I don't think that sounds generally useful enough, so I've not added
that.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 33033 <at> debbugs.gnu.org and Helmut Eller <eller.helmut <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 30 Nov 2021 14:18:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 29 Dec 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 90 days ago.

Previous Next


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