C-x n w (widen)
does not restore the position of a formerly narrowed region in relation to the window, as it was before calling C-x n n (narrow-to-region)
. Is it possible to have such behaviour?
EDIT: The effect should be as if C-x n n
and C-x n w
were wrapped into a save-excursion
form, I guess. If the first line of the region was the nth line of the window then, after widening, it should return to be the nth line of the window. Point should keep its position relative to the formerly narrowed region.
window-start
point remaining the same? If edits are made to the narrowed region, things are naturally going to be changing when widened. Or, are you most interested in placing point at the beginning or ending of where the region was initially narrowed (before edits were made) -- and if so, which one? Do you want the window point to be centered? Any other details on the desired result would be helpful. – lawlist Jun 29 '15 at 23:16window-start
andpoint
. – politza Jun 29 '15 at 23:53