From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: fringe symbol for newline Date: Thu, 10 Jul 2008 14:40:58 -0400 Message-ID: <581AAD1F-E2A1-4280-9970-EFEC44D29D08@gmail.com> References: <617F8CA5-61C9-4B0A-92F9-6318ED00D794@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: multipart/signed; boundary=Apple-Mail-7--962626521; micalg=sha1; protocol="application/pkcs7-signature" X-Trace: ger.gmane.org 1215715334 3721 80.91.229.12 (10 Jul 2008 18:42:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2008 18:42:14 +0000 (UTC) Cc: Emacs-Devel devel To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 10 20:43:01 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 1KH16X-0005W3-HJ for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2008 20:42:58 +0200 Original-Received: from localhost ([127.0.0.1]:57815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH15f-0000NF-GE for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2008 14:42:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KH15b-0000Mq-7x for emacs-devel@gnu.org; Thu, 10 Jul 2008 14:41:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KH15Z-0000MB-Gr for emacs-devel@gnu.org; Thu, 10 Jul 2008 14:41:58 -0400 Original-Received: from [199.232.76.173] (port=40473 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH15Z-0000M6-Dg for emacs-devel@gnu.org; Thu, 10 Jul 2008 14:41:57 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.157]:9904) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KH15Z-00034A-5l for emacs-devel@gnu.org; Thu, 10 Jul 2008 14:41:57 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 9so1466966ywk.66 for ; Thu, 10 Jul 2008 11:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=f+M9jbrVjxUuruUOBtOygzNiPDx0KgvJVtWDSIhLrfY=; b=CUFsC6a83BSGF2/CCCwLFY+Z1JyVRLnexre1EPrlGAlRUGuaRideC7Y5PZzmM7Y3rL tR+/8JzDrcEmeNE1WbI+aCPeHxFOiSCseKGU3iUgUf7knV3mAnrAdPcNKDWvQTySnDj+ S9FXrje88XfIsAKdBFLj1HCqwM+CiCaSRUkWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=xp2Oz3mngoDnMP8lZLC9gY2+qVtdmz/gWMxM9WieGjAA+7jyrS8S9woNbzoaqmr6ns AMmGRtr3dtMkHPH8DhZeWrQ7rJBlMWdxrDuQ6ypyk9VCNyCwsYFSdDzP7Z+j9VAOzbDz axb9u4x0aZYHNMiwXvzd2emWAY0CrMexsKIyA= Original-Received: by 10.114.37.1 with SMTP id k1mr11797404wak.44.1215715291448; Thu, 10 Jul 2008 11:41:31 -0700 (PDT) Original-Received: from CMU-276608.WV.CC.CMU.EDU ( [128.237.234.204]) by mx.google.com with ESMTPS id 52sm352672hsf.7.2008.07.10.11.40.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jul 2008 11:41:30 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.926) 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:100541 Archived-At: --Apple-Mail-7--962626521 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable 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 =20 >> 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. =C2=B6, = =E2=86=B2, =20 > or > what-have-you) to be displayed before newlines, using the display-=20 > 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 =20= purposes). That said, below is some code that does this for me (put together from =20= code by Drew Adams and whitespace.el). It's not simple enough for your average user to do this, and since =20 it's a standard function in other editors, I would like to see this as =20= a simple-to-enable standard function in 23, possibly even with an =20 entry in the Options menu. (I couldn't make whitespace (in 22) do the =20= same.) Also, I'd still prefer this to be in the fringe. It's a lot less =20 intrusive. You need this sort of information only occasionally. (defface blank-newline '((((class color) (background dark)) (:foreground "lightgrey" :bold t)) (((class color) (background light)) ( :foreground "lightgrey" :bold t)) (t (:bold t :underline t))) "Face used to visualize NEWLINE char mapping. See `blank-display-mappings'." :group 'blank) ;; 2230 =3D \x8B6 (setq buffer-display-table (make-display-table)) (aset buffer-display-table 10 (vector 32 (make-glyph-code 2230 'blank-newline) 10))=20= --Apple-Mail-7--962626521 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAM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