all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Sainty <psainty@orcon.net.nz>
To: 21748@debbugs.gnu.org
Subject: bug#21748: 25.0.50; [PATCH] ; Docstring fixes for beginning- and end-of-buffer
Date: Sun, 25 Oct 2015 01:17:12 +1300	[thread overview]
Message-ID: <562B76C8.6030405@orcon.net.nz> (raw)

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: 0001-Docstring-fixes-for-beginning-and-end-of-buffer.patch --]
[-- Type: text/x-patch, Size: 1871 bytes --]

From 3a842ea6c610bdeca10d992222e26efa30a17260 Mon Sep 17 00:00:00 2001
From: Phil Sainty <psainty@orcon.net.nz>
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


             reply	other threads:[~2015-10-24 12:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-24 12:17 Phil Sainty [this message]
2015-10-30 10:07 ` bug#21748: 25.0.50; [PATCH] ; Docstring fixes for beginning- and end-of-buffer Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=562B76C8.6030405@orcon.net.nz \
    --to=psainty@orcon.net.nz \
    --cc=21748@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.