unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Switch buffers without modifying the buffer list ordering?
       [not found] <874k5kncd8.fsf@gmail.com>
@ 2022-02-01 14:35 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
  2022-03-25 22:25   ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Vigouroux via Users list for the GNU Emacs text editor @ 2022-02-01 14:35 UTC (permalink / raw)
  To: help-gnu-emacs

`buffer-list' displays the buffers in a specific order: the buffer in
the selected window is displayed first.

I don’t really understand how it works, but we can see that the buffer
appears at the end of the list when we select another window before
evaluating the expression `(buffer-list)'.
-- 
Best regards,
Kevin Vigouroux



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Switch buffers without modifying the buffer list ordering?
  2022-02-01 14:35 ` Switch buffers without modifying the buffer list ordering? Kevin Vigouroux via Users list for the GNU Emacs text editor
@ 2022-03-25 22:25   ` Samuel Wales
  2022-03-29  6:03     ` Kevin Vigouroux via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2022-03-25 22:25 UTC (permalink / raw)
  To: Kevin Vigouroux, help-gnu-emacs

fwiw i also have similar issues as i have f keys bound to next and
prev buffers and want things like recent stuff nearby.

others know more, but i think the buffer list is only partly under
user control.  if you go through contortions like a loop or somthing
it might be possible to do anything you want with it, but that's more
of a workaround than an actual control of it.

to address your subject header q, windows and buffers are different.

but ime various operations can change the buffer list unexpectedly, as
evidenced by familairity with it used in a use case where you use next
and prev a lot.  switching windows might be one of them.  also a lot
of commands do bury-buffer.

i have noticed tht a strange operation that seems outwardly like it
should maybe be a noop someties fixes the problem of a buffer
"disappearing" from the buffer list [i.e. going to someplace that is
not nearby wrt next and prev].

i have also noticed that emacs treats buffers differently in the
buffer list if they have different names.  i am not sure about leading
spc buffers, but *buffers* are definitely treated differently.  i
think they can disappear more.

i have resorted to doing the seeming noop in defadvice and in ariosu
places just to guard superstitiously against the disappearing buffer
problem.  idk if tht problem is related to yours, but it probably is.

here it is
(switch-to-buffer (current-buffer))


On 2/1/22, Kevin Vigouroux via Users list for the GNU Emacs text
editor <help-gnu-emacs@gnu.org> wrote:
> `buffer-list' displays the buffers in a specific order: the buffer in
> the selected window is displayed first.
>
> I don’t really understand how it works, but we can see that the buffer
> appears at the end of the list when we select another window before
> evaluating the expression `(buffer-list)'.
> --
> Best regards,
> Kevin Vigouroux
>
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Switch buffers without modifying the buffer list ordering?
  2022-03-25 22:25   ` Samuel Wales
@ 2022-03-29  6:03     ` Kevin Vigouroux via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Vigouroux via Users list for the GNU Emacs text editor @ 2022-03-29  6:03 UTC (permalink / raw)
  To: Samuel Wales; +Cc: help-gnu-emacs

My mistake, I replied on the wrong mailing list. The original thread was on
emacs-devel.

▶ https://lists.gnu.org/archive/html/emacs-devel/2022-02/msg00063.html
-- 
Best regards,
Kevin Vigouroux



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-29  6:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <874k5kncd8.fsf@gmail.com>
2022-02-01 14:35 ` Switch buffers without modifying the buffer list ordering? Kevin Vigouroux via Users list for the GNU Emacs text editor
2022-03-25 22:25   ` Samuel Wales
2022-03-29  6:03     ` Kevin Vigouroux via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).