From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Zawada Subject: Re: Enhancement: Changing default setting of source block header line switches [9.0.5 (9.0.5-elpa @ /home/naehring/.emacs.d/elpa/org-20170210/)] Date: Thu, 6 Jul 2017 09:33:16 +0200 (CEST) Message-ID: <60629260.59456.1499326396572@email.1und1.de> References: <87mv8idrff.fsf@smtp.1und1.de> <87o9sy9hdc.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT1Hw-0002cX-GN for emacs-orgmode@gnu.org; Thu, 06 Jul 2017 03:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dT1Hs-0001SN-FN for emacs-orgmode@gnu.org; Thu, 06 Jul 2017 03:33:24 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:61122) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dT1Hs-0001Rn-3p for emacs-orgmode@gnu.org; Thu, 06 Jul 2017 03:33:20 -0400 In-Reply-To: <87o9sy9hdc.fsf@gmx.us> 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, Rasmus Dear Rasmus, thanks for the fast reply. > Rasmus wrote on July, 6th 2017, 09:03: > > Tobias Zawada writes: > > > At first I would like to ask whether it is already possible to change > > the default settings of the source block header line switches. > > Couldn't you use #+property headers? > E.g. > > #+PROPERTY: header-args:R :session *R* > > See: > > http://orgmode.org/org.html#Using-header-arguments No, switches and header arguments are (pityingly) two different concepts. Currently, switches cannot be modified via header arguments. But, you are partially right, It could be one solution of this enhancement request to introduce header-arguments for all switches, e.g., :sw-n, :sw+n. The values of those header arguments could be t and nil or, e.g., :sw+n 10. Then the full mechanism for header arguments would work for switches. See the description of switches at http://orgmode.org/manual/Literal-examples.html. Best regards, Tobias