From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Temporary switching to another major mode Date: Thu, 02 Oct 2014 11:34:53 +0200 Message-ID: <87ppeaddc2.fsf@gmail.com> References: <87r3yrxzl5.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412242561 32288 80.91.229.3 (2 Oct 2014 09:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2014 09:36:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 11:35:51 2014 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 1XZcnZ-0008KQ-FA for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 11:35:45 +0200 Original-Received: from localhost ([::1]:32935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZcnZ-0006So-2Y for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 05:35:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZcn6-0006SH-UC for help-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:35:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZcn0-0004mr-TX for help-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:35:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZcn0-0004ml-Nj for help-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:35:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XZcn0-00082l-3j for help-gnu-emacs@gnu.org; Thu, 02 Oct 2014 11:35:10 +0200 Original-Received: from e178061072.adsl.alicedsl.de ([85.178.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2014 11:35:10 +0200 Original-Received: from tjolitz by e178061072.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2014 11:35:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178061072.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:Z31KIgDkLMXdX/NDeIuhujoHdRM= 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:100223 Archived-At: Marcin Borkowski writes: > Hi list, > > so I have this small fragment which really belongs to another major > mode. Maybe it's an Org-mode table embedded somewhere in a LaTeX file. > Maybe it's a LaTeX fragment in an email. I would like to edit it > (e.g. in an indirect buffer) in its "native" mode (Org-mode, AUCTeX > etc.), then hit e.g. C-c C-c and have the temporary buffer disappear, > and the modified fragment update in the "base" buffer. > > I am pretty sure there exist some tools for that. Am I right? 2 specialized tools are: - poporg: edit the docstring at point in Org (works in emacs-lisp-mode and maybe others?) - outorg: edit the subtree at point (or whole buffer) in Org (works in all major-modes, given original buffer is org-style-structured and has outshine activated) Then there is polymode and linked-buffers, recently discussed on the ESS mailing list. None of them seems to be a perfect fit for your needs though ... -- cheers, Thorsten