From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: fringe symbol for newline Date: Thu, 10 Jul 2008 19:37:03 -0300 Message-ID: <48768F0F.6090604@ig.com.br> References: <617F8CA5-61C9-4B0A-92F9-6318ED00D794@gmail.com> <581AAD1F-E2A1-4280-9970-EFEC44D29D08@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1215729349 19933 80.91.229.12 (10 Jul 2008 22:35:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2008 22:35:49 +0000 (UTC) Cc: Emacs-Devel devel , Miles Bader To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 11 00:36:34 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 1KH4kc-00011k-5e for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2008 00:36:34 +0200 Original-Received: from localhost ([127.0.0.1]:53887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH4jk-0001FR-9F for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2008 18:35:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KH4jg-0001F8-Df for emacs-devel@gnu.org; Thu, 10 Jul 2008 18:35:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KH4je-0001ES-HF for emacs-devel@gnu.org; Thu, 10 Jul 2008 18:35:35 -0400 Original-Received: from [199.232.76.173] (port=52281 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH4je-0001EP-B5 for emacs-devel@gnu.org; Thu, 10 Jul 2008 18:35:34 -0400 Original-Received: from wr-out-0506.google.com ([64.233.184.239]:26851) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KH4je-0004KG-2F for emacs-devel@gnu.org; Thu, 10 Jul 2008 18:35:34 -0400 Original-Received: by wr-out-0506.google.com with SMTP id c30so2652399wra.14 for ; Thu, 10 Jul 2008 15:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding:sender; bh=2GJwMNZl5UMST3pbcexu4DT8HyNme6mC6vO6tKtexJc=; b=P5sGRhZxTTLALuscNdqOJXLL27XJ+d1sUcbKa4uGxROegvz6HDalOYgPD8wbzp82dH kUMiDvBngMe3Bo2s6QCnRnadiXv99EW0I0od1bnXbF1y9IBFahArDTYzASguFQzUUKGM Ohvt3ZvxoTi44whShqms7P0U523zpao2VnI1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :sender; b=q1hTqmwcd11ItrJrHg9m6GjT52esVQDKLH6GzxEhtV4t3Ai2WHyQTl3N1/rhGfNqsH hU7uCfgqx6QIkfJletW5IDRPHVaLT4zG8BGI1EME45A40NLP7g1Ya3FZPrPlWIH3Pwj1 ghK6qejjSv4OZDo3ZUzNYdlEib4AuXuFfbkuE= Original-Received: by 10.90.92.14 with SMTP id p14mr10579178agb.28.1215729333229; Thu, 10 Jul 2008 15:35:33 -0700 (PDT) Original-Received: from ?192.168.0.100? ( [201.82.36.2]) by mx.google.com with ESMTPS id a68sm552032rnc.18.2008.07.10.15.35.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jul 2008 15:35:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.15) Gecko/20080620 SeaMonkey/1.1.10 In-Reply-To: <581AAD1F-E2A1-4280-9970-EFEC44D29D08@gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:100555 Archived-At: David Reitter wrote: > On 9 Jul 2008, at 23:06, Miles Bader wrote: > >> David Reitter writes: >>> Now that we have improved wrapping to support DTWW, it would be nice if >>> the fringe could mark visual lines that end with a newline. >> >> Note that you can rather easily cause a special symbol (e.g. ¶, ↲, or >> what-have-you) to be displayed before newlines, using the display-table. >> >> That seems to be what most other apps do anyway (rather than putting >> something "in the fringe")? > > Right, and they also don't have fringes (at least not used for similar > purposes). Hmmmm, ok, how do the symbols look in the fringe? That is, I was thinking something like: | LF RF | COMMENT | | This is a short line. | a short line (short symbol) | | an empty line (no symbol) | + This is a very very ver < | starts a very long line (begin symbol) | > y long line that finish < | middle of a very long line (middle symbol) | - s here. | ends a very long line (end symbol) Where, RF means Right Fringe and LF means Left Fringe. But it seems that David's suggestion is: | LF RF | COMMENT | This is a short line. | a short line | | | an empty line (paragraph symbol) | This is a very very ver < | starts a very long line | > y long line that finish < | middle of a very long line | s here. | ends a very long line > That said, below is some code that does this for me (put together from > code by Drew Adams and whitespace.el). > It's not simple enough for your average user to do this, and since > it's a standard function in other editors, I would like to see this as > a simple-to-enable standard function in 23, possibly even with an > entry in the Options menu. (I couldn't make whitespace (in 22) do the > same.) Well, to use whitespace package in Emacs 21 and/or 22, please, download it from the EmacsWiki: http://www.emacswiki.org/cgi-bin/emacs/download/whitespace.el This version is prepared to run in Emacs 21, 22 and 23. > Also, I'd still prefer this to be in the fringe. It's a lot less > intrusive. You need this sort of information only occasionally. Well, indeed it's less intrusive.