From: Qiantan Hong <qthong@stanford.edu>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Package modifying window-persistent-parameters, recursive edit
Date: Wed, 26 Apr 2023 05:48:23 +0000 [thread overview]
Message-ID: <m2y1mf19er.fsf@rescomp-21-400677.stanford.edu> (raw)
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
reply other threads:[~2023-04-26 5:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m2y1mf19er.fsf@rescomp-21-400677.stanford.edu \
--to=qthong@stanford.edu \
--cc=help-gnu-emacs@gnu.org \
/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.