all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.