From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#21748: 25.0.50; [PATCH] ; Docstring fixes for beginning- and end-of-buffer Date: Sun, 25 Oct 2015 01:17:12 +1300 Message-ID: <562B76C8.6030405@orcon.net.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030703070702000604000504" X-Trace: ger.gmane.org 1445689108 22269 80.91.229.3 (24 Oct 2015 12:18:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2015 12:18:28 +0000 (UTC) To: 21748@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 24 14:18:16 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Zpxm1-0002RK-8N for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Oct 2015 14:18:13 +0200 Original-Received: from localhost ([::1]:44186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpxm0-0002Qm-MF for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Oct 2015 08:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpxlv-0002Qe-HF for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpxlq-0002tY-HA for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpxlq-0002tB-DX for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zpxlq-0005mw-0I for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Oct 2015 12:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21748 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144568906822229 (code B ref -1); Sat, 24 Oct 2015 12:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2015 12:17:48 +0000 Original-Received: from localhost ([127.0.0.1]:35637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zpxlb-0005mT-El for submit@debbugs.gnu.org; Sat, 24 Oct 2015 08:17:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39737) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpxlG-0005m2-QO for submit@debbugs.gnu.org; Sat, 24 Oct 2015 08:17:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpxlF-0002mt-Qy for submit@debbugs.gnu.org; Sat, 24 Oct 2015 08:17:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpxlF-0002mo-Of for submit@debbugs.gnu.org; Sat, 24 Oct 2015 08:17:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpxlE-0002QB-Rd for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:17:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpxl9-0002lJ-Sv for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:17:24 -0400 Original-Received: from [219.88.242.59] (port=40507 helo=mail.orcon.net.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpxl9-0002kp-Dd for bug-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:17:19 -0400 Original-Received: from [10.1.1.2] (202-150-107-94.bng1.avl.orcon.net.nz [202.150.107.94] (may be forged)) (authenticated bits=0) by mail.orcon.net.nz (8.14.3/8.14.3/Debian-9.4) with ESMTP id t9OCHC5N015467 for ; Sun, 25 Oct 2015 01:17:13 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 X-Bayes-Prob: 0.5 (Score 0: No Bayes scoring rules defined, tokens from: outbound) X-CanIt-Geo: ip=202.150.107.94; country=NZ; latitude=-41; longitude=174.0000; http://maps.google.com/maps?q=-41,174.0000&z=6 X-CanItPRO-Stream: base:outbound X-Canit-Stats-ID: 02Px0hdG3 - 2742183eebad - 20151025 X-Scanned-By: CanIt (www . roaringpenguin . com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107981 Archived-At: This is a multi-part message in MIME format. --------------030703070702000604000504 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit --------------030703070702000604000504 Content-Type: text/x-patch; name="0001-Docstring-fixes-for-beginning-and-end-of-buffer.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Docstring-fixes-for-beginning-and-end-of-buffer.patch" >From 3a842ea6c610bdeca10d992222e26efa30a17260 Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Sun, 25 Oct 2015 00:56:10 +1300 Subject: [PATCH] ; Docstring fixes for beginning- and end-of-buffer * lisp/simple.el (beginning-of-buffer, end-of-buffer): Clarify conditions under which the mark will be pushed at the previous position. The docstrings previously stated that this is conditional on whether Transient Mark mode is enabled, when the code actually uses (region-active-p) which is true only if Transient Mark mode is enabled AND the mark is active. --- lisp/simple.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 8acb683..51dae23 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -895,8 +895,8 @@ beginning-of-buffer If the buffer is narrowed, this command uses the beginning of the accessible part of the buffer. -If Transient Mark mode is disabled, leave mark at previous -position, unless a \\[universal-argument] prefix is supplied." +Push mark at previous position, unless either a \\[universal-argument] prefix +is supplied, or Transient Mark mode is enabled and the mark is active." (declare (interactive-only "use `(goto-char (point-min))' instead.")) (interactive "^P") (or (consp arg) @@ -919,8 +919,8 @@ end-of-buffer If the buffer is narrowed, this command uses the end of the accessible part of the buffer. -If Transient Mark mode is disabled, leave mark at previous -position, unless a \\[universal-argument] prefix is supplied." +Push mark at previous position, unless either a \\[universal-argument] prefix +is supplied, or Transient Mark mode is enabled and the mark is active." (declare (interactive-only "use `(goto-char (point-max))' instead.")) (interactive "^P") (or (consp arg) (region-active-p) (push-mark)) -- 2.1.4 --------------030703070702000604000504--