help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Evaluating python code blocks in python-mode


From: Andreas Röhler
Subject: Re: Evaluating python code blocks in python-mode
Date: Sun, 21 Jun 2015 20:52:49 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Am 21.06.2015 um 18:35 schrieb Yuri D'Elia:
On 06/21/2015 06:18 PM, Yuri D'Elia wrote:
Yes, this is what I had in mind, however I was hoping there was a more
general established approach for this sort of thing. Since I'm also
using many other languages with an interpreter (ess-mode, tuareg to
mention two that I regularly use), I'd like a general approach.

For example, if we change py-section-start/end to use syntax-table, we
can define a general approach to defining code "chunks" using delimited
comments.

I was hoping there was already a global minor mode that does something
similar to delimit code chunks.
Maybe the best approach would simply be to reuse `folding-mode' per-mode
marks (as in: py-send-current-fold).




It might be an option to use existing markers from folding-mode. OTOH don't see a command there how to copy the section. Do you?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]