From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Drew Adams <drew.adams@oracle.com>,
"'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'"
<help-gnu-emacs@gnu.org>
Subject: RE: [External] : Getting the operational value of a buffer variable
Date: Fri, 02 Dec 2022 22:00:56 +0000 [thread overview]
Message-ID: <ioyZ7SQ6LZmfuZpFfMQB96ZbLduF1JX_fHjVvL2cEtmjqo9Bc3QluCMc-yhGNwWKpF86thT_YcPOkQ6z6fwXc-snVS3udsWzzj25zfYxWFA=@protonmail.com> (raw)
In-Reply-To: <sra5ZNdfLw56PxiXUR_xIU_17eJwOkw1GIb2d7gVW7M9xpfWfZouw1NgJlwXXP_aQF94dPh1p-rVPzsSQfANSNVo-mbglEyEpV2WU6u2Qq8=@protonmail.com>
------- Original Message -------
On Friday, December 2nd, 2022 at 1:25 PM, Heime <heimeborgia@protonmail.com> wrote:
> ------- Original Message -------
> On Friday, December 2nd, 2022 at 2:52 AM, Drew Adams drew.adams@oracle.com wrote:
>
>
>
> > > I want to get the operational value of a buffer
> > > variable. If the buffer has a local value, one
> > > cannot use the default-value implementation.
> > > And if the local value in nil, I have to get the
> >
> > ^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > > default-value.
> >
> > You said this in your previous mail, and I meant to
> > correct it. It's not at all about the buffer-local
> > value being `nil'.` nil' is a legitimate value.
> >
> > It's about whether the variable has a buffer-local
> > value. If it has a buffer-local value of `nil' then
> > it has a buffer-local value.
Is there a need to store the local value in order to redisplay the original mode-line again?
I would like to be able to remove the mode-line and display it again. Not just for the
current buffer, but for all visible buffers when the frame is split into multiple windows.
> Thank you for pointing things out. I want to remove the mode-line
> on all visible buffers, then toggle them back and forth.
>
> Currently, I have the following function, but this only works for the current buffer.
>
> (defvar-local ramona-mode-line nil
> "Switch for mode-line display.")
>
> (defun ramona-mode-line-toggle ()
> "Turns the mode-line display on or off."
>
> (interactive)
>
> (if ramona-mode-line
>
> (setq mode-line-format ramona-mode-line
> ramona-mode-line nil)
>
> (setq ramona-mode-line mode-line-format
> mode-line-format nil)
>
> (force-mode-line-update t))
prev parent reply other threads:[~2022-12-02 22:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 1:07 Getting the operational value of a buffer variable Heime
2022-12-02 2:33 ` Emanuel Berg
2022-12-02 2:52 ` [External] : " Drew Adams
2022-12-02 13:25 ` Heime
2022-12-02 22:00 ` Heime [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='ioyZ7SQ6LZmfuZpFfMQB96ZbLduF1JX_fHjVvL2cEtmjqo9Bc3QluCMc-yhGNwWKpF86thT_YcPOkQ6z6fwXc-snVS3udsWzzj25zfYxWFA=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=drew.adams@oracle.com \
--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.