From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: init_iterator takes window Date: Fri, 23 Aug 2002 15:12:37 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200208231912.g7NJCbo02616@rum.cs.yale.edu> References: <200208231757.g7NHvPl02258@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030130023 13795 127.0.0.1 (23 Aug 2002 19:13:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2002 19:13:43 +0000 (UTC) Cc: "Stefan Monnier" , rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17iJsM-0003aO-00 for ; Fri, 23 Aug 2002 21:13:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17iKLr-0002vL-00 for ; Fri, 23 Aug 2002 21:44:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17iJtY-0005mz-00; Fri, 23 Aug 2002 15:14:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17iJrO-0005ig-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 15:12:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17iJrM-0005iM-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 15:12:41 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17iJrJ-0005ho-00; Fri, 23 Aug 2002 15:12:38 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g7NJCbo02616; Fri, 23 Aug 2002 15:12:37 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Thien-Thi Nguyen Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6812 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6812 > appearance can also change between two windows even > in the same frame. > > so there is a semantic gap between current `current-column' and one that > would take into account variable-width fonts, implying `current-column' > callers need to bifurcate their usage to call some "window-current-column" > if they care about variable-width fonts, and `current-column' otherwise. The problem is not specific to variable-width fonts. Even in Emacs-20 the `current-column' depends on the window because of window-specific overlays that might make some part of the buffer invisible in one window but not in another. And the problem is not only with `current-column' but also with how we use the result. If we then use it to align to pieces of text, they might be aligned in one window but not in another. Stefan PS: I don't see why `current-column' needs an extra `window' argument. What's wrong with using the currently selected window ?