emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode date stamp with just month?
Date: Mon, 07 Jul 2014 15:43:32 -0400	[thread overview]
Message-ID: <87mwclymxn.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 8738edghwq.fsf@gmail.com

Thorsten Jolitz <tjolitz@gmail.com> writes:

> Alexander Baier <alexander.baier@mailbox.org> 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.



  reply	other threads:[~2014-07-07 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 23:42 org-mode date stamp with just month? David Rogoff
2014-07-07  0:05 ` Thorsten Jolitz
2014-07-07 14:40   ` Grant Rettke
2014-07-07 15:42     ` Thorsten Jolitz
2014-07-07 18:00     ` Alexander Baier
2014-07-07 18:09       ` Thorsten Jolitz
2014-07-07 19:43         ` Nick Dokos [this message]
2014-07-27 14:38 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwclymxn.fsf@alphaville.bos.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).