From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: init_iterator takes window Date: Thu, 22 Aug 2002 23:18:03 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: Reply-To: ttn@glug.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030083777 17740 127.0.0.1 (23 Aug 2002 06:22:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2002 06:22:57 +0000 (UTC) Cc: 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 17i7qS-0004c1-00 for ; Fri, 23 Aug 2002 08:22:56 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17i8Jg-0001u4-00 for ; Fri, 23 Aug 2002 08:53:09 +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 17i7rb-0005bV-00; Fri, 23 Aug 2002 02:24:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17i7pz-0005SU-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 02:22:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17i7px-0005SI-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 02:22:26 -0400 Original-Received: from ca-crlsca-cuda3-c6a-b-211.crlsca.adelphia.net ([68.71.15.211] helo=giblet) by monty-python.gnu.org with esmtp (Exim 4.10) id 17i7pv-0005S0-00; Fri, 23 Aug 2002 02:22:23 -0400 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 17i7li-0007RM-00; Thu, 22 Aug 2002 23:18:02 -0700 Original-To: rms@gnu.org 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:6780 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6780 rms, per your suggestion, i have looked into using an iterator as a basis for a current-column computation in the presence of variable-width fonts. i see that init_iterator takes a `struct window *' as its second arg and from xdisp.c:1519 that this cannot be NULL. is it possible for there to be two different windows open on the same text with different display behaviors? if so, which window to choose? even if not, i'm confused about how to choose a window to to pass to init_iterator; might there be a legitimate call to current-column where there is no window available? any clues appreciated. thi