From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: how to tell what's in the fringe? (lazy fringe) Date: Sat, 20 Jun 2009 07:24:53 +0900 Message-ID: <87k5377tfu.fsf@catnip.gol.com> References: <23168F61416544D98791D6E70AFF9027@us.oracle.com> <24502D4C681544F69A534239B49197DF@us.oracle.com> <87vdms6j65.fsf@catnip.gol.com> <06F801F51A2B4CE4B56C23E2936D1C80@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245450325 14129 80.91.229.12 (19 Jun 2009 22:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2009 22:25:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 20 00:25:22 2009 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 1MHmWQ-0003kA-6e for ged-emacs-devel@m.gmane.org; Sat, 20 Jun 2009 00:25:22 +0200 Original-Received: from localhost ([127.0.0.1]:37406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHmWP-00014U-Eu for ged-emacs-devel@m.gmane.org; Fri, 19 Jun 2009 18:25:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHmWK-00014D-5q for emacs-devel@gnu.org; Fri, 19 Jun 2009 18:25:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHmWF-000114-Is for emacs-devel@gnu.org; Fri, 19 Jun 2009 18:25:15 -0400 Original-Received: from [199.232.76.173] (port=56262 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHmWF-000110-FG for emacs-devel@gnu.org; Fri, 19 Jun 2009 18:25:11 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:35670 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHmWE-0001Sw-VD for emacs-devel@gnu.org; Fri, 19 Jun 2009 18:25:11 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MHmWB-0002Jz-Ep for emacs-devel@gnu.org; Fri, 19 Jun 2009 22:25:07 +0000 Original-Received: from 218.231.109.116.eo.eaccess.ne.jp ([218.231.109.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jun 2009 22:25:07 +0000 Original-Received: from miles by 218.231.109.116.eo.eaccess.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jun 2009 22:25:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.231.109.116.eo.eaccess.ne.jp System-Type: x86_64-unknown-linux-gnu Cancel-Lock: sha1:aQ5Cbshf8qfSINL7RUcD+5NAUMw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:111601 Archived-At: "Drew Adams" writes: >> I don't have any pre-20 emacs > > Pre-21. Emacs 20 uses $ for line truncation, not fringe. Right. >> here to confirm, but my recollection is that the old behavior was to >> actually reserve the final column on the line for the line >> truncation/wrapping indicator -- i.e., there _was_ a kind of fringe >> before, but only on the right side. > > No. The indicator, $, simply takes the place of the \ that is used > normally for wrapped lines. With or without truncation, without fringe > the window right edge is right up against the last displayed character > of the line (which might be a newline). When a line is truncated, one > less character is displayed - it is replaced by $. That is no different than current emacs with only a right fringe: In emacs <21 (again, IIRC), the last column always contained either "$", "\", or " " (representing a newline); you could not have lines with 80 "content" (non-newline) characters. So you basically got 79 generally usable columns, if your window was 80 columns wide. In current emacs, you get precisely the same results if you set the fringe style to `right-only', though the terminology has changed a bit: The last "column" (the fringe) contains either a fringe indicator or nothing, _but_ current emacs also allows the " " representing a newline to displayed in the fringe. So again, you get 79 generally usable columns if your window is 80 columns wide. Thus, despite the new concepts, the amount of usable space is the same, when you use only the right fringe. [many thanks to Kim for implementing the newline/cursor-in-the-fringe feature BTW] -miles -- Rational, adj. Devoid of all delusions save those of observation, experience and reflection.