help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to insert buffer name into buffer


From: François Fleuret
Subject: Re: How to insert buffer name into buffer
Date: Sun, 06 Nov 2005 17:43:26 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

<Harald Hanche-Olsen> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]