Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 2
    Asking for the "best" way to do something is generally either too broad or primarily opinion-based. Consider asking for another way to do it from the way you're using, and state what you think is wrong, inefficient, or inadequate with the way you're currently doing it. Commented Feb 23, 2018 at 16:44
  • 2
    If you are concerned with the overhead of having to create a new process every time you call emacsclient, maybe creating a simple TCP socket in on Emacs side which will simply evaluate the code you send it will be more efficient. Commented Feb 24, 2018 at 8:41
  • Please explain if your question is about Emacs per se, or about Python. If there's a running Emacs instance, it's not clear that there's much to say about how to access it that isn't about the calling program, which is Python-based in this case. Commented Feb 24, 2018 at 16:46
  • Thanks for the warning. I edited the question and removed these words. Commented Feb 26, 2018 at 2:39
  • 1
    @nealmcb I posted an answer with an example. Check if it works for you Commented Feb 7, 2019 at 11:55