From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Schneckenreither Subject: Bug: Feature Request: Specifying a 'master file' in included files [9.0.1 (9.0.1-elpa @ /home/schnecki/.emacs.d/elpa/org-20161118/)] Date: Mon, 12 Dec 2016 15:09:12 +0100 Message-ID: <874m29w86v.fsf@uibk.ac.at> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGRIA-0005z0-EA for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 09:09:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGRI5-0006H9-Nl for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 09:09:21 -0500 Received: from lmr1.uibk.ac.at ([138.232.1.142]:40308 helo=smtp.uibk.ac.at) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGRI5-0006Dp-Bq for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 09:09:17 -0500 Received: from schnecki-laptop ([179.43.134.202]) (authenticated bits=0) by smtp.uibk.ac.at (8.14.4/8.14.4/F1) with ESMTP id uBCE9CCW017753 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 12 Dec 2016 15:09:12 +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" To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Hi, I have a feature request. It would be awesome if there was a master file setup similar to auctex such that whenever an export is started while residing in an included file the export is automatically called from the master buffer (main file with headers and all includes). This would generate the desired exported document (html,LaTeX,...). Currently, something similar may be done using the publishing, but this only works for HTML exports. I'm thinking of something like following at the top of the included file: # Set master in file introduction.org #+MASTER_FILE: main.org # possibly even with relative path, like ../main.org With this it would be possible to safely switch to the main.org buffer (or even open the file it if not opened) and then call the export from there. What do you think? Manuel P.S.: I'm not really familiar with the org code, nor with elisp. So I can't estimate the workload for this feature. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of 2016-09-18 Package: Org mode version 9.0.1 (9.0.1-elpa @ /home/schnecki/.emacs.d/elpa/org-20161118/)