Subject: bug#3447: suggest minibuffer M-< go to start of text

From: Eli Zaretskii <[email-masked]>
Date: Mon, 30 Sep 2019 11:53:40 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Date: Mon, 30 Sep 2019 10:23:42 +0200
> Cc: [email-masked]
> 
> > (defun my-minibuffer-beginning-of-buffer ()
> >   (interactive)
> >   (or (and (fboundp 'region-active-p) ;; new in emacs23
> >            (region-active-p))
> >       (push-mark))
> >   (if (<= (point) (minibuffer-prompt-end))
> >       (goto-char (point-min))
> >     (goto-char (minibuffer-prompt-end))))
> > (define-key minibuffer-local-map "\M-<" 'my-minibuffer-beginning-of-buffer)
> 
> I think something like this would be a very good idea.  I frequently
> have long, multiline expressions in the minibuffer, and `M-<' not taking
> me to the start of the editable data is annoying.
> 
> Does anybody object to making a change like this?

As an opt-in behavior, please.  We can make it the default later, if
there's enough demand.