From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.help Subject: Re: Evaluating python code blocks in python-mode Date: Sun, 21 Jun 2015 18:35:47 +0200 Message-ID: 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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1434904580 5523 80.91.229.3 (21 Jun 2015 16:36:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2015 16:36:20 +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 18:36:13 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 1Z6iE7-0006rP-1X for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 18:36:11 +0200 Original-Received: from localhost ([::1]:36777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6iE6-0004BN-9t for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 12:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6iDu-0004B7-5v for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 12:35:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6iDq-0004vP-MK for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 12:35:58 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6iDq-0004v1-F2 for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 12:35:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z6iDo-0006hw-VX for help-gnu-emacs@gnu.org; Sun, 21 Jun 2015 18:35:53 +0200 Original-Received: from 193.106.183.18 ([193.106.183.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Jun 2015 18:35:52 +0200 Original-Received: from wavexx by 193.106.183.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Jun 2015 18:35:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 In-Reply-To: <5586E3BE.8080502@thregr.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:105062 Archived-At: 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).