From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Friis Vindum Newsgroups: gmane.emacs.devel Subject: Re: #17555 24.4.50; 'mark-paragraph' does not allow extending the region backwards Date: Thu, 12 May 2016 16:32:02 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=bcaec501c05a8d907f0532a605a7 X-Trace: ger.gmane.org 1463065262 9161 80.91.229.3 (12 May 2016 15:01:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 May 2016 15:01:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 12 17:00:52 2016 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 1b0s6Z-0005FH-DM for ged-emacs-devel@m.gmane.org; Thu, 12 May 2016 17:00:47 +0200 Original-Received: from localhost ([::1]:58087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0s6Y-0007pK-PE for ged-emacs-devel@m.gmane.org; Thu, 12 May 2016 11:00:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0rjl-0006Kl-8B for emacs-devel@gnu.org; Thu, 12 May 2016 10:37:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0rjh-0004GD-0A for emacs-devel@gnu.org; Thu, 12 May 2016 10:37:12 -0400 Original-Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:46930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0rjg-0004Fn-Pn for emacs-devel@gnu.org; Thu, 12 May 2016 10:37:08 -0400 Original-Received: from mfilter45-d.gandi.net (mfilter45-d.gandi.net [217.70.178.176]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 711B5FB886 for ; Thu, 12 May 2016 16:32:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter45-d.gandi.net Original-Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter45-d.gandi.net (mfilter45-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id YSqs7j5gk_8U for ; Thu, 12 May 2016 16:32:04 +0200 (CEST) X-Originating-IP: 209.85.213.169 Original-Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) (Authenticated sender: simon@vindum.io) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id CA348FB887 for ; Thu, 12 May 2016 16:32:03 +0200 (CEST) Original-Received: by mail-ig0-f169.google.com with SMTP id lr7so55979726igb.1 for ; Thu, 12 May 2016 07:32:03 -0700 (PDT) X-Gm-Message-State: AOPr4FUB+DK0L3/fTpx1sL0JIpi0tSW/SxX6/qqKdgEmI+PFK1/PumiiZEGCDSkSBVBlK9jIXZav0SL7WJVxgw== X-Received: by 10.50.205.42 with SMTP id ld10mr27092596igc.17.1463063522635; Thu, 12 May 2016 07:32:02 -0700 (PDT) Original-Received: by 10.36.53.138 with HTTP; Thu, 12 May 2016 07:32:02 -0700 (PDT) X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4b98:c:538::198 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:203801 Archived-At: --bcaec501c05a8d907f0532a605a7 Content-Type: text/plain; charset=UTF-8 This small patch fixes the bug #17555. This increases the consistency of `mark-paragraph` with `mark-word` and `mark-sexp`. Currently "C-- M-h M-h" will end up selecting nothing since repeating `mark-paragraph` always expands forwards even if `mark-paragraph` was initially invoked with a negative prefix argument. This is my first patch to Emacs. I have not signed the papers assigning copyright to FSF. I would like to do so but I cannot figure out how to. Kind regards Simon Friis Vindum --bcaec501c05a8d907f0532a605a7 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Mark-paragraph-will-extend-backwards-Bug-17555.patch" Content-Disposition: attachment; filename="0001-Mark-paragraph-will-extend-backwards-Bug-17555.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_io4dz3fn0 RnJvbSA2ZjU3YzQ0ODUwYTMzMGI3ZTNlYWNkOTFlMmRmMjhiNzFjYWZmYjM2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBwYWxkZXBpbmQgPHNpbW9uZnZAZ21haWwuY29tPgpEYXRlOiBU aHUsIDEyIE1heSAyMDE2IDE2OjA4OjA5ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gTWFyayBwYXJh Z3JhcGggd2lsbCBleHRlbmQgYmFja3dhcmRzIChCdWcjMTc1NTUpCgotLS0KIGxpc3AvdGV4dG1v ZGVzL3BhcmFncmFwaHMuZWwgfCAxMSArKysrKystLS0tLQogMSBmaWxlIGNoYW5nZWQsIDYgaW5z ZXJ0aW9ucygrKSwgNSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9saXNwL3RleHRtb2Rlcy9w YXJhZ3JhcGhzLmVsIGIvbGlzcC90ZXh0bW9kZXMvcGFyYWdyYXBocy5lbAppbmRleCBiNzUyM2Nh Li5jYzE3OTQxIDEwMDY0NAotLS0gYS9saXNwL3RleHRtb2Rlcy9wYXJhZ3JhcGhzLmVsCisrKyBi L2xpc3AvdGV4dG1vZGVzL3BhcmFncmFwaHMuZWwKQEAgLTM4MiwyMiArMzgyLDIzIEBAIGF0IGJl Z2lubmluZyBvZiB0aGlzIG9yIGEgcHJldmlvdXMgcGFyYWdyYXBoLgog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