From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Patch to change just-one-space Date: Fri, 14 Aug 2009 02:19:38 +0300 Organization: JURTA Message-ID: <87ljlns61x.fsf@mail.jurta.org> References: <7b501d5c0908131337g300e8895i465719007e29074c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250207341 14355 80.91.229.12 (13 Aug 2009 23:49:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 23:49:01 +0000 (UTC) Cc: Emacs-Devel devel To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 14 01:48:54 2009 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 1Mbk2P-0005zf-Nc for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 01:48:54 +0200 Original-Received: from localhost ([127.0.0.1]:46035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbk2P-00006F-4L for ged-emacs-devel@m.gmane.org; Thu, 13 Aug 2009 19:48:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mbk19-0007iI-IL for emacs-devel@gnu.org; Thu, 13 Aug 2009 19:47:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mbk14-0007gU-KD for emacs-devel@gnu.org; Thu, 13 Aug 2009 19:47:35 -0400 Original-Received: from [199.232.76.173] (port=59989 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbk14-0007gL-FL for emacs-devel@gnu.org; Thu, 13 Aug 2009 19:47:30 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:50999 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mbk13-0002Vc-Ck for emacs-devel@gnu.org; Thu, 13 Aug 2009 19:47:29 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.55.163.cable.starman.ee [82.131.55.163]) by mx1.starman.ee (Postfix) with ESMTP id A18C43F43EC; Fri, 14 Aug 2009 02:30:30 +0300 (EEST) In-Reply-To: <7b501d5c0908131337g300e8895i465719007e29074c@mail.gmail.com> (Deniz Dogan's message of "Thu, 13 Aug 2009 22:37:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114209 Archived-At: > I have long wanted to change the behavior of just-one-space to not > only delete spaces and tab characters, but newline characters as well. > Attached is the patch for this change. > > I don't think that this is such a controversial modification and I > believe very few user macros will break. If I'm wrong, let me know! No, it's a controversial change. Just imagine typing M-SPC at the end of the paragraph. It will join the current paragraph with the next paragraph. IOW, it will work as two commands `just-one-space' and `delete-blank-lines' combined. I don't think users will appreciate such change. Also we can't guarantee that some code won't break with your change. For instance, try doing the same in the command `delete-horizontal-space' (i.e. adding \n to `skip-chars-...') and see how it breaks paragraph-filling commands. The same bad effect is possible for `just-one-space'. However, your proposed change could be useful when its additional functionality is requested intentionally, e.g. with a prefix key: `C-u M-SPC'. -- Juri Linkov http://www.jurta.org/emacs/