From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bturnip Newsgroups: gmane.emacs.help Subject: How to insert buffer name into buffer Date: Sun, 06 Nov 2005 09:40:08 -0600 Message-ID: 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 1131291347 13755 80.91.229.2 (6 Nov 2005 15:35:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2005 15:35:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 06 16:35:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYmY8-0008VD-T2 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Nov 2005 16:35:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYmY8-0001BG-Bq for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Nov 2005 10:35:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 06 Nov 2005 09:34:28 -0600 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 68.51.48.98 Original-X-Trace: sv3-AnH0OZ900OtWaVjJO4f+eLHTNUQMPIhWkwJEbuq8/RCjsOCLmv4toTjDxhVm8Vgq+w/UTfSstbzmSUo!yFv71DFqYu5fVSMcrNw6bBzdl2ZBclKZMBDKw8Lj44pDeX+YvoU9Bzj2Ng1Hinc2KEUBmJ9lwlaW!TBNtKongmaL+b5u95V5M Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:135278 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:30871 Archived-At: I am writing a little function that fills out some of my code documentation for me. What I want to do is take the buffer name and insert it into the comment block. So if I open a new buffer called world_domination.c and then call my function, the result looks something like this: /* * * * * * * * * * * * * * * * * * * * * * File name: world_domination.c * Author: bturnip * File date: 11/11/2011 . . . etc