From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: line-line-move-visual: was line motion problem Date: Fri, 18 Jul 2008 11:21:55 -0400 Message-ID: References: <18557.63556.231489.523637@gargle.gargle.HOWL> <5F62534C-D5CE-4364-8F73-E1AE0D61B4E2@gmail.com> <87abghlqs2.fsf@stupidchicken.com> <87hcap3ct7.fsf@stupidchicken.com> <87mykg84aj.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216394576 13380 80.91.229.12 (18 Jul 2008 15:22:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2008 15:22:56 +0000 (UTC) Cc: Chong Yidong , raman@users.sourceforge.net, emacs-devel@gnu.org, Miles Bader To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 18 17:23:43 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 1KJro6-0002Xc-3O for ged-emacs-devel@m.gmane.org; Fri, 18 Jul 2008 17:23:42 +0200 Original-Received: from localhost ([127.0.0.1]:50640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJrnC-0006YG-Oc for ged-emacs-devel@m.gmane.org; Fri, 18 Jul 2008 11:22:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJrmc-0006G2-EZ for emacs-devel@gnu.org; Fri, 18 Jul 2008 11:22:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJrma-0006Es-Pw for emacs-devel@gnu.org; Fri, 18 Jul 2008 11:22:10 -0400 Original-Received: from [199.232.76.173] (port=45589 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJrma-0006Ek-Li for emacs-devel@gnu.org; Fri, 18 Jul 2008 11:22:08 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:5922 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJrmV-0007wy-Mc; Fri, 18 Jul 2008 11:22:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAG9SgEjO+IfC/2dsb2JhbACBWq1SgXE X-IronPort-AV: E=Sophos;i="4.31,210,1215403200"; d="scan'208";a="24505650" Original-Received: from 206-248-135-194.dsl.teksavvy.com (HELO pastel.home) ([206.248.135.194]) by ironport2-out.teksavvy.com with ESMTP; 18 Jul 2008 11:21:55 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 2545B4C05D; Fri, 18 Jul 2008 11:21:55 -0400 (EDT) In-Reply-To: (David Reitter's message of "Fri, 18 Jul 2008 10:24:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:100943 Archived-At: >> I don't know how many people actually want them in visual-line-mode >> (I'd like a fringe item at a hard newline, but until this is >> implemented the next best thing is a display-table element for \n). > We could leave the continuation glyphs, but make them less conspicuous. For a mode that expects most lines to be wrapped, I see not point in leaving continuation marks. > To mark hard newlines, try the code below. I suggest to include this. > ;; 2230 = \x8B6 > (defvar show-newlines-newline-code (vector (make-glyph-code 2230 > blank-newline) 10)) [ Too long a line, huh? ] My font doesn't seem to know the char 2230, and UnicodeData.txt doesn't seem to know that char either. So we should probably use something else. > (if show-newlines-mode > (aset buffer-display-table 10 show-newlines-newline-code) > (aset buffer-display-table 10 nil))) Better write it as: (aset buffer-display-table 10 (if show-newlines-mode show-newlines-newline-code)) -- Stefan