From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Edit whole session with org-edit-src-edit Date: Tue, 10 Oct 2017 09:25:51 +0200 Message-ID: <87bmlffoqo.fsf@nicolasgoaziou.fr> References: <87vajpl00m.fsf@urkud.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1ovO-0000Cx-6d for emacs-orgmode@gnu.org; Tue, 10 Oct 2017 03:25:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1ovK-0007Lk-8P for emacs-orgmode@gnu.org; Tue, 10 Oct 2017 03:25:58 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:51807) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e1ovK-0007LU-2S for emacs-orgmode@gnu.org; Tue, 10 Oct 2017 03:25:54 -0400 In-Reply-To: <87vajpl00m.fsf@urkud.name> (Yury G. Kudryashov's message of "Sun, 08 Oct 2017 18:58:49 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Yury G. Kudryashov" Cc: emacs-orgmode@gnu.org Hello, "Yury G. Kudryashov" writes: > I propose the following feature: > > 1. When the temporary buffer is created, > > - the whole session (or all the code with that will go to one file > when tangling) is written to the buffer; > - all the code except for the current block is marked as read-only. > > 2. When writing the temporary buffer back to the main file, drop the > read-only regions. This is an interesting idea. However that could slow down src block editing so it would need to be explicitly required by the user (e.g., with an optional argument). Also, it should be necessary to mark somehow the read-only parts or it could be confusing. Maybe with some glyph in the margin. > Unfortunately, I'm new to (e)lisp, so I'm not sure whether I'll manage > to implement these features myself. You can only know if you try. You will find help on this mailing list whenever you hit a road block. Regards, -- Nicolas Goaziou