From: Heime <heimeborgia@protonmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: "'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 13:25:50 +0000 [thread overview]
Message-ID: <sra5ZNdfLw56PxiXUR_xIU_17eJwOkw1GIb2d7gVW7M9xpfWfZouw1NgJlwXXP_aQF94dPh1p-rVPzsSQfANSNVo-mbglEyEpV2WU6u2Qq8=@protonmail.com> (raw)
In-Reply-To: <SJ0PR10MB54883C62BECB85EFB41082F6F3179@SJ0PR10MB5488.namprd10.prod.outlook.com>
------- 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.
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))
next prev parent reply other threads:[~2022-12-02 13:25 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 [this message]
2022-12-02 22:00 ` Heime
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='sra5ZNdfLw56PxiXUR_xIU_17eJwOkw1GIb2d7gVW7M9xpfWfZouw1NgJlwXXP_aQF94dPh1p-rVPzsSQfANSNVo-mbglEyEpV2WU6u2Qq8=@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.
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).