From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Subject: org-archive-save-context-info as local variable Date: Fri, 21 Nov 2014 13:00:13 -0500 Message-ID: <8761e8xwlu.fsf@yale.edu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsXf-0005as-AV for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 13:02:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrsXS-0001OU-NG for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 13:02:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:51358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsXS-0001Ns-Ej for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 13:02:34 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XrsXQ-0006R4-Mk for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 19:02:32 +0100 Received: from nat-130-132-173-201.central.yale.edu ([130.132.173.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Nov 2014 19:02:32 +0100 Received: from jorge.alfaro-murillo by nat-130-132-173-201.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Nov 2014 19:02: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 Hi list, I am planning to collaborate on a project with another org-mode user (such a joy). For each org file we want to keep an archive as well in the git repository. With this work flow it does not make sense to keep track of the file property in `org-archive-save-context-info', since it will be different depending on the location of the repository in each computer. And since I did not want force a global configuration for this variable, I tried to add the variable as local in the first line of the file: # -*- mode: org; org-archive-save-context-info: (time olpath todo); -*- This sets the variable as local fine, but when I call `org-archive-subtree', it seems like this command still uses the global value of `org-archive-save-context-info' and keeps information on the file location in the archive. Does someone know why setting this variable as local does not work with `org-archive-subtree'? Is there another approach for setting org-mode variables on a per file basis? Best, -- Jorge.