all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B.V. Raghav" <bvraghav@iitk.ac.in>
To: help-gnu-emacs@gnu.org
Subject: Icicles for filename insertion in buffer
Date: Fri, 29 Jan 2016 00:40:18 +0530	[thread overview]
Message-ID: <87zivp1pwl.fsf@ram.bvr.dp.lan> (raw)

Hi,

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.

This should boost the confidence of a novice programmer like me.

Thanks,
r
-- 
(B.V. Raghav)




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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zivp1pwl.fsf@ram.bvr.dp.lan \
    --to=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.
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.