emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong window end reported after splitting window


From: martin rudalics
Subject: Re: Wrong window end reported after splitting window
Date: Sat, 23 Feb 2008 19:52:39 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> ;;; problem.el starts here ;;;
> (defun problem-show-end ()
>   (message "Window end of buffer %s: %s"
>            (buffer-name) (window-end (selected-window) t)))
>
> (view-emacs-news)
> (add-hook 'window-configuration-change-hook 'problem-show-end nil t)
                                                                    ^
FWIW, here you add `problem-show-end' buffer-locally for NEWS.

> (split-window)

Here NEWS is the current buffer and the actual value gets reported.

> (switch-to-buffer (get-buffer-create "test"))

Here NEWS is no more current, no value gets reported.

> (enlarge-window (- 8 (window-height)))
> ;;; problem.el ends here ;;;

What you see is the value reported after splitting the window not after
enlarging it.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]