all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Must prevent switching from recursive edit buffers
Date: Sat, 21 Dec 2024 22:33:01 +0300	[thread overview]
Message-ID: <Z2cX7UaVBNSEOGkA@lco2> (raw)
In-Reply-To: <jwvldw8ex04.fsf-monnier+emacs@gnu.org>

* Stefan Monnier <monnier@iro.umontreal.ca> [2024-12-21 21:10]:
> E.g. your function could add those buffers to a list of
> `my-read-from-buffers` which you can then display via an ad-hoc command
> you could implement, or you could display them in your modeline, or
> ...

Good idea.

> > - sometimes I have deleted it and [[[[]]]] still remain on the
> >   modeline; and I have no idea why;
> 
> Deleting a buffer won't get you out of the recursive edit (you didn't
> tell Emacs about the link between the buffer and the recursive-edit;
> you need a `kill-buffer-hook` for that).

Aha, that is it, so that is something that didn't make sense. 

> Also, you can only get out of the most recent recursive-edit.
> So, you can't eliminate the Nth recursive edit without also eliminating
> all the >Nth recursive-edits.

Good to follow that, and I only need one in general.

At least now I could try to figure out how to solve it with hooks.

Yes, that is exactly that, many times I have pressed `C-x k' to kill
recursive buffer, because I didn't need it any more, but now how you
explained it, it seems they remain still somewhere in memory pending,
what does it mean actually? I have no idea. If I killed it, why it is
not internally killed? They are so invincible.

-- 
Jean Louis



      parent reply	other threads:[~2024-12-21 19:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18  7:50 Must prevent switching from recursive edit buffers Jean Louis
2024-12-18 16:13 ` [External] : " Drew Adams
2024-12-18 23:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-19 12:40   ` Jean Louis
2024-12-21 15:22     ` Stefan Monnier
2024-12-21 17:38       ` Jean Louis
2024-12-21 18:08         ` Stefan Monnier
2024-12-21 18:53           ` [External] : " Drew Adams
2024-12-21 19:33           ` Jean Louis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z2cX7UaVBNSEOGkA@lco2 \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.