From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Longlines mode in menu Date: Fri, 20 Jun 2008 21:53:11 +0200 Message-ID: <485C0AA7.2010302@gmail.com> References: <87wsl41lq0.fsf@stupidchicken.com> <87bq2666dd.fsf@stupidchicken.com> <516DD869-4D41-4EDD-B2A3-57787DF374D7@gmail.com> <4858B5B4.2070604@gmail.com> <66259172-038D-4367-BEAC-211FE9981637@gmail.com> <48593500.1030003@gmail.com> <48597529.1000400@gmail.com> <485BFBE7.30304@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213991636 6421 80.91.229.12 (20 Jun 2008 19:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 19:53:56 +0000 (UTC) Cc: David Reitter , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 20 21:54:40 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 1K9mgq-0007cZ-2l for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 21:54:32 +0200 Original-Received: from localhost ([127.0.0.1]:53110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9mg1-0003Ut-Bg for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 15:53:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9mfl-0003PF-NX for emacs-devel@gnu.org; Fri, 20 Jun 2008 15:53:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9mfk-0003O9-23 for emacs-devel@gnu.org; Fri, 20 Jun 2008 15:53:25 -0400 Original-Received: from [199.232.76.173] (port=55363 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9mfj-0003O1-To for emacs-devel@gnu.org; Fri, 20 Jun 2008 15:53:23 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:33565) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K9mfj-0006c1-8h for emacs-devel@gnu.org; Fri, 20 Jun 2008 15:53:23 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:59993 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1K9mff-0005wM-6t; Fri, 20 Jun 2008 21:53:19 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080620-0, 2008-06-20), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1K9mff-0005wM-6t. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1K9mff-0005wM-6t 92b165fe2273f23657b6b667f6fc1602 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:99553 Archived-At: Stefan Monnier wrote: >>>>>> Thanks. What key bindings do you suggest? Maybe this could be >>>>>> a minor mode? >>> It should be either a global minor mode which adds `remap' bindings to >>> the global map, or a buffer-local minor mode which adds the same remap >>> bindings but via a minor-mode map. >> Maybe something like this? I think it is essential to be able to use the >> original move and kill commands too. > > Why do you find it essential? If there are very long lines it is easier to use the original commands. Also, I think sometimes you have the logic of buffer lines in your head. > What about something like > > (define-key map [remap forward-paragraph] 'forward-line) That hides forward-paragraph. I guess you are thinking of the situation with a buffer consisting of only very long lines, but I think this is not the only situation when you want the original forward-line/next-line.