From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Fran=E7ois_Fleuret?= Newsgroups: gmane.emacs.help Subject: Re: How to insert buffer name into buffer Date: Sun, 06 Nov 2005 17:43:26 +0100 Organization: EPFL Message-ID: <87ek5t20cx.fsf@fleuret.homeunix.org> References: <878xw1dbyf.fsf@bzg.ath.cx> <1131291946.986251.179650@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1131295582 24552 80.91.229.2 (6 Nov 2005 16:46:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2005 16:46:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 06 17:46:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYndu-00012m-Jb for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Nov 2005 17:45:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYndu-0003AE-47 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Nov 2005 11:45:18 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:zv9Lj/YIZJSkwNK0UZEnDQW7XzE= Original-NNTP-Posting-Host: 127.0.0.1 Original-X-Trace: epflnews.epfl.ch 1131295395 127.0.0.1 (6 Nov 2005 17:43:15 +0200) Original-Lines: 23 X-Authenticated-User: fleuret Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!epflnews.epfl.ch!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:135283 Original-To: help-gnu-emacs@gnu.org 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:30876 Archived-At: wrote on 06 Nov 2005 17:05:57 MET: > Well, you should be aware that (insert (buffer-name)) just might > insert something like "world_domination.c<3>", if you really are into > this world domination stuff. You're right. He was probably more looking for (insert (buffer-file-name)) ,------------------ | buffer-file-name is a built-in function. | (buffer-file-name &optional BUFFER) | | Return name of file BUFFER is visiting, or nil if none. | No argument or nil as argument means use the current buffer. `------------------ Cheers, -- François Fleuret http://cvlab.epfl.ch/~fleuret