all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Joe Riel <joer@san.rr.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: RE: grep-at-point
Date: Wed, 11 Jan 2017 15:42:19 -0800 (PST)	[thread overview]
Message-ID: <095e9c72-201e-4309-9c07-a6b1fbbb5561@default> (raw)
In-Reply-To: <20170111132923.3e18d91f@gauss>

> > Doesn't `M-x grep RET M-n' give you what you want?  If point
> > is on a Lisp symbol then `M-n' yanks it as the default value.
> 
> It does.  I wasn't aware that grep set a special history list.
> Nice.

It's not a history list.  `M-n' for minibuffer input (with or
without completion) yanks a default value provided by the
command (e.g. `grep') - or several default values, one by one,
if repeated.

It is only if you use `M-n' after you have used `M-p' (which
goes backward in the history list) that `M-n' goes forward
in the history list (and then into the defaults list, when
the history is exhausted in the forward direction).

Think of the list of default values as being prepended to the
history list, and of the starting position being the "origin"
point between the two lists.  If you use `M-p' from the origin
you go backward, into the history.  If you use `M-n' you go
forward, into the list of defaults.



      parent reply	other threads:[~2017-01-11 23:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-11 17:48 grep-at-point Joe Riel
2017-01-11 19:21 ` grep-at-point Aleksandar Simic
2017-01-11 19:55   ` grep-at-point Kaushal Modi
2017-01-11 19:42 ` grep-at-point Eli Zaretskii
2017-01-11 20:20   ` grep-at-point Kaushal Modi
2017-01-11 20:23     ` grep-at-point Eli Zaretskii
2017-01-11 21:09       ` grep-at-point Kaushal Modi
2017-01-11 21:32         ` grep-at-point Kaushal Modi
2017-01-11 21:45       ` grep-at-point Marcin Borkowski
2017-01-11 19:56 ` grep-at-point Eric Abrahamsen
2017-01-11 20:15 ` grep-at-point John Mastro
2017-01-11 20:46 ` grep-at-point Thien-Thi Nguyen
2017-01-11 21:01 ` grep-at-point Drew Adams
2017-01-11 21:29   ` grep-at-point Joe Riel
2017-01-11 22:15     ` xref-find-references in elisp (Was: Re: grep-at-point) Kaushal Modi
2017-01-11 23:14       ` Dmitry Gutov
2017-01-11 23:24         ` Kaushal Modi
2017-01-11 23:37           ` Dmitry Gutov
2017-01-11 23:42             ` Kaushal Modi
2017-01-11 23:42     ` Drew Adams [this message]

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=095e9c72-201e-4309-9c07-a6b1fbbb5561@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joer@san.rr.com \
    /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.