emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Timestamp: Forward or backward by a week
@ 2012-05-15 13:34 SW
  2012-05-15 13:40 ` Christian Moe
  2012-05-15 14:07 ` Nick Dokos
  0 siblings, 2 replies; 15+ messages in thread
From: SW @ 2012-05-15 13:34 UTC (permalink / raw)
  To: emacs-orgmode

Pressing S-left/right anywhere on a timestamp decreases/increases it by one day.

Pressing S-down/up on a component of a timestamp decreases/increases it by one
unit of that component.

How can we include an easy and quick way to decrease/increase the timestamp by
one week. I find myself having to do that quite often (increase). It's not
difficult to hit S-right/up seven times, but there is the possibility of
miscounting.

Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 13:34 Timestamp: Forward or backward by a week SW
@ 2012-05-15 13:40 ` Christian Moe
  2012-05-15 13:42   ` SW
  2012-05-15 14:07 ` Nick Dokos
  1 sibling, 1 reply; 15+ messages in thread
From: Christian Moe @ 2012-05-15 13:40 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

C-c . +1w

Yours,
Christian

On 5/15/12 3:34 PM, SW wrote:
> Pressing S-left/right anywhere on a timestamp decreases/increases it by one day.
>
> Pressing S-down/up on a component of a timestamp decreases/increases it by one
> unit of that component.
>
> How can we include an easy and quick way to decrease/increase the timestamp by
> one week. I find myself having to do that quite often (increase). It's not
> difficult to hit S-right/up seven times, but there is the possibility of
> miscounting.
>
> Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``?
>
>
>

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 13:40 ` Christian Moe
@ 2012-05-15 13:42   ` SW
  2012-05-15 14:15     ` Christian Moe
  0 siblings, 1 reply; 15+ messages in thread
From: SW @ 2012-05-15 13:42 UTC (permalink / raw)
  To: emacs-orgmode

Christian Moe <mail <at> christianmoe.com> writes:

> C-c . +1w

This updates the timestamp to be one week from *today*. I want to push the
timestamp one week forward from wherever it is.

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 13:34 Timestamp: Forward or backward by a week SW
  2012-05-15 13:40 ` Christian Moe
@ 2012-05-15 14:07 ` Nick Dokos
  2012-05-15 14:24   ` SW
  1 sibling, 1 reply; 15+ messages in thread
From: Nick Dokos @ 2012-05-15 14:07 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

SW <sabrewolfy@gmail.com> wrote:

> Pressing S-left/right anywhere on a timestamp decreases/increases it by one day.
> 
> Pressing S-down/up on a component of a timestamp decreases/increases it by one
> unit of that component.
> 
> How can we include an easy and quick way to decrease/increase the timestamp by
> one week. I find myself having to do that quite often (increase). It's not
> difficult to hit S-right/up seven times, but there is the possibility of
> miscounting.
> 

I generally lean on S-up and watch the changing date until it gets to
where I want it - no counting.

> Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 
> 
> 

I wouldn't bother but I'm not you: if you really want to, you can define a trivial function

   (defun sw-one-week-bump ()
       (org-timestamp-up-day 7))

and bind it.

If you need help with the latter, see the emacs manual:

   (info "(emacs) Customizing Key Bindings")

and for the gory details, the emacs lisp manual:

   (info "(elisp) Keymaps")

Nick

PS. Not sure how much emacs you know - if any/all of this is obvious, please disregard.

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 13:42   ` SW
@ 2012-05-15 14:15     ` Christian Moe
  2012-05-15 14:16       ` SW
  0 siblings, 1 reply; 15+ messages in thread
From: Christian Moe @ 2012-05-15 14:15 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

Oops, sorry! Forgot the double-plus.

With point on the timestamp,

C-c . ++1w

Yours,
Christian

On 5/15/12 3:42 PM, SW wrote:
> Christian Moe<mail<at>  christianmoe.com>  writes:
>
>> C-c . +1w
>
> This updates the timestamp to be one week from *today*. I want to push the
> timestamp one week forward from wherever it is.
>
>
>

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 14:15     ` Christian Moe
@ 2012-05-15 14:16       ` SW
  0 siblings, 0 replies; 15+ messages in thread
From: SW @ 2012-05-15 14:16 UTC (permalink / raw)
  To: emacs-orgmode

Christian Moe <mail <at> christianmoe.com> writes:

> Oops, sorry! Forgot the double-plus.
> 
> With point on the timestamp,
> 
> C-c . ++1w

Ah, that works. Thanks :)

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 14:07 ` Nick Dokos
@ 2012-05-15 14:24   ` SW
  2012-05-15 14:57     ` Nick Dokos
  2012-05-15 15:02     ` Brian van den Broek
  0 siblings, 2 replies; 15+ messages in thread
From: SW @ 2012-05-15 14:24 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos <at> hp.com> writes:

> > Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 
 
> I wouldn't bother but I'm not you: if you really want to, you can
> define a trivial function
> 
>    (defun sw-one-week-bump ()
>        (org-timestamp-up-day 7))
> 
> and bind it.

<snip>
>    (info "(emacs) Customizing Key Bindings")

<snip>

> PS. Not sure how much emacs you know - if any/all of this is obvious,
> please disregard.

:) Thanks. I'm an "advanced beginner" with Emacs, so the example was helpful.

Aside: Hitting ``M-: (info "(emacs) Customizing Key Bindings")`` gives me an
error about the info file not existing. I installed Emacs 23.2.1 in CrunchBang
Linux (Debian Stable) and (IIRC) org-mode 7.8.06 via a Debian package. Any ideas?

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 14:24   ` SW
@ 2012-05-15 14:57     ` Nick Dokos
  2012-05-15 15:02     ` Brian van den Broek
  1 sibling, 0 replies; 15+ messages in thread
From: Nick Dokos @ 2012-05-15 14:57 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

SW <sabrewolfy@gmail.com> wrote:

> Nick Dokos <nicholas.dokos <at> hp.com> writes:
> 
> > > Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 
>  
> > I wouldn't bother but I'm not you: if you really want to, you can
> > define a trivial function
> > 
> >    (defun sw-one-week-bump ()
> >        (org-timestamp-up-day 7))
> > 
> > and bind it.
> 
> <snip>
> >    (info "(emacs) Customizing Key Bindings")
> 
> <snip>
> 
> > PS. Not sure how much emacs you know - if any/all of this is obvious,
> > please disregard.
> 
> :) Thanks. I'm an "advanced beginner" with Emacs, so the example was helpful.
> 
> Aside: Hitting ``M-: (info "(emacs) Customizing Key Bindings")`` gives me an
> error about the info file not existing. I installed Emacs 23.2.1 in CrunchBang
> Linux (Debian Stable) and (IIRC) org-mode 7.8.06 via a Debian package. Any ideas?
> 

I don't know if there is a separate doc package on your distro (or any
distro for that matter): I generally install emacs from source and both
the emacs and elisp info files are built and installed along with it.

Nick

PS. C-x C-e will evaluate a form in any bufferm, with no need for ``M-: foo RET''

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 14:24   ` SW
  2012-05-15 14:57     ` Nick Dokos
@ 2012-05-15 15:02     ` Brian van den Broek
  2012-05-15 16:27       ` SW
  1 sibling, 1 reply; 15+ messages in thread
From: Brian van den Broek @ 2012-05-15 15:02 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

On 15 May 2012 17:25, "SW" <sabrewolfy@gmail.com> wrote:

<snip>

> Aside: Hitting ``M-: (info "(emacs) Customizing Key Bindings")`` gives me
an
> error about the info file not existing. I installed Emacs 23.2.1 in
CrunchBang
> Linux (Debian Stable) and (IIRC) org-mode 7.8.06 via a Debian package.
Any ideas?
>

A data point:

I've the same broken info system on the ssame version of CrunchBang. I
really like cb, but there are wrinkles like that. The TODO for solving that
hasn't percolated up my list yet :-)

Best,

Brian vdB

[-- Attachment #2: Type: text/html, Size: 685 bytes --]

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 15:02     ` Brian van den Broek
@ 2012-05-15 16:27       ` SW
  2012-05-15 16:46         ` Nick Dokos
  0 siblings, 1 reply; 15+ messages in thread
From: SW @ 2012-05-15 16:27 UTC (permalink / raw)
  To: emacs-orgmode

Brian van den Broek <brian.van.den.broek <at> gmail.com> writes:

> A data point:
> I've the same broken info system on the ssame version of CrunchBang.
> I really like cb, but there are wrinkles like that. The TODO for
> solving that hasn't percolated up my list yet

In the meantime, I've posed it on the CrunchBang forums:
http://crunchbanglinux.org/forums/topic/19641/emacs-info-pages/

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 16:27       ` SW
@ 2012-05-15 16:46         ` Nick Dokos
  2012-05-15 18:21           ` Memnon Anon
  2012-05-15 18:35           ` SW
  0 siblings, 2 replies; 15+ messages in thread
From: Nick Dokos @ 2012-05-15 16:46 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

SW <sabrewolfy@gmail.com> wrote:

> Brian van den Broek <brian.van.den.broek <at> gmail.com> writes:
> 
> > A data point:
> > I've the same broken info system on the ssame version of CrunchBang.
> > I really like cb, but there are wrinkles like that. The TODO for
> > solving that hasn't percolated up my list yet
> 
> In the meantime, I've posed it on the CrunchBang forums:
> http://crunchbanglinux.org/forums/topic/19641/emacs-info-pages/
> 

On Ubuntu 11.04, they are in the package emacs23-common. When I
installed emacs23, emacs23-common came along for the ride.

But I saw a message implying that Debian does not consider emacs
documentation free (!?!?), so the info files may be in
emacs23-common-non-dfsg in this case.

Nick

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 16:46         ` Nick Dokos
@ 2012-05-15 18:21           ` Memnon Anon
  2012-05-15 18:35             ` Nick Dokos
  2012-05-15 18:35           ` SW
  1 sibling, 1 reply; 15+ messages in thread
From: Memnon Anon @ 2012-05-15 18:21 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

> But I saw a message implying that Debian does not consider emacs
> documentation free (!?!?), so the info files may be in
> emacs23-common-non-dfsg in this case.

The FSF isn't the only one caring about "Freedom".
Where more than one entity exists, they are bound to disagree sometimes :).


,----[ https://en.wikipedia.org/wiki/DFSG#GFDL ]
| Much documentation written by the GNU Project, the Linux Documentation
| Project and others licensed under the GNU Free Documentation License
| contain invariant sections, which do not comply with the DFSG. This
| assertion is the end result of a long discussion and the General
| Resolution 2006-001.[11]
| 
| Due to the GFDL invariant sections, content under this license must be
| separately contained in an additional "non-free" repository which is not
| officially considered part of Debian.
`----

hth
Memnon

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 16:46         ` Nick Dokos
  2012-05-15 18:21           ` Memnon Anon
@ 2012-05-15 18:35           ` SW
  2012-05-15 18:50             ` Nick Dokos
  1 sibling, 1 reply; 15+ messages in thread
From: SW @ 2012-05-15 18:35 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos <at> hp.com> writes:

<snip>
 
> But I saw a message implying that Debian does not consider emacs
> documentation free (!?!?), so the info files may be in
> emacs23-common-non-dfsg in this case.

Thanks, that's the package :)

FWIW, I think you meant:

(info "(emacs) Key Binding Commands")

earlier, or else I don't have the node you mentioned.

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 18:21           ` Memnon Anon
@ 2012-05-15 18:35             ` Nick Dokos
  0 siblings, 0 replies; 15+ messages in thread
From: Nick Dokos @ 2012-05-15 18:35 UTC (permalink / raw)
  To: Memnon Anon; +Cc: emacs-orgmode

Memnon Anon <gegendosenfleisch@googlemail.com> wrote:

> Nick Dokos <nicholas.dokos@hp.com> writes:
> 
> > But I saw a message implying that Debian does not consider emacs
> > documentation free (!?!?), so the info files may be in
> > emacs23-common-non-dfsg in this case.
> 
> The FSF isn't the only one caring about "Freedom".
> Where more than one entity exists, they are bound to disagree sometimes :).
> 
> 
> ,----[ https://en.wikipedia.org/wiki/DFSG#GFDL ]
> | Much documentation written by the GNU Project, the Linux Documentation
> | Project and others licensed under the GNU Free Documentation License
> | contain invariant sections, which do not comply with the DFSG. This
> | assertion is the end result of a long discussion and the General
> | Resolution 2006-001.[11]
> | 
> | Due to the GFDL invariant sections, content under this license must be
> | separately contained in an additional "non-free" repository which is not
> | officially considered part of Debian.
> `----
> 

Yup - as I indicated, I found it somewhat surprising, so I found and
read the resolution.  I think it's all pretty small nits, but thank
goodness IANAL (haven't even played one on TV): the havoc that I could
wreak would be unimaginable...

Nick

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

* Re: Timestamp: Forward or backward by a week
  2012-05-15 18:35           ` SW
@ 2012-05-15 18:50             ` Nick Dokos
  0 siblings, 0 replies; 15+ messages in thread
From: Nick Dokos @ 2012-05-15 18:50 UTC (permalink / raw)
  To: SW; +Cc: emacs-orgmode

SW <sabrewolfy@gmail.com> wrote:

> Nick Dokos <nicholas.dokos <at> hp.com> writes:
> 
> <snip>
>  
> > But I saw a message implying that Debian does not consider emacs
> > documentation free (!?!?), so the info files may be in
> > emacs23-common-non-dfsg in this case.
> 
> Thanks, that's the package :)
> 
> FWIW, I think you meant:
> 
> (info "(emacs) Key Binding Commands")
> 
> earlier, or else I don't have the node you mentioned.
> 

That may very well be: I was looking in the emacs24 info files which are
probably different.

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

end of thread, other threads:[~2012-05-15 18:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 13:34 Timestamp: Forward or backward by a week SW
2012-05-15 13:40 ` Christian Moe
2012-05-15 13:42   ` SW
2012-05-15 14:15     ` Christian Moe
2012-05-15 14:16       ` SW
2012-05-15 14:07 ` Nick Dokos
2012-05-15 14:24   ` SW
2012-05-15 14:57     ` Nick Dokos
2012-05-15 15:02     ` Brian van den Broek
2012-05-15 16:27       ` SW
2012-05-15 16:46         ` Nick Dokos
2012-05-15 18:21           ` Memnon Anon
2012-05-15 18:35             ` Nick Dokos
2012-05-15 18:35           ` SW
2012-05-15 18:50             ` Nick Dokos

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