From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: emacs C question Date: 25 Sep 2003 04:30:06 +0200 Organization: informatimago.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llsdob0x.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064457262 6260 80.91.224.253 (25 Sep 2003 02:34:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 02:34:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 04:34:20 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2LxU-0000IH-01 for ; Thu, 25 Sep 2003 04:34:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2Lve-0007Tp-27 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Sep 2003 22:32:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!thalassa.informatimago.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: thalassa.informatimago.com (195.114.85.198) Original-X-Trace: news.uni-berlin.de 1064457007 6143578 195.114.85.198 (16 [41911]) User-Agent: Gnus/5.09 (Gnus v5.9.0) 21.3.50.pjb1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:116852 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12778 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12778 John Russell writes: > I'm not sure if this is the right group for this. I am picking > around the emacs C source. How can I make emacs open a file from the > internal C code. e.g. write a function in emacs/src/buffer.c that opens a > specific file. Any ideas? Thanks > > John Why would anyone want to do that? You can much more easily open a file with (find-file path). There are a lot of initialization (lisp) files where to put such a command. Otherwise, obviously, you could call Ffind_file from C. -- __Pascal_Bourguignon__ http://www.informatimago.com/ Do not adjust your mind, there is a fault in reality.