From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-mode date stamp with just month? Date: Mon, 07 Jul 2014 15:43:32 -0400 Message-ID: <87mwclymxn.fsf@alphaville.bos.redhat.com> References: <874myut4n3.fsf@gmail.com> <87fvidt5fl.fsf@mailbox.org> <8738edghwq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4EpQ-0000AN-FR for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 15:44:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4EpK-0000B1-77 for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 15:43:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:46335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4EpK-0000Aw-0E for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 15:43:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X4EpH-0002dB-WE for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 21:43:48 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 21:43:47 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 21:43:47 +0200 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 Thorsten Jolitz writes: > Alexander Baier writes: > >> On 2014-07-07 16:40 Grant Rettke wrote: >>> That property then is something that we may set as a buffer local >>> variable set in the file itself for cases where want only months in >>> the entire file? >> >> File local variables? > > ,----[ C-h f make-variable-buffer-local RET ] > | make-variable-buffer-local is an interactive built-in function in `C > | source code'. > | [...] > `---- > > Aren't file-local and buffer-local variable really aliases? In the Emacs > world both names are used, but they seem to refer to the same thing, > except maybe that file-local vars are defined persistently in the file? > Not sure really ... Not really: a buffer may or may not be associated with a file, so its buffer-locals cannot possibly be file-locals. Ditto for a buffer that *is* associated with a file, but which then is given a bunch of buffer-locals (e.g. associated with a minor mode for that file). OTOH, file-locals are read from the file when the file is opened and they *do* become buffer-local at that point. And yes, file-locals could be used to satisfy the OP's first request. AFAIK, there is no way to satisfy the second request (i.e. for only parts of the file). org-time-stamp-custom-formats is for visual display only: the underlying timestamp is standard ISO and the custom one is overlaid iff org-display-custom-times is set (but if I read the docstring correctly, the custom format is honored during export in this case, so it is a bit more than visual display). However, there is no way to have that variable set one way for part of the file and another way for a different part. Nick