From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: insert name of current file Date: Wed, 26 Jan 2011 00:33:59 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295995557 26345 80.91.229.12 (25 Jan 2011 22:45:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Jan 2011 22:45:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 25 23:45:53 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Phre0-00036J-3a for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jan 2011 23:45:48 +0100 Original-Received: from localhost ([127.0.0.1]:44928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhrTD-0008Mo-Hh for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jan 2011 17:34:39 -0500 Original-Received: from [140.186.70.92] (port=35467 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhrSx-0008MW-4h for help-gnu-emacs@gnu.org; Tue, 25 Jan 2011 17:34:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhrSv-0002oT-1i for help-gnu-emacs@gnu.org; Tue, 25 Jan 2011 17:34:22 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhrSu-0002oA-Mt for help-gnu-emacs@gnu.org; Tue, 25 Jan 2011 17:34:21 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PhrSt-0006N2-7G for help-gnu-emacs@gnu.org; Tue, 25 Jan 2011 23:34:19 +0100 Original-Received: from 101-146-202-46.pool.ukrtel.net ([46.202.146.101]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jan 2011 23:34:19 +0100 Original-Received: from gavenkoa by 101-146-202-46.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jan 2011 23:34:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 101-146-202-46.pool.ukrtel.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78745 Archived-At: On 2011-01-25 23:59, Gradivus wrote: > > Hi, > > Sorry I'm a noob. > > I wonder if someone knows how I can insert the current file's name > (i.e., the name of the file I'm editing) at the cursor, and without the > full path. > If this task noes not repeatedly you can type: C-x C-f DOWN and select file name, press C-w to copy it and C-g to back to editing buffer where you can put file name by C-y. I also have stuck with this knowledge some years ago. -- Best regards!