unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* filename from buffer-name
@ 2004-10-12 21:38 Sarir Khamsi
  2004-10-12 21:46 ` Greg Hill
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sarir Khamsi @ 2004-10-12 21:38 UTC (permalink / raw)


I am trying to find the lisp function that will give me a filename,
and path, from a buffer name. Does anyone know what that function is?
Thanks.

Sarir

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: filename from buffer-name
  2004-10-12 21:38 filename from buffer-name Sarir Khamsi
@ 2004-10-12 21:46 ` Greg Hill
  2004-10-12 21:47 ` Jesper Harder
  2004-10-12 21:50 ` Drew Adams
  2 siblings, 0 replies; 5+ messages in thread
From: Greg Hill @ 2004-10-12 21:46 UTC (permalink / raw)


At 2:38 PM -0700 10/12/04, Sarir Khamsi wrote:
>I am trying to find the lisp function that will give me a filename,
>and path, from a buffer name. Does anyone know what that function is?

buffer-file-name

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: filename from buffer-name
  2004-10-12 21:38 filename from buffer-name Sarir Khamsi
  2004-10-12 21:46 ` Greg Hill
@ 2004-10-12 21:47 ` Jesper Harder
  2004-10-12 21:50 ` Drew Adams
  2 siblings, 0 replies; 5+ messages in thread
From: Jesper Harder @ 2004-10-12 21:47 UTC (permalink / raw)


Sarir Khamsi <sarir.khamsi@raytheon.com> writes:

> I am trying to find the lisp function that will give me a filename,
> and path, from a buffer name. Does anyone know what that function is?

,----[ C-h f buffer-file-name RET ]
| buffer-file-name is a built-in function in `C source code'.
| (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.
| 
`----

-- 
Jesper Harder                                <http://purl.org/harder/>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: filename from buffer-name
  2004-10-12 21:38 filename from buffer-name Sarir Khamsi
  2004-10-12 21:46 ` Greg Hill
  2004-10-12 21:47 ` Jesper Harder
@ 2004-10-12 21:50 ` Drew Adams
  2 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2004-10-12 21:50 UTC (permalink / raw)


buffer-file-name

Get in the habit of using `M-x apropos'.
In this case apropos buffer file and/or name.

--
I am trying to find the lisp function that will give me a filename,
and path, from a buffer name. Does anyone know what that function is?
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: filename from buffer-name
       [not found] <mailman.2843.1097618474.2017.help-gnu-emacs@gnu.org>
@ 2004-10-12 22:06 ` Sarir Khamsi
  0 siblings, 0 replies; 5+ messages in thread
From: Sarir Khamsi @ 2004-10-12 22:06 UTC (permalink / raw)


"Drew Adams" <drew.adams@oracle.com> writes:

> buffer-file-name

Thanks.

> Get in the habit of using `M-x apropos'.
> In this case apropos buffer file and/or name.

Point well taken. I did try to look in another reference, but apropos
seems to be the way to go.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-12 22:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-12 21:38 filename from buffer-name Sarir Khamsi
2004-10-12 21:46 ` Greg Hill
2004-10-12 21:47 ` Jesper Harder
2004-10-12 21:50 ` Drew Adams
     [not found] <mailman.2843.1097618474.2017.help-gnu-emacs@gnu.org>
2004-10-12 22:06 ` Sarir Khamsi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).