From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: How does Emacs find the buffer for a file? Date: Sun, 16 Jun 2002 15:50:57 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1024235563 10274 127.0.0.1 (16 Jun 2002 13:52:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2002 13:52:43 +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 17JaSR-0002fb-00 for ; Sun, 16 Jun 2002 15:52:43 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17JasD-0003Sm-00 for ; Sun, 16 Jun 2002 16:19:21 +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 17JaQx-00053w-00; Sun, 16 Jun 2002 09:51:11 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17JaQk-00052x-00 for ; Sun, 16 Jun 2002 09:50:58 -0400 Original-Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 4523514599; Sun, 16 Jun 2002 15:50:58 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE X-Yow: Yow! Those people look exactly like Donnie and Marie Osmond!! In-Reply-To: (Eli Zaretskii's message of "Sun, 16 Jun 2002 08:50:46 +0300 (IDT)") Original-Lines: 21 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) 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:4905 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4905 Eli Zaretskii writes: |> 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. See also create-file-buffer, also called by find-file-noselect, for creating a new, unique buffer. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."