all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: emacs C question
Date: Thu, 25 Sep 2003 18:35:00 GMT	[thread overview]
Message-ID: <jwvpthog1nk.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca> (raw)
In-Reply-To: m3y8wdxc8k.fsf@cisco.com

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

Cool.  Please send your patch to emacs-devel@gnu.org so people can give you
feedback (as you might have noticed, there is a fair bit of convention in
the C code, and since you're not familiar with it, you probably missed some
of it).

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

Rather than hard-code `find-file', you should make it customizable
in elisp.  Maybe it's worthwhile to look at how drag&drop is handled in the
W32 part of the code.  The two should hopefully provide a similar
functionality to elisp so that the rest of the code can be the same for
all OSes.


        Stefan

  reply	other threads:[~2003-09-25 18:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-24 19:00 emacs C question John Russell
2003-09-25  2:30 ` Pascal Bourguignon
2003-09-25 12:51   ` John Russell
2003-09-25 18:35     ` Stefan Monnier [this message]
2003-09-25 18:37     ` Stefan Monnier
2003-09-25 20:41       ` John Russell
2003-09-25 21:19         ` Jason Rumney
2003-09-25 21:36         ` Stefan Monnier
2003-09-25 19:07     ` Jason Rumney
2003-09-25 20:42       ` John Russell
2003-09-25 21:16         ` Jason Rumney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvpthog1nk.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.