From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: emacs C question Date: 25 Sep 2003 20:07:44 +0100 Organization: freedom2surf Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87llsdob0x.fsf@thalassa.informatimago.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064517403 25202 80.91.224.253 (25 Sep 2003 19:16:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 19:16:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 21:16:41 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 1A2bbU-0007to-00 for ; Thu, 25 Sep 2003 21:16:41 +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 1A2bak-0005tO-Cr for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2003 15:15:54 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!skynet.be!skynet.be!freenix!usenet-fr.net!mephistopheles.news.clara.net!news.clara.net!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 195.137.103.251 Original-X-Trace: news.freedom2surf.net 1064516880 28873 195.137.103.251 (25 Sep 2003 19:08:00 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Thu, 25 Sep 2003 19:08:00 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:116871 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:12797 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12797 John Russell writes: > Pascal Bourguignon writes: > > > 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 > > Because I'm trying to implement drag and drop for gtk emacs. It would be better to make drag and drop generate an event, which can then be bound to any lisp function the user wants (that accepts a filename). The Windows implementation works like this (although there is a special function that it is bound to, so maybe it could do with some work to generalize it).