From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Wrong window end reported after splitting window Date: Sat, 23 Feb 2008 16:50:06 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203781822 29337 80.91.229.12 (23 Feb 2008 15:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 15:50:22 +0000 (UTC) To: "Emacs Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 23 16:50:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSweF-00031s-A5 for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 16:50:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSwdj-0001Bz-Rl for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 10:50:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSwde-0001Bh-D2 for emacs-devel@gnu.org; Sat, 23 Feb 2008 10:50:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSwdc-0001BB-Hy for emacs-devel@gnu.org; Sat, 23 Feb 2008 10:50:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSwdc-0001B8-CF for emacs-devel@gnu.org; Sat, 23 Feb 2008 10:50:08 -0500 Original-Received: from wr-out-0506.google.com ([64.233.184.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSwdc-00012Z-3f for emacs-devel@gnu.org; Sat, 23 Feb 2008 10:50:08 -0500 Original-Received: by wr-out-0506.google.com with SMTP id 58so1274009wri.10 for ; Sat, 23 Feb 2008 07:50:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=Vc7P+J518eRAYfft5yDH1gkV79Piuo1QvCax9AbxdQg=; b=RTjW8YE+f+6EnRBO3fJrtuBgIVixn9jk0PMNiiGYFBmjdB3jO6aYnChZzojrmvTMNSO8E8e/zm7EjUf2WY6BLYxD8JsSfVs2DheEpGfLZEgaXZMs4WnIA4KUfOmLvT9mI3zyifWm8q6/1LfE+TXBVcFy1JgRRLuVI9SO0VQpG8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=VZX3REPicKw3DOexwqemLTpJnZ3mHVXHNYCbE/Vt6avoj6rnCRDjZvQ5tkWF2lYAUBC7ydT2w1bP0YBmbuwyjmLr/5xDyw/9T54EQV5zC53aEASb7wD/TmWde8b4Szs5u9/YuuxCydknP8HeEsGbREyCYKwbaDxvEoxETIdawjg= Original-Received: by 10.115.92.2 with SMTP id u2mr662500wal.139.1203781806489; Sat, 23 Feb 2008 07:50:06 -0800 (PST) Original-Received: by 10.115.72.13 with HTTP; Sat, 23 Feb 2008 07:50:06 -0800 (PST) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90122 Archived-At: 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