From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#25374: 25.1.91; bug Date: Sun, 28 Aug 2011 00:51:56 +0800 (5 years, 18 weeks, 6 days ago) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483687530 20256 195.159.176.226 (6 Jan 2017 07:25:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2017 07:25:30 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.91 (darwin) To: 25374@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 06 08:25:25 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPOto-00031v-5e for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jan 2017 08:25:16 +0100 Original-Received: from localhost ([::1]:51020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPOtm-0000gN-Kk for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jan 2017 02:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPOtf-0000ee-GF for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPOtb-0007aF-E3 for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:25:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPOtb-0007Zg-B5 for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cPOtb-0006n2-3V for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:25:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jan 2017 07:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25374 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148368745326020 (code B ref -1); Fri, 06 Jan 2017 07:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jan 2017 07:24:13 +0000 Original-Received: from localhost ([127.0.0.1]:44384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPOsn-0006lX-7T for submit@debbugs.gnu.org; Fri, 06 Jan 2017 02:24:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPOsl-0006lC-W3 for submit@debbugs.gnu.org; Fri, 06 Jan 2017 02:24:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPOsf-0006qt-Os for submit@debbugs.gnu.org; Fri, 06 Jan 2017 02:24:06 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPOsf-0006qp-Lg for submit@debbugs.gnu.org; Fri, 06 Jan 2017 02:24:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPOse-0000cp-9v for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:24:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPOsZ-0006ol-BM for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:24:04 -0500 Original-Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]:36568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPOsZ-0006lC-4d for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 02:23:59 -0500 Original-Received: by mail-pg0-x22e.google.com with SMTP id f188so249236530pgc.3 for ; Thu, 05 Jan 2017 23:23:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mail-followup-to :mime-version; bh=V35yzSTh0Rm7BHLxlQpVCw7TCTANJIw0IeI/4uILoog=; b=lehwhN64qdFbujnQVl6fPprePydsTsrcLNJnGXuvvJJCIvu/4aPDALMK5R8G7sfWbF Q8OM3xghaApwJG9/WcFi9ft6kfKFyyNUmcgVxGGUUB2daWe59NgkKi/iB0D9isc83hLn XMkr1mQ1qE9M6bIPG+idHN+7mYTM5sYsSXKOyACXAsOGx7uuiEJg2R/l1pywI53IY6wj h6+DzfqSnaP3ZsSSAvmJn0oHbfO7SXgWXlZIqdK+tt0rBMsXS8oxLHGrP7qH/j4oCE4j yMJ313iruWJn9/dfU/n2tJVyKbsHmrk6nFAI/F5yHBz3ZbVfOpiM+KVDWBoMtzgVjmbR 9/zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mail-followup-to:mime-version; bh=V35yzSTh0Rm7BHLxlQpVCw7TCTANJIw0IeI/4uILoog=; b=k/PwNYE4a8yQ2ew+UE/zGMhsM8F3K52s5Ow3O2MGgqP/gDx6VNwy0mN7eLe5d6znko b7sOKkPqU7Xd7uO8hsGyAgCMQlcpJsUZvP7pKeVEMJao/rCXGOWnTXuqudvVp1gygQcr ePbmZaAr9AymzYrCqBCqXmzZYSLpnJuzZSf4JrWvNLN52b1nUylQp85v4ccNkdMGi1pa mBorYNiZoSQTjcQ+ExEsdE9jPxaJhelmKqyYEyUaL7il6LfrM7o46hfIBG4zvP+RcZ1r EGCTOrg0Pe6atJxr1K5HDCS3dwHK8wvYGaLhBKffyLC4pWY3vyisxUZG8fpkY/ZlyvNK WT0g== X-Gm-Message-State: AIkVDXJxtl1NML0jnxlw7ib0H8CUnMPmghb3D6o6siV0JlwYBSMjiZcUyWOG24WZUtu24g== X-Received: by 10.99.99.68 with SMTP id x65mr2090832pgb.126.1483687433821; Thu, 05 Jan 2017 23:23:53 -0800 (PST) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id s65sm159436055pgb.25.2017.01.05.23.23.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jan 2017 23:23:52 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 0D15E6CE1D4; Thu, 5 Jan 2017 23:24:10 -0800 (PST) Mail-Followup-To: bug-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:127817 Archived-At: From: Le Wang It doesn't look right to me that auto region selection is not accessible interactively. The interactive "r" form is quite broken, so you may want to fix it in other interactive forms as well. Unless there is a good reason you left it this way? diff -u -b -B c\:/emacs/emacs-23.3/lisp/align.el c\:/Users/Le/cygwin_home/tmp/align_region_patch.el --- c:/emacs/emacs-23.3/lisp/align.el 2011-01-08 12:45:14.000000000 +0800 +++ c:/Users/Le/cygwin_home/tmp/align_region_patch.el 2011-08-28 00:39:51.336490900 +0800 @@ -857,11 +857,11 @@ ;;;###autoload (defun align (beg end &optional separate rules exclude-rules) "Attempt to align a region based on a set of alignment rules. -BEG and END mark the region. If BEG and END are specifically set to -nil (this can only be done programmatically), the beginning and end of -the current alignment section will be calculated based on the location -of point, and the value of `align-region-separate' (or possibly each -rule's `separate' attribute). +BEG and END mark the region. If no region is active, the +beginning and end of the current alignment section will be +calculated based on the location of point, and the value of +`align-region-separate' (or possibly each rule's `separate' +attribute). If SEPARATE is non-nil, it overrides the value of `align-region-separate' for all rules, except those that have their @@ -871,7 +871,9 @@ default rule lists defined in `align-rules-list' and `align-exclude-rules-list'. See `align-rules-list' for more details on the format of these lists." - (interactive "r") + (interactive (if (use-region-p) + (list (region-beginning) (region-end)) + (list nil nil))) (let ((separator (or separate (if (and (symbolp align-region-separate) -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2