emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode date stamp with just month?
@ 2014-07-06 23:42 David Rogoff
  2014-07-07  0:05 ` Thorsten Jolitz
  2014-07-27 14:38 ` Bastien
  0 siblings, 2 replies; 8+ messages in thread
From: David Rogoff @ 2014-07-06 23:42 UTC (permalink / raw)
  To: emacs-orgmode

I can’t see how to insert a datestamp with just year and month.  I’m adding an archive of various past events that I don’t have the exact date for.

Thanks,

 David

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  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-27 14:38 ` Bastien
  1 sibling, 1 reply; 8+ messages in thread
From: Thorsten Jolitz @ 2014-07-07  0:05 UTC (permalink / raw)
  To: emacs-orgmode

David Rogoff <david@therogoffs.com> writes:

> I can’t see how to insert a datestamp with just year and month.  I’m
> adding an archive of various past events that I don’t have the exact
> date for.

Maybe try

,----[ C-h v org-time-stamp-custom-formats RET ]
| org-time-stamp-custom-formats is a variable defined in `org.el'.
| Its value is ("<%m/%d/%y %a>" . "<%m/%d/%y %a %H:%M>")
| 
| Documentation:
| Custom formats for time stamps.  See `format-time-string' for the syntax.
| These are overlaid over the default ISO format if the variable
| `org-display-custom-times' is set.  Time like %H:%M should be at the
| end of the second format.  The custom formats are also honored by export
| commands, if custom time display is turned on at the time of export.
| 
| You can customize this variable.
| 
| [back]
`----

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Grant Rettke @ 2014-07-07 14:40 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode@gnu.org

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?

How might we get that form for only parts of a file in which the rest
of that file we want the standard date format?
Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Sun, Jul 6, 2014 at 7:05 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
> David Rogoff <david@therogoffs.com> writes:
>
>> I can’t see how to insert a datestamp with just year and month.  I’m
>> adding an archive of various past events that I don’t have the exact
>> date for.
>
> Maybe try
>
> ,----[ C-h v org-time-stamp-custom-formats RET ]
> | org-time-stamp-custom-formats is a variable defined in `org.el'.
> | Its value is ("<%m/%d/%y %a>" . "<%m/%d/%y %a %H:%M>")
> |
> | Documentation:
> | Custom formats for time stamps.  See `format-time-string' for the syntax.
> | These are overlaid over the default ISO format if the variable
> | `org-display-custom-times' is set.  Time like %H:%M should be at the
> | end of the second format.  The custom formats are also honored by export
> | commands, if custom time display is turned on at the time of export.
> |
> | You can customize this variable.
> |
> | [back]
> `----
>
> --
> cheers,
> Thorsten
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  2014-07-07 14:40   ` Grant Rettke
@ 2014-07-07 15:42     ` Thorsten Jolitz
  2014-07-07 18:00     ` Alexander Baier
  1 sibling, 0 replies; 8+ messages in thread
From: Thorsten Jolitz @ 2014-07-07 15:42 UTC (permalink / raw)
  To: emacs-orgmode

Grant Rettke <gcr@wisdomandwonder.com> writes:

> 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?
>
> How might we get that form for only parts of a file in which the rest
> of that file we want the standard date format?

I really don't know, I just thought that this variable could be a
starting point for the OP for some deeper digging ...

> Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
> gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
>
>
> On Sun, Jul 6, 2014 at 7:05 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
>> David Rogoff <david@therogoffs.com> writes:
>>
>>> I can’t see how to insert a datestamp with just year and month.  I’m
>>> adding an archive of various past events that I don’t have the exact
>>> date for.
>>
>> Maybe try
>>
>> ,----[ C-h v org-time-stamp-custom-formats RET ]
>> | org-time-stamp-custom-formats is a variable defined in `org.el'.
>> | Its value is ("<%m/%d/%y %a>" . "<%m/%d/%y %a %H:%M>")
>> |
>> | Documentation:
>> | Custom formats for time stamps.  See `format-time-string' for the
>> | syntax.
>> | These are overlaid over the default ISO format if the variable
>> | `org-display-custom-times' is set.  Time like %H:%M should be at the
>> | end of the second format.  The custom formats are also honored by
>> | export
>> | commands, if custom time display is turned on at the time of export.
>> |
>> | You can customize this variable.
>> |
>> | [back]
>> `----
>>
>> --
>> cheers,
>> Thorsten
>>
>>
>
>

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Alexander Baier @ 2014-07-07 18:00 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org, Thorsten Jolitz

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?

HTH,
-- 
Alexander Baier

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  2014-07-07 18:00     ` Alexander Baier
@ 2014-07-07 18:09       ` Thorsten Jolitz
  2014-07-07 19:43         ` Nick Dokos
  0 siblings, 1 reply; 8+ messages in thread
From: Thorsten Jolitz @ 2014-07-07 18:09 UTC (permalink / raw)
  To: emacs-orgmode

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 ...

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  2014-07-07 18:09       ` Thorsten Jolitz
@ 2014-07-07 19:43         ` Nick Dokos
  0 siblings, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2014-07-07 19:43 UTC (permalink / raw)
  To: emacs-orgmode

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.

Nick






                    

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-mode date stamp with just month?
  2014-07-06 23:42 org-mode date stamp with just month? David Rogoff
  2014-07-07  0:05 ` Thorsten Jolitz
@ 2014-07-27 14:38 ` Bastien
  1 sibling, 0 replies; 8+ messages in thread
From: Bastien @ 2014-07-27 14:38 UTC (permalink / raw)
  To: David Rogoff; +Cc: emacs-orgmode

Hi David,

David Rogoff <david@therogoffs.com> writes:

> I can’t see how to insert a datestamp with just year and month.  I’m
> adding an archive of various past events that I don’t have the exact
> date for.

I would simply put an arbitrary date then, because YYYY-MM-DD is deep
into Org's DNA.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-28 17:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2014-07-27 14:38 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).