From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: J Krugman Newsgroups: gmane.emacs.help Subject: How to count *screen* lines? Date: Tue, 8 Jun 2004 11:46:33 +0000 (UTC) Organization: (NONE) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1088534777 14863 80.91.224.253 (29 Jun 2004 18:46:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 18:46:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 20:46:07 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfNcN-0002Ka-00 for ; Tue, 29 Jun 2004 20:46:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfNe3-0003fX-FE for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 14:47:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1086695193 26182 166.84.1.3 (8 Jun 2004 11:46:33 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 8 Jun 2004 11:46:33 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.6.5 Original-Xref: shelby.stanford.edu gnu.emacs.help:123688 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19056 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19056 Is there a way to count the number of lines as they would appear on the screen (i.e. taking into account line wrapping, if any)? For instance, a line that took up 100 (non-tab) characters in the buffer, and the current window width was 80 characters, would correspond to a screen line count of 2. Thanks! jill -- To s&e^n]d me m~a}i]l r%e*m?o\v[e bit from my a|d)d:r{e:s]s.