unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nick Sandow <njsand@internode.on.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org, 'The Badger' <badgy@example.com>
Subject: Re: Insert word at point in minibuffer
Date: Mon, 18 Aug 2008 17:20:02 -0700	[thread overview]
Message-ID: <48AA11B2.8090507@internode.on.net> (raw)
In-Reply-To: <009901c8ff6b$687fab00$0200a8c0@us.oracle.com>

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

Drew Adams wrote:
>> yank into the minibuffer the word at point.
>>
>> Really, what I want to know is, can this be done "out of the 
>> box" in Emacs?
>>     
>
>
> 1. I don't believe that Emacs has anything that lets you do this out of the box.
>
> There have been discussions in emacs-devel@gnu.org about providing such a
> facility - see, for instance,
> http://lists.gnu.org/archive/html/emacs-devel/2006-02/msg01074.html. But nothing
> has come of it so far, AFAIK.
>
>
> 2. Sometimes commands provide some text at or near the cursor as the default
> value, which can be inserted in the minibuffer using `M-n'.
>
> The OP mentioned `query-replace', for instance. The versions of commands such as
> `query-replace' provided by library `replace+.el' do this - see
> http://www.emacswiki.org/cgi-bin/wiki/ReplacePlus. Library ffap.el does this for
> file names and URLs at point - see
> http://www.emacswiki.org/cgi-bin/wiki/FindFileAtPoint.
>
>
> 3. The code you sent generalizes this idea, letting you insert some text at
> point into the minibuffer at any time.
>
> Icicles does this too, but you can also repeat the key (`M-.') to retrieve and
> insert additional bits of text (e.g. words, filenames, etc.) successively, or
> you can repeat it to retrieve alternative kinds of thing (words, filenames,
> etc.) at point. See
> http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Inserting_Text_from_Cursor.
>
>
>   
Thanks for some useful links.  I will definitely check out replace+.el 
and icicles.  Icicles in particular seems to offer a lot of 
functionality and thus may take some time to digest.

Will any of this stuff end up in Emacs itself?  It seems to me some 
things - such as M-x query-replace suggesting a default where currently 
it does not - are just plain good ideas.

cheers


[-- Attachment #2: Type: text/html, Size: 2669 bytes --]

  reply	other threads:[~2008-08-19  0:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 22:47 Insert word at point in minibuffer The Badger
2008-08-16 18:31 ` Nick Sandow
2008-08-16  6:43   ` Drew Adams
2008-08-19  0:20     ` Nick Sandow [this message]
2008-08-18  8:02       ` Drew Adams
     [not found] <mailman.16858.1218833586.18990.help-gnu-emacs@gnu.org>
2008-08-16  1:48 ` Chat
2008-08-18 23:37   ` The Badger

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=48AA11B2.8090507@internode.on.net \
    --to=njsand@internode.on.net \
    --cc=badgy@example.com \
    --cc=drew.adams@oracle.com \
    --cc=help-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.
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).