* bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual
@ 2020-10-14 21:11 Drew Adams
2020-10-15 7:27 ` Lars Ingebrigtsen
2020-10-15 13:46 ` Eli Zaretskii
0 siblings, 2 replies; 9+ messages in thread
From: Drew Adams @ 2020-10-14 21:11 UTC (permalink / raw)
To: 43996
Subject line says it all.
I couldn't find where this is used in the Lisp code, so I guess it's
used in C code.
In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.18362
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual
2020-10-14 21:11 bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual Drew Adams
@ 2020-10-15 7:27 ` Lars Ingebrigtsen
2020-10-15 15:18 ` Drew Adams
2020-10-15 13:46 ` Eli Zaretskii
1 sibling, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-15 7:27 UTC (permalink / raw)
To: Drew Adams; +Cc: 43996
Drew Adams <drew.adams@oracle.com> writes:
> Subject line says it all.
>
> I couldn't find where this is used in the Lisp code, so I guess it's
> used in C code.
Where did you happen onto the modeline frame parameter?
Reading the code, it looks like internal bookkeeping, and is always set
on the C level from f->wants_modeline, which again is only set to false
in make_minibuffer_frame.
So it doesn't look like a frame parameter that can be set by the user,
if I'm reading the code correctly, and therefore shouldn't be documented.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual
2020-10-15 7:27 ` Lars Ingebrigtsen
@ 2020-10-15 15:18 ` Drew Adams
2020-10-15 15:46 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Drew Adams @ 2020-10-15 15:18 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 43996
> Where did you happen onto the modeline frame parameter?
I see it when I invoke function `frame-parameters'.
I don't have it in any of my code. It must be coming
from Emacs itself.
> Reading the code, it looks like internal bookkeeping, and is always set
> on the C level from f->wants_modeline, which again is only set to false
> in make_minibuffer_frame.
Thanks for that info. That corresponds to what I
see. I cannot add a mode-line to a standalone
minibuffer frame, it seems. See bug #43997 for a
request to be able to do that.
> So it doesn't look like a frame parameter that can be set by the user,
> if I'm reading the code correctly, and therefore shouldn't be documented.
Can't be set, but can be seen. And you can
_seemingly_ set it. You get no error or direct
indication that it doesn't get set, when you try
to set it. So at the very least, its visibility
and apparent setting can mislead/confuse users.
If it were entirely invisible from Lisp, then,
yes, it wouldn't need to be described/explained.
The fact that you can't really set it should
maybe be doc'd. Or at least the fact that
non-nil means there is a mode-line (or whatever
it really means), and that a standalone
minibuffer frame can't have a mode-line (but
why not?).
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual
2020-10-15 15:18 ` Drew Adams
@ 2020-10-15 15:46 ` Eli Zaretskii
0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2020-10-15 15:46 UTC (permalink / raw)
To: Drew Adams; +Cc: larsi, 43996
> Date: Thu, 15 Oct 2020 08:18:25 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 43996@debbugs.gnu.org
>
> Can't be set, but can be seen. And you can
> _seemingly_ set it.
You can set a parameter by any name you like. That's how frame-local
variables are used. That doesn't mean a name you invent should be
documented.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual
2020-10-14 21:11 bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual Drew Adams
2020-10-15 7:27 ` Lars Ingebrigtsen
@ 2020-10-15 13:46 ` Eli Zaretskii
1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2020-10-15 13:46 UTC (permalink / raw)
To: Drew Adams; +Cc: 43996
> Date: Wed, 14 Oct 2020 14:11:02 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> Subject line says it all.
No, it doesn't. Did you actually have a real-life use case where that
parameter was needed and useful to your Lisp program?
> I couldn't find where this is used in the Lisp code, so I guess it's
> used in C code.
This parameter doesn't really exist, it's an illusion.
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <<c681ba8e-b2c4-4db0-826f-520a6e974bb1@default>]
end of thread, other threads:[~2021-09-25 15:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-14 21:11 bug#43996: 26.3; Please document frame parameter `modeline' in the Elisp manual Drew Adams
2020-10-15 7:27 ` Lars Ingebrigtsen
2020-10-15 15:18 ` Drew Adams
2020-10-15 15:46 ` Eli Zaretskii
2020-10-15 13:46 ` Eli Zaretskii
[not found] <<c681ba8e-b2c4-4db0-826f-520a6e974bb1@default>
[not found] ` <<83r1pzy53l.fsf@gnu.org>
2020-10-15 15:23 ` Drew Adams
2020-10-15 15:49 ` Eli Zaretskii
2021-09-25 15:25 ` Stefan Kangas
[not found] ` <<87362gymmk.fsf@gnus.org>
[not found] ` <<c50e35ab-699d-43b4-8ee3-ee1159630dbd@default>
[not found] ` <<837drrxzit.fsf@gnu.org>
2020-10-15 16:17 ` Drew Adams
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.