all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wrong window end reported after splitting window
@ 2008-02-23 15:50 Juanma Barranquero
  2008-02-23 18:52 ` martin rudalics
  0 siblings, 1 reply; 10+ messages in thread
From: Juanma Barranquero @ 2008-02-23 15:50 UTC (permalink / raw)
  To: Emacs Devel

Using linum.el showcases a bug in Emacs computation of a window's end.
Here's a simple test case from Markus Triska. Just save the code below
to problem.el and run

  emacs -q -l problem.el

The reported window end does not match the real one (as can be easily
determined with what-cursor-position or goto-char).

;;; 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)
(split-window)
(switch-to-buffer (get-buffer-create "test"))
(enlarge-window (- 8 (window-height)))
;;; problem.el ends here ;;;

             Juanma




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-02-25 16:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-23 15:50 Wrong window end reported after splitting window Juanma Barranquero
2008-02-23 18:52 ` martin rudalics
2008-02-23 20:47   ` Juanma Barranquero
2008-02-23 22:36     ` martin rudalics
2008-02-24  2:08       ` Juanma Barranquero
2008-02-24 15:34       ` Stefan Monnier
2008-02-24 22:33         ` martin rudalics
2008-02-25  2:33           ` Stefan Monnier
2008-02-25 14:07             ` martin rudalics
2008-02-25 16:09               ` 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.