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: Patch for delete-indentation in simple.el Date: Thu, 22 Aug 2013 17:03:46 -0400 Message-ID: References: <1377161959.10061.YahooMailBasic@web163401.mail.gq1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377205444 12080 80.91.229.3 (22 Aug 2013 21:04:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2013 21:04:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Gian Fontanilla Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 22 23:04:06 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VCc33-000355-47 for ged-emacs-devel@m.gmane.org; Thu, 22 Aug 2013 23:04:05 +0200 Original-Received: from localhost ([::1]:33834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCc32-000193-O8 for ged-emacs-devel@m.gmane.org; Thu, 22 Aug 2013 17:04:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCc2t-00016t-DT for emacs-devel@gnu.org; Thu, 22 Aug 2013 17:04:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCc2m-0006mz-3a for emacs-devel@gnu.org; Thu, 22 Aug 2013 17:03:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:22410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCc2l-0006mp-V6 for emacs-devel@gnu.org; Thu, 22 Aug 2013 17:03:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="23018220" Original-Received: from 206-248-179-83.dsl.teksavvy.com (HELO pastel.home) ([206.248.179.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Aug 2013 17:03:40 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B351B6627C; Thu, 22 Aug 2013 17:03:46 -0400 (EDT) In-Reply-To: <1377161959.10061.YahooMailBasic@web163401.mail.gq1.yahoo.com> (Gian Fontanilla's message of "Thu, 22 Aug 2013 01:59:19 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162984 Archived-At: > I'm sending this improvement for delete-indentation in simple.el. Please see > attached files Description, ChangeLog, and Patch. IIUC your suggestion is to make delete-indentation work on the region if active. That doesn't sound bad. Of course, another name for it is unfill-region, which has also been requested. Could you provide a patch which does that (but please use `use-region-p' and make the test from within the `interactive' spec rather than inside the function itself)? Stefan PS: Just include your own ChangeLog comment rather than the whole ChangeLog file.