From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Icicles for filename insertion in buffer Date: Thu, 28 Jan 2016 11:28:30 -0800 (PST) Message-ID: References: <87zivp1pwl.fsf@ram.bvr.dp.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1454009353 19405 80.91.229.3 (28 Jan 2016 19:29:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2016 19:29:13 +0000 (UTC) To: "B.V. Raghav" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 28 20:29:01 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aOsFY-0003EO-DK for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2016 20:29:00 +0100 Original-Received: from localhost ([::1]:58265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOsFU-0006oe-9S for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2016 14:28:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOsFF-0006lE-7f for help-gnu-emacs@gnu.org; Thu, 28 Jan 2016 14:28:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOsFA-0002PQ-4J for help-gnu-emacs@gnu.org; Thu, 28 Jan 2016 14:28:41 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:28562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOsF9-0002O4-Tf for help-gnu-emacs@gnu.org; Thu, 28 Jan 2016 14:28:36 -0500 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0SJSXwd003400 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Jan 2016 19:28:33 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u0SJSWAn013150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 28 Jan 2016 19:28:33 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u0SJSW0d031981; Thu, 28 Jan 2016 19:28:32 GMT In-Reply-To: <87zivp1pwl.fsf@ram.bvr.dp.lan> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108899 Archived-At: > 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) >=20 > 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.= =20 See http://www.emacswiki.org/emacs/Icicles_-_Inserting_Text_from_Cursor.]