From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Open all #+INCLUDED:d files? Date: Fri, 12 Dec 2014 12:19:16 +0100 Message-ID: <874mt1yv2j.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzOG6-0002fo-Ty for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 06:19:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzOG0-0006cO-MV for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 06:19:42 -0500 Received: from plane.gmane.org ([80.91.229.3]:55883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzOG0-0006c1-GL for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 06:19:36 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XzOFw-0001s1-UR for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 12:19:32 +0100 Received: from 5.63.151.36 ([5.63.151.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2014 12:19:32 +0100 Received: from rasmus by 5.63.151.36 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2014 12:19:32 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Rainer M Krug writes: > Is there an easy way of opening all INCLUDEd files in an org document, > i.e. a single command or an easy way of doing it via some elisp code? Oh, sorry, I didn't see the "all". But yeah, it should be easy with org-element-map. Map over all keywords, ensure they are INCLUDE keywords, move point to their :begin and call org-edit-special or similar. You could use save-excursion, save-window-excursion to make it not suck. You'd might have to widen first, then you could use save-restriction. Hope it helps, Ramsus -- May the Force be with you