all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Emacs Devel" <emacs-devel@gnu.org>
Subject: Wrong window end reported after splitting window
Date: Sat, 23 Feb 2008 16:50:06 +0100	[thread overview]
Message-ID: <f7ccd24b0802230750h4f1123cbj397870db9560e665@mail.gmail.com> (raw)

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




             reply	other threads:[~2008-02-23 15:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23 15:50 Juanma Barranquero [this message]
2008-02-23 18:52 ` Wrong window end reported after splitting window 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0802230750h4f1123cbj397870db9560e665@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.