From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Evaluating python code blocks in python-mode Date: Sun, 21 Jun 2015 20:52:49 +0200 Message-ID: <55870801.8050200@easy-emacs.de> References: <5585BA55.8090205@easy-emacs.de> <558657BE.5090207@easy-emacs.de> <5586E3BE.8080502@thregr.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1434912805 29392 80.91.229.3 (21 Jun 2015 18:53:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2015 18:53:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 21 20:53:10 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z6kMe-0000JV-7P for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 20:53:08 +0200 Original-Received: from localhost ([::1]:37065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6kMd-0006p0-PM for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 14:53:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6kMT-0006oj-6Z for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 14:52:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6kMN-0006GY-LQ for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 14:52:57 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]:51050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6kMN-0006GJ-BI for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 14:52:51 -0400 Original-Received: from [192.168.178.31] ([77.12.85.204]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LjrPF-1YZbXH1Nwf-00bq7B for ; Sun, 21 Jun 2015 20:52:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-Provags-ID: V03:K0:KHv6v0TfWoF0tSpUG0kJ4B+JLhdqbR+XkiB9rbeuWMIU2SPr/D4 qLZHLM+jXTwitGpLxQwFJ+v5Rtu6jFvZxF9vxw0u2au7a0rXXdzqIqa9UkLP5hkJJp7pbt0 LdNtZNYJISVciSe6BRTlEEYQqIzGEHNkReqzXg8p7CQFIqwF/8BAdk6LWafgbN3U7+G6m73 DJ2WgKygqS2uwnq8sgMFw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.24 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105067 Archived-At: 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?