all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: pymacs
Date: Mon, 10 Jun 2013 21:37:43 +0800	[thread overview]
Message-ID: <87hah6rsrc.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CABX3oxbUtNQnF-WjBnr8fPmEG4r5jXdZAUVWCjxkejVYm++Mdw@mail.gmail.com

daniel <idnael@gmail.com> writes:

> To put it more simple, the problem is when a python function returns a
> elisp symbol back to elisp:
>
> def teste():
>     symb = lisp.simbolo
>     OR symb = lisp["simbolo"]
>     OR symb = lisp("'simbolo")
>     #str(symb) gives " 'simbolo "
>     return symb
>
> When the function is invoked from elisp it doesn't return the symbol.
>
> I need this for a python program that creates an emacs menu. And the menu
> structure need to have these symbols that are the functions to be called
> when an menu item is selected.

Ah, can't help you there, I've never done anything fancy with pymacs.
What happens when you call `pymacs-eval' on the return value from the
python function?




  reply	other threads:[~2013-06-10 13:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09 19:35 pymacs daniel
2013-06-09 22:19 ` pymacs andrea crotti
2013-06-09 22:37   ` pymacs daniel
2013-06-10  3:13     ` pymacs Eric Abrahamsen
2013-06-10 10:54       ` pymacs daniel
2013-06-10 13:12         ` pymacs daniel
2013-06-10 13:37           ` Eric Abrahamsen [this message]
2013-06-10 17:50             ` pymacs daniel
2013-06-10 18:03               ` pymacs Andreas Röhler
2013-06-10 22:43                 ` pymacs Kyle Machulis
2013-06-16 20:38                   ` pymacs daniel
2013-06-10  5:20 ` pymacs Andreas Röhler

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=87hah6rsrc.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.