From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: [RFC] trim.el -- Functions to delete extra whitespace Date: Sun, 17 Feb 2008 08:30:51 -0800 Message-ID: <200802171630.m1HGUqed027238@sallyv1.ics.uci.edu> References: <200802121436.m1CEa4db015770@sallyv1.ics.uci.edu> <47B65D8B.2060308@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203265905 14808 80.91.229.12 (17 Feb 2008 16:31:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2008 16:31:45 +0000 (UTC) Cc: xemacs@seanm.ca, jari.aalto@cante.net, emacs-devel@gnu.org To: Vinicius Jose Latorre Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 17:32:08 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 1JQmQo-0002Dd-9n for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 17:31:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQmQJ-0002Kr-O8 for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 11:31:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQmQG-0002Km-Gi for emacs-devel@gnu.org; Sun, 17 Feb 2008 11:31:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQmQF-0002KS-Un for emacs-devel@gnu.org; Sun, 17 Feb 2008 11:31:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQmQF-0002KP-QJ for emacs-devel@gnu.org; Sun, 17 Feb 2008 11:31:23 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JQmQF-0003AJ-9I for emacs-devel@gnu.org; Sun, 17 Feb 2008 11:31:23 -0500 X-ICS-MailScanner-Watermark: 1203870653.35622@TFTM8qaY3P6mSR9g832ohQ Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m1HGUqed027238; Sun, 17 Feb 2008 08:30:52 -0800 (PST) In-Reply-To: <47B65D8B.2060308@ig.com.br> (Vinicius Jose Latorre's message of "Sat, 16 Feb 2008 00:50:35 -0300") Original-Lines: 22 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:89361 Archived-At: Vinicius Jose Latorre writes: > > > I'd lke to suggest adding trim.el to the distribution. It provides > > > handy functions to fix buffer's/region's whitespace problems. > > > > Does it provide anything that emacs/lisp/whitespace.el in CVS HEAD does > > not provide? If yes, then can the code be integrated in whitespace.el? > > It's not desirable for users to have to learn about 2 different packages > > to get very closely related functionality. > > > > > Yes, there are some functionalities that whitespace.el doesn't have, > that is, trim-defines (well, is this function useful?) IMHO it is not. What is the point of this function? > and untrim-lines. The name of this function is confusing, and what it does is to add ^M at the end of each line in the region. Not useful.