From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34796: [PATCH] * lisp/simple.el (delete-indentation): Join lines in a region Date: Fri, 15 Mar 2019 10:13:59 +0200 Message-ID: <837ed01rnc.fsf@gnu.org> References: <20190309175634.23262-1-stlman@poczta.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211329"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34796@debbugs.gnu.org To: =?UTF-8?Q?=C5=81ukasz?= Stelmach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 15 09:15:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4hzi-000stZ-JA for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Mar 2019 09:15:10 +0100 Original-Received: from localhost ([127.0.0.1]:51596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4hzh-0006ar-Fv for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Mar 2019 04:15:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4hzb-0006aR-KI for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 04:15:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4hza-0006ak-Hf for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 04:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4hza-0006aU-9R for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 04:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h4hzZ-0001Vd-Ux for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 04:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Mar 2019 08:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 34796-submit@debbugs.gnu.org id=B34796.15526376655742 (code B ref 34796); Fri, 15 Mar 2019 08:15:01 +0000 Original-Received: (at 34796) by debbugs.gnu.org; 15 Mar 2019 08:14:25 +0000 Original-Received: from localhost ([127.0.0.1]:44355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4hyz-0001UY-2B for submit@debbugs.gnu.org; Fri, 15 Mar 2019 04:14:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4hyx-0001UL-K4 for 34796@debbugs.gnu.org; Fri, 15 Mar 2019 04:14:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4hys-0006CW-2c; Fri, 15 Mar 2019 04:14:18 -0400 Original-Received: from [176.228.60.248] (port=2445 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h4hyr-0001Zj-3K; Fri, 15 Mar 2019 04:14:17 -0400 In-reply-to: <20190309175634.23262-1-stlman@poczta.fm> (message from =?UTF-8?Q?=C5=81ukasz?= Stelmach on Sat, 9 Mar 2019 18:56:34 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156376 Archived-At: > From: Łukasz Stelmach > Date: Sat, 9 Mar 2019 18:56:34 +0100 > Cc: Łukasz Stelmach > > If a region is active, join all the lines it spans. Thanks. Please provide a ChangeLog-style commit log message for your proposed changes, and also accompany them with suitable changes to NEWS and the user manual. > -(defun delete-indentation (&optional arg) > +(defun delete-indentation (&optional arg beg end) > "Join this line to previous and fix up whitespace at join. > -If there is a fill prefix, delete it from the beginning of this line. > -With argument, join this line to following line." > - (interactive "*P") > +If there is a fill prefix, delete it from the beginning of this > +line. With argument, join this line to following line. With a > +region active, join lines in the region. If both argument and > +region are set, the region is ignored." Please leave 2 spaces between sentences in the doc string. With those issues taken care of, I think this feature can be installed.