* [RfC] Saving narrowing information within window configuration
@ 2007-08-13 10:57 Tobias C. Rittweiler
2007-08-13 11:11 ` David Kastrup
2007-08-14 0:28 ` Richard Stallman
0 siblings, 2 replies; 6+ messages in thread
From: Tobias C. Rittweiler @ 2007-08-13 10:57 UTC (permalink / raw)
To: emacs-devel
Hi,
`(info "(Elisp)Window Configurations")' says:
``A "window configuration" records the entire layout of one frame--all
windows, their sizes, which buffers they contain, _what part of each
buffer is displayed_, and the values of point and the mark. You can
bring back an entire previous layout by restoring a window
configuration previously saved.'' (emphasis mine)
As far as I can see (Emacs v22.0.91.1), narrowed regions are not
restored by saved window configurations. I propose to change that.
Comments?
-T.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RfC] Saving narrowing information within window configuration
2007-08-13 10:57 [RfC] Saving narrowing information within window configuration Tobias C. Rittweiler
@ 2007-08-13 11:11 ` David Kastrup
2007-08-13 12:15 ` Tobias C. Rittweiler
2007-08-14 0:28 ` Richard Stallman
1 sibling, 1 reply; 6+ messages in thread
From: David Kastrup @ 2007-08-13 11:11 UTC (permalink / raw)
To: Tobias C. Rittweiler; +Cc: emacs-devel
"Tobias C. Rittweiler" <tcr@freebits.de> writes:
> Hi,
>
> `(info "(Elisp)Window Configurations")' says:
>
> ``A "window configuration" records the entire layout of one frame--all
> windows, their sizes, which buffers they contain, _what part of each
> buffer is displayed_, and the values of point and the mark. You can
> bring back an entire previous layout by restoring a window
> configuration previously saved.'' (emphasis mine)
>
> As far as I can see (Emacs v22.0.91.1), narrowed regions are not
> restored by saved window configurations. I propose to change that.
>
> Comments?
Don't like it. This is not about what parts of a buffer are
displayed, but which parts are accessible.
--
David Kastrup
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RfC] Saving narrowing information within window configuration
2007-08-13 11:11 ` David Kastrup
@ 2007-08-13 12:15 ` Tobias C. Rittweiler
2007-08-13 12:44 ` David Kastrup
0 siblings, 1 reply; 6+ messages in thread
From: Tobias C. Rittweiler @ 2007-08-13 12:15 UTC (permalink / raw)
To: emacs-devel
David Kastrup <dak@gnu.org> writes:
> "Tobias C. Rittweiler" <tcr@freebits.de> writes:
>
> > As far as I can see (Emacs v22.0.91.1), narrowed regions are not
> > restored by saved window configurations. I propose to change that.
> >
> > Comments?
>
> Don't like it. This is not about what parts of a buffer are
> displayed, but which parts are accessible.
I think window configurations are mostly used for saving and restoring
the state as seen by the user, aren't they? So restoring narrowing just
seems to be the right thing.
(If restoring narrowing by default is a change that is too invasive, I'd
have nothing against making it optionally.)
-T.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RfC] Saving narrowing information within window configuration
2007-08-13 12:15 ` Tobias C. Rittweiler
@ 2007-08-13 12:44 ` David Kastrup
2007-08-13 13:23 ` Tobias C. Rittweiler
0 siblings, 1 reply; 6+ messages in thread
From: David Kastrup @ 2007-08-13 12:44 UTC (permalink / raw)
To: Tobias C. Rittweiler; +Cc: emacs-devel
"Tobias C. Rittweiler" <tcr@freebits.de> writes:
> David Kastrup <dak@gnu.org> writes:
>
>> "Tobias C. Rittweiler" <tcr@freebits.de> writes:
>>
>> > As far as I can see (Emacs v22.0.91.1), narrowed regions are not
>> > restored by saved window configurations. I propose to change that.
>> >
>> > Comments?
>>
>> Don't like it. This is not about what parts of a buffer are
>> displayed, but which parts are accessible.
>
> I think window configurations are mostly used for saving and
> restoring the state as seen by the user, aren't they? So restoring
> narrowing just seems to be the right thing.
Narrowing is not a part of the window configuration. Strictly
speaking, I already find that restoring point and mark is a mistake
here: window-point is the only thing that should be restored in each
window (if there is a currently active window, this will incidentally
also restore point, but that can't be avoided).
> (If restoring narrowing by default is a change that is too invasive,
> I'd have nothing against making it optionally.)
It is simply a mistake to do so. Narrowing is not a feature of the
display, but of buffer accessibility. You would not think of doing
"undo" until the state of the window configuration is reached, even
though buffer changes affected the state as seen by the user, would
you?
In my opinion, narrowing is of a similar degree.
--
David Kastrup
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RfC] Saving narrowing information within window configuration
2007-08-13 12:44 ` David Kastrup
@ 2007-08-13 13:23 ` Tobias C. Rittweiler
0 siblings, 0 replies; 6+ messages in thread
From: Tobias C. Rittweiler @ 2007-08-13 13:23 UTC (permalink / raw)
To: emacs-devel
David Kastrup <dak@gnu.org> writes:
> "Tobias C. Rittweiler" <tcr@freebits.de> writes:
>
> > I think window configurations are mostly used for saving and
> > restoring the state as seen by the user, aren't they? So restoring
> > narrowing just seems to be the right thing.
>
> Narrowing is not a part of the window configuration. Strictly
> speaking, I already find that restoring point and mark is a mistake
> here: window-point is the only thing that should be restored in each
> window (if there is a currently active window, this will incidentally
> also restore point, but that can't be avoided).
(Indeed, now coming of think of it, I can recall being "bitten" by the
automatic restoration of poin. "Bitten" in quotes because other times
this snapshot of state behaviour was exactly what I wanted.)
> > (If restoring narrowing by default is a change that is too invasive,
> > I'd have nothing against making it optionally.)
>
> It is simply a mistake to do so. Narrowing is not a feature of the
> display, but of buffer accessibility. [...]
I can understand that point of view. Thanks for the clarification.
Maybe there should be a more leight-weight version of window
configurations, and a more heavy-weight snapshot feature?
-T.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RfC] Saving narrowing information within window configuration
2007-08-13 10:57 [RfC] Saving narrowing information within window configuration Tobias C. Rittweiler
2007-08-13 11:11 ` David Kastrup
@ 2007-08-14 0:28 ` Richard Stallman
1 sibling, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2007-08-14 0:28 UTC (permalink / raw)
To: Tobias C. Rittweiler; +Cc: emacs-devel
``A "window configuration" records the entire layout of one frame--all
windows, their sizes, which buffers they contain, _what part of each
buffer is displayed_, and the values of point and the mark. You can
bring back an entire previous layout by restoring a window
configuration previously saved.'' (emphasis mine)
As far as I can see (Emacs v22.0.91.1), narrowed regions are not
restored by saved window configurations. I propose to change that.
I think you've misunderstood that text in the manual.
That's partly the fault of the text.
I will make it clearer.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-14 0:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-13 10:57 [RfC] Saving narrowing information within window configuration Tobias C. Rittweiler
2007-08-13 11:11 ` David Kastrup
2007-08-13 12:15 ` Tobias C. Rittweiler
2007-08-13 12:44 ` David Kastrup
2007-08-13 13:23 ` Tobias C. Rittweiler
2007-08-14 0:28 ` Richard Stallman
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.