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: line-line-move-visual: was line motion problem Date: Tue, 22 Jul 2008 02:31:44 +0900 Message-ID: <87prp7i1of.fsf@catnip.gol.com> 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> <200807181530.m6IFUHVp029662@sallyv1.ics.uci.edu> <06ED973A-F762-4586-9913-37B3622C8644@gmail.com> <87prp78bv4.fsf@stupidchicken.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216662756 29846 80.91.229.12 (21 Jul 2008 17:52:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 17:52:36 +0000 (UTC) Cc: David Reitter , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 21 19:53:23 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 1KKzZR-00034L-IZ for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 19:53:14 +0200 Original-Received: from localhost ([127.0.0.1]:45866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKzYX-0006zh-JF for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 13:52:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKzXg-0006T4-Hp for emacs-devel@gnu.org; Mon, 21 Jul 2008 13:51:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKzXc-0006SP-Oa for emacs-devel@gnu.org; Mon, 21 Jul 2008 13:51:23 -0400 Original-Received: from [199.232.76.173] (port=37890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKzXc-0006SK-KJ for emacs-devel@gnu.org; Mon, 21 Jul 2008 13:51:20 -0400 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:36622) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KKzEj-0000be-Ff; Mon, 21 Jul 2008 13:31:49 -0400 Original-Received: from 218.33.237.219.eo.eaccess.ne.jp ([218.33.237.219] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1KKzEf-0006WS-Ng; Tue, 22 Jul 2008 02:31:45 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id DB79D2F3A; Tue, 22 Jul 2008 02:31:44 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87prp78bv4.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 21 Jul 2008 12:01:51 -0400") Original-Lines: 24 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:101103 Archived-At: Chong Yidong writes: >> + (defvar show-newlines-newline-code >> + (vector (make-glyph-code 182 'blank-newline) 10)) > > Add a brief docstring for this. The name `show-newlines-newline-code' seems bizarre though... "code"? Also having to append the actual newline oneself seems a bit annoying. How about just: (1) Call it something like "show-newlines-marker", and let it be a string. The default value would be only one character long, but there seems no reason to limit users. (2) When turning on the mode, map the make-glyph over `show-newlines-marker', append the actual newline, and turn it into a vector. -Miles --=20 =E8=87=AA=E3=82=89=E3=82=92=E7=A9=BA=E3=81=AB=E3=81=97=E3=81=A6=E3=80=81=E5= =BF=83=E3=82=92=E9=96=8B=E3=81=8F=E6=99=82=E3=80=81=E9=81=93=E3=81=AF=E9=96= =8B=E3=81=8B=E3=82=8C=E3=82=8B