From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How does Emacs find the buffer for a file? Date: Sun, 16 Jun 2002 08:50:46 +0300 (IDT) Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1024206859 15754 127.0.0.1 (16 Jun 2002 05:54:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2002 05:54:19 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17JSzT-00045z-00 for ; Sun, 16 Jun 2002 07:54:19 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17JTP5-0001Hq-00 for ; Sun, 16 Jun 2002 08:20:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17JSzJ-0002ZB-00; Sun, 16 Jun 2002 01:54:09 -0400 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17JSy2-0002Y0-00 for ; Sun, 16 Jun 2002 01:52:50 -0400 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA26847; Sun, 16 Jun 2002 08:50:46 +0300 (IDT) X-Sender: eliz@is Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE In-Reply-To: Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4904 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4904 On Sat, 15 Jun 2002 Kai.Grossjohann@CS.Uni-Dortmund.DE wrote: > When you do C-x C-f /some/file RET, then Emacs runs > insert-file-contents and puts the output in some buffer. How does > Emacs determine the buffer from the filename? See buffer.c:Fget_file_buffer. It is called by find-file-noselect, a subroutine of find-file.