unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* buffer list sequence
@ 2023-11-05  3:30 Samuel Wales
  2023-11-10 13:34 ` James Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2023-11-05  3:30 UTC (permalink / raw)
  To: help-gnu-emacs

when i do delete-other-windows, soimetims i wasnt to go to the bufeer
iwhose window i  just deelted .  but i dont knoww hwat it is.

i'[d like for it to be in the buffer list right next tot the current
buffer so i can just do prev or next buffer.

sometimes it is not there.  there is fancy burying or special cases of
*buffer* and maybe more things like that [certainly also with "
buffer"].



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

* Re: buffer list sequence
  2023-11-05  3:30 buffer list sequence Samuel Wales
@ 2023-11-10 13:34 ` James Thomas
  2023-11-10 23:17   ` Samuel Wales
  0 siblings, 1 reply; 4+ messages in thread
From: James Thomas @ 2023-11-10 13:34 UTC (permalink / raw)
  To: Samuel Wales; +Cc: help-gnu-emacs

Samuel Wales wrote:

> when i do delete-other-windows, soimetims i wasnt to go to the bufeer
> iwhose window i  just deelted .  but i dont knoww hwat it is.

If it's the last buffer you were in before switching to the current one,
it'll be next in the list.

> i'[d like for it to be in the buffer list right next tot the current
> buffer so i can just do prev or next buffer.

The previous buffer will be last one you buried.

> sometimes it is not there.  there is fancy burying or special cases of
> *buffer* and maybe more things like that [certainly also with "
> buffer"].

You'll probably have to customize/advice `delete-other-windows' to do
one of the above, if you want it consistently.

--



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

* Re: buffer list sequence
  2023-11-10 13:34 ` James Thomas
@ 2023-11-10 23:17   ` Samuel Wales
  2023-11-12  9:07     ` James Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2023-11-10 23:17 UTC (permalink / raw)
  To: James Thomas; +Cc: help-gnu-emacs

thanks.

do you maen visit all other windows?  or bury them?  ugh.

apropos of nothing, in old code [i am less capable of coding now]
sometimes i do (switch-to-buffer (current-buffer)) which sometimes
fixes buffer liust problems.  i do not know why as it looks like it
should be a no-op but i ahve no idea.

On 11/10/23, James Thomas <jimjoe@gmx.net> wrote:
> Samuel Wales wrote:
>
>> when i do delete-other-windows, soimetims i wasnt to go to the bufeer
>> iwhose window i  just deelted .  but i dont knoww hwat it is.
>
> If it's the last buffer you were in before switching to the current one,
> it'll be next in the list.
>
>> i'[d like for it to be in the buffer list right next tot the current
>> buffer so i can just do prev or next buffer.
>
> The previous buffer will be last one you buried.
>
>> sometimes it is not there.  there is fancy burying or special cases of
>> *buffer* and maybe more things like that [certainly also with "
>> buffer"].
>
> You'll probably have to customize/advice `delete-other-windows' to do
> one of the above, if you want it consistently.
>
> --
>


-- 
The Kafka Pandemic

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



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

* Re: buffer list sequence
  2023-11-10 23:17   ` Samuel Wales
@ 2023-11-12  9:07     ` James Thomas
  0 siblings, 0 replies; 4+ messages in thread
From: James Thomas @ 2023-11-12  9:07 UTC (permalink / raw)
  To: Samuel Wales; +Cc: help-gnu-emacs

Samuel Wales wrote:

> apropos of nothing, in old code [i am less capable of coding now]
> sometimes i do (switch-to-buffer (current-buffer)) which sometimes
> fixes buffer liust problems.  i do not know why as it looks like it
> should be a no-op but i ahve no idea.

One reason I can think of for that is if a `switch-to-buffer' somewhere
used the NORECORD option. Your code would undo that.

You should also read (info "(elisp) Buffer List")

--



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

end of thread, other threads:[~2023-11-12  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-05  3:30 buffer list sequence Samuel Wales
2023-11-10 13:34 ` James Thomas
2023-11-10 23:17   ` Samuel Wales
2023-11-12  9:07     ` James Thomas

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).