From: John Russell <jorussel@cisco.com>
Subject: Re: emacs C question
Date: 25 Sep 2003 16:41:02 -0400 [thread overview]
Message-ID: <m3ad8svbxd.fsf@cisco.com> (raw)
In-Reply-To: jwvk77wg1hw.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> >> Otherwise, obviously, you could call Ffind_file from C.
>
> There's no such function because it's defined in elisp, not in C.
> But you can do
>
> call1 (intern ("find-file-other-window"), file);
>
>
> -- Stefan
Ok, this is my first time in the emacs C code and I'm relatively new
to C so please be patient.
1) Why does this function cause emacs to immediately close with
Fatal error (6).Aborted
2) While developing, how can I make emacs be more helpful with its
dying breath.
This is a handler for gtk drag and drop so the args aren't important
yet. Just the three lines in it cause the crash ( i think).
static void
jjr_drag_data_received_handler (GtkWidget *widget, GdkDragContext *context,
gint x, gint y, GtkSelectionData *selection_data,
guint info, guint time)
{
Lisp_Object filename;
filename = build_string ("~/.bashrc");
Fswitch_to_buffer(filename,Qnil);
}
Thanks for the help
John
next prev parent reply other threads:[~2003-09-25 20:41 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
2003-09-25 18:37 ` Stefan Monnier
2003-09-25 20:41 ` John Russell [this message]
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=m3ad8svbxd.fsf@cisco.com \
--to=jorussel@cisco.com \
/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.