help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs C question


From: John Russell
Subject: Re: emacs C question
Date: 25 Sep 2003 08:51:23 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Pascal Bourguignon <spam@thalassa.informatimago.com> writes:

> John Russell <jorussel@cisco.com> 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?
> 

Because I'm trying to implement drag and drop for gtk emacs.  I have
gotten the dragging and dropping to work, but now I have to put some
meat in the function that gets called.  I'm new to emacs' inner
workings and am a little lost.  

> 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.
> 

Excellent, I'll check it out.

John


reply via email to

[Prev in Thread] Current Thread [Next in Thread]