1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-14 11:42:29 -08:00

Avoid having `C-x h' mark the prompt part of the minibuffer

* lisp/simple.el (mark-whole-buffer): Don't mark the prompt
part of the minibuffer (bug#2589).
This commit is contained in:
Lars Ingebrigtsen 2016-04-27 19:52:46 +02:00
parent e1f2d14ae1
commit aeb613ea95
2 changed files with 7 additions and 1 deletions

View file

@ -56,6 +56,10 @@ affected by this, as SGI stopped supporting IRIX in December 2013.
* Changes in Emacs 25.2
---
** `C-x h' (`mark-whole-buffer') will now avoid marking the prompt
part of minibuffers.
---
** `find-library' now takes a prefix argument to pop to a different
window.

View file

@ -1075,7 +1075,9 @@ that uses or sets the mark."
(interactive)
(push-mark (point))
(push-mark (point-max) nil t)
(goto-char (point-min)))
;; This is really `point-min' in most cases, but if we're in the
;; minibuffer, this is at the end of the prompt.
(goto-char (minibuffer-prompt-end)))
;; Counting lines, one way or another.