unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Package modifying window-persistent-parameters, recursive edit
@ 2023-04-26  5:48 Qiantan Hong
  0 siblings, 0 replies; only message in thread
From: Qiantan Hong @ 2023-04-26  5:48 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hi,

I'm writing a package which temporarily make some atom windows and
disable mode lines of some windows using the mode-line-format window
parameter. Now I'm trying to make sure it is well-behaved under
recursive edit. The only sane way that I come up with is to

(set-alist 'window-persistent-parameters 'window-atom t)
(set-alist 'window-persistent-parameters 'mode-line-format t)

So that recursive-edit look really "recursive"... the inner level
won't tamper the UI state of outer levels.

However, I am aware that the above code modifies global,
non-package-namespaced state. Is what I'm doing recommended against?
Is there a more sensible way to do it? (e.g., add some hook which runs
when inner command loop exit? I'm not aware of such hook).

Thanks.

-- 
Best,
Qiantan


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-26  5:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26  5:48 Package modifying window-persistent-parameters, recursive edit Qiantan Hong

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