From: Kevin Ryde <user42@zip.com.au>
To: bug-gnu-emacs@gnu.org
Subject: bug#3447: suggest minibuffer M-< go to start of text
Date: Tue, 02 Jun 2009 09:42:43 +1000 [thread overview]
Message-ID: <873aajttak.fsf@blah.blah> (raw)
In the minibuffer it'd be good if M-<, currently `beginning-of-buffer',
went to the start of the editable text rather than the start of the
prompt. The start of editable text would match what C-a
`move-beginning-of-line' now does.
Dunno if it'd be best to have a function recognising "field" stuff, or
just a different keybinding in the minibuffer. I've been using the
couple of lines below. It's good when you've got a multiple lines in
the minibuffer.
(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)
In GNU Emacs 22.3.1 (i486-pc-linux-gnu, GTK+ Version 2.14.7)
of 2009-03-31 on raven, modified by Debian
configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.3/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.3/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_AU
locale-coding-system: iso-8859-1
default-enable-multibyte-characters: t
next reply other threads:[~2009-06-01 23:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-01 23:42 Kevin Ryde [this message]
2019-09-30 8:23 ` bug#3447: suggest minibuffer M-< go to start of text Lars Ingebrigtsen
2019-09-30 8:53 ` Eli Zaretskii
2019-10-01 11:58 ` Lars Ingebrigtsen
2019-10-01 12:28 ` Eli Zaretskii
2019-10-01 13:02 ` Lars Ingebrigtsen
2019-10-01 13:24 ` Eli Zaretskii
2019-11-12 22:04 ` Juri Linkov
2019-11-13 3:25 ` Lars Ingebrigtsen
2019-11-13 21:16 ` Juri Linkov
2019-11-14 13:44 ` Eli Zaretskii
2019-11-15 7:47 ` Lars Ingebrigtsen
2019-11-15 8:43 ` Eli Zaretskii
2019-11-23 12:51 ` Lars Ingebrigtsen
2019-11-16 20:15 ` Juri Linkov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873aajttak.fsf@blah.blah \
--to=user42@zip.com.au \
--cc=3447@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).