Commit 52e01189 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(get_truename_buffer): New function.

parent 2f2228c0
......@@ -236,6 +236,24 @@ See also `find-buffer-visiting'.")
return Qnil;
get_truename_buffer (filename)
register Lisp_Object filename;
register Lisp_Object tail, buf, tem;
for (tail = Vbuffer_alist; CONSP (tail); tail = XCONS (tail)->cdr)
buf = Fcdr (XCONS (tail)->car);
if (!BUFFERP (buf)) continue;
if (!STRINGP (XBUFFER (buf)->file_truename)) continue;
tem = Fstring_equal (XBUFFER (buf)->file_truename, filename);
if (!NILP (tem))
return buf;
return Qnil;
/* Incremented for each buffer created, to assign the buffer number. */
int buffer_count;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment