[Top][All Lists]
[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.
- Wrong window end reported after splitting window, Juanma Barranquero, 2008/02/23
- Re: Wrong window end reported after splitting window,
martin rudalics <=
- Re: Wrong window end reported after splitting window, Juanma Barranquero, 2008/02/23
- Re: Wrong window end reported after splitting window, martin rudalics, 2008/02/23
- Re: Wrong window end reported after splitting window, Juanma Barranquero, 2008/02/23
- Re: Wrong window end reported after splitting window, Stefan Monnier, 2008/02/24
- Re: Wrong window end reported after splitting window, martin rudalics, 2008/02/24
- Re: Wrong window end reported after splitting window, Stefan Monnier, 2008/02/24
- Re: Wrong window end reported after splitting window, martin rudalics, 2008/02/25
- Re: Wrong window end reported after splitting window, Stefan Monnier, 2008/02/25