* blink-cursor frame parameter
@ 2009-05-17 20:57 Drew Adams
2009-05-17 21:09 ` Juri Linkov
2009-05-17 21:30 ` Stefan Monnier
0 siblings, 2 replies; 6+ messages in thread
From: Drew Adams @ 2009-05-17 20:57 UTC (permalink / raw
To: emacs-devel
There doesn't seem to be a frame parameter that corresponds to whether and how
the cursor blinks.
Other modes, such as menu-bar-mode, tool-bar-mode, scroll-bar-mode, and
fringe-mode all act via a frame parameter. Why not blink-cursor-mode also?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: blink-cursor frame parameter
2009-05-17 20:57 blink-cursor frame parameter Drew Adams
@ 2009-05-17 21:09 ` Juri Linkov
2009-05-17 21:47 ` Drew Adams
2009-05-17 21:30 ` Stefan Monnier
1 sibling, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2009-05-17 21:09 UTC (permalink / raw
To: Drew Adams; +Cc: emacs-devel
> There doesn't seem to be a frame parameter that corresponds to whether and how
> the cursor blinks.
>
> Other modes, such as menu-bar-mode, tool-bar-mode, scroll-bar-mode, and
> fringe-mode all act via a frame parameter. Why not blink-cursor-mode also?
Do we really need this for the sake of completeness? IMO, you either like
the blinking cursor or not. Not that the user can like it in one frame and
hate in another frame (provided that the user has no multiple personality :)
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: blink-cursor frame parameter
2009-05-17 20:57 blink-cursor frame parameter Drew Adams
2009-05-17 21:09 ` Juri Linkov
@ 2009-05-17 21:30 ` Stefan Monnier
2009-05-17 21:54 ` Drew Adams
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2009-05-17 21:30 UTC (permalink / raw
To: Drew Adams; +Cc: emacs-devel
> There doesn't seem to be a frame parameter that corresponds to whether
> and how the cursor blinks.
> Other modes, such as menu-bar-mode, tool-bar-mode, scroll-bar-mode,
> and fringe-mode all act via a frame parameter.
> Why not blink-cursor-mode also?
AFAIK, scroll-bar-mode and fringe-mode frame parameters are mostly
historical errors (they should be either window parameters or
buffer-local settings).
menu-bar-mode and tool-bar-mode refer to frame-level entities, so it
makes sense to configure them on a frame-by-frame basis.
Since there can be several cursors per frame, `blink-cursor-mode' should
be per-window or per-buffer.
Not sure if setting it buffer-locally works, but it's not terribly
important since AFAIK either users want it to blink everywhere
or nowhere.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: blink-cursor frame parameter
2009-05-17 21:09 ` Juri Linkov
@ 2009-05-17 21:47 ` Drew Adams
0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2009-05-17 21:47 UTC (permalink / raw
To: 'Juri Linkov'; +Cc: emacs-devel
> > There doesn't seem to be a frame parameter that corresponds
> > to whether and how the cursor blinks.
> >
> > Other modes, such as menu-bar-mode, tool-bar-mode,
> > scroll-bar-mode, and fringe-mode all act via a frame
> > parameter. Why not blink-cursor-mode also?
>
> Do we really need this for the sake of completeness?
Dunno. I was thinking that someone might define a particular class (type) or set
of frames, and associate a given set of frame parameter values with the set. I
do this with thumbnail frames, for instance. You can set the frame parameter
values to use for thumbnail frames.
I modify (advise) commands such as `menu-bar-mode' so that if you turn on or off
such a mode it won't necessarily affect the thumbnail frames. If you have an
explicit `menu-bar-lines' setting for thumbnail frames, then that is used for
them instead. If you have no such setting, then the command affects thumbnail
frames too.
It's just an example. The point is that users or libraries might create settings
for different sets or types of frames, and then want to control their properties
using frame parameters.
> IMO, you either like the blinking cursor or not.
Maybe you don't like it generally, but you like it for some class of frames
(e.g. thumbnails or frames showing a process buffer or whatever).
> Not that the user can like it in one frame and
> hate in another frame (provided that the user has no multiple
> personality :)
That's just the case I had in mind. Not a multiple personality, but different
kinds of frames, with different uses and so different properties/settings.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: blink-cursor frame parameter
2009-05-17 21:30 ` Stefan Monnier
@ 2009-05-17 21:54 ` Drew Adams
2009-05-18 3:10 ` Stefan Monnier
0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2009-05-17 21:54 UTC (permalink / raw
To: 'Stefan Monnier'; +Cc: emacs-devel
> > There doesn't seem to be a frame parameter that corresponds
> > to whether and how the cursor blinks.
>
> > Other modes, such as menu-bar-mode, tool-bar-mode, scroll-bar-mode,
> > and fringe-mode all act via a frame parameter.
> > Why not blink-cursor-mode also?
>
> AFAIK, scroll-bar-mode and fringe-mode frame parameters are mostly
> historical errors (they should be either window parameters or
> buffer-local settings).
> menu-bar-mode and tool-bar-mode refer to frame-level entities, so it
> makes sense to configure them on a frame-by-frame basis.
>
> Since there can be several cursors per frame,
> `blink-cursor-mode' should be per-window or per-buffer.
Oh, right. I forget that using (usually) one buffer per frame is still uncommon.
;-)
> Not sure if setting it buffer-locally works, but it's not terribly
> important since AFAIK either users want it to blink everywhere
> or nowhere.
See my other mail about that, substituting class/set of buffers for class/set of
frames.
(I obviously don't care much about the blink cursor case. The important use
cases I have are for things like menu-bar and tool-bar, which one typically
doesn't want to suddenly appear in each of the tiny thumbnail frames just
because you turned on menu-bar-mode after it was off.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: blink-cursor frame parameter
2009-05-17 21:54 ` Drew Adams
@ 2009-05-18 3:10 ` Stefan Monnier
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-05-18 3:10 UTC (permalink / raw
To: Drew Adams; +Cc: emacs-devel
>> Not sure if setting it buffer-locally works, but it's not terribly
>> important since AFAIK either users want it to blink everywhere
>> or nowhere.
> See my other mail about that, substituting class/set of buffers for
> class/set of frames.
We are not in the business of adding features solely on the ground of
hypothetical needs.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-18 3:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 20:57 blink-cursor frame parameter Drew Adams
2009-05-17 21:09 ` Juri Linkov
2009-05-17 21:47 ` Drew Adams
2009-05-17 21:30 ` Stefan Monnier
2009-05-17 21:54 ` Drew Adams
2009-05-18 3:10 ` Stefan Monnier
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.