unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "B.V. Raghav" <bvraghav@iitk.ac.in>, help-gnu-emacs@gnu.org
Subject: RE: Icicles for filename insertion in buffer
Date: Thu, 28 Jan 2016 11:28:30 -0800 (PST)	[thread overview]
Message-ID: <eba568e1-9306-4057-bc59-7f0527767910@default> (raw)
In-Reply-To: <87zivp1pwl.fsf@ram.bvr.dp.lan>

> Many a times I feel the need to insert the filename into the buffer.
> Example:
> 1.  `(insert (file-name-nondirectory (buffer-file-name)))' when inserting
>     doxygen file comment in a file.
>     Though this need is fulfilled by substituting this code snippet for
>     evaluation in yasnippet. I have a few other uses
> 2.  `(insert-file-name-relative-include-directories)' --- when
>     completing a `# include' directive in a c/c++ programming.
> 3.  Taking notes, and referencing in org-mode.
>     This requirement is more than fulfilled by C-C C-l (org-insert-link)
> 
> Is there a way to use the value selected by icicle (variable name?) and
> then trim down prefix using the first match within the sequence of
> include directories and appended with values returned by split-string of
> $CPATH environment variable.

Sorry, but I don't understand your question.

Your #1, #2, and #3 do not seem to be about Icicles.  And I don't
know what function `insert-file-name-relative-include-directories' is.

Wrt the last paragraph, just what do you mean by the "value selected
by icicle"?  I also don't understand the rest of that paragraph (at all).

[I take it that you are not talking about insertion, into the minibuffer,
of a file name at point.  But if you are, just use `M-.' in the minibuffer.  
See http://www.emacswiki.org/emacs/Icicles_-_Inserting_Text_from_Cursor.]




  reply	other threads:[~2016-01-28 19:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28 19:10 Icicles for filename insertion in buffer B.V. Raghav
2016-01-28 19:28 ` Drew Adams [this message]
2016-01-28 19:49   ` B.V. Raghav
2016-01-28 21:52     ` Drew Adams
2016-01-29  7:37       ` B.V. Raghav

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=eba568e1-9306-4057-bc59-7f0527767910@default \
    --to=drew.adams@oracle.com \
    --cc=bvraghav@iitk.ac.in \
    --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).