emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Matt Lundin <mdl@imapmail.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Point jumps when changing timestamps
Date: Thu, 04 Aug 2011 18:01:25 +0200	[thread overview]
Message-ID: <87ei11yxm2.fsf@gmail.com> (raw)
In-Reply-To: <87d3gmy3w9.fsf@fastmail.fm> (Matt Lundin's message of "Wed, 03 Aug 2011 09:18:46 -0500")

Hello,

Matt Lundin <mdl@imapmail.org> writes:

> I often change timestamps  with S-Left or S-Right when the cursor is at
> the point immediately following the timestamp:
>
> <2011-08-03 Wed .+1d>
>                      ^ cursor here
>
> When I call S-Left or S-Right at this point, the cursor jumps to the
> last character of the day of week abbreviation:
>
> <2011-08-04 Thu .+1d>
>               ^ cursor now here
>
> The cursor does not jump if it is already located within the brackets.

I understand your point but I think Org shouldn't let you use
`org-shiftleft' at this place in the first place. In my opinion,
`org-at-timestamp-p' is faulty here.

I know there is currently in that function a workaround to return t when
point is at the char just after the time-stamp, but it just doesn't
sound right to me.

What do you think about it?

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2011-08-04 16:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-03 14:18 Point jumps when changing timestamps Matt Lundin
2011-08-04 16:01 ` Nicolas Goaziou [this message]
2011-08-04 16:39   ` Matt Lundin
2011-08-04 18:06     ` Nicolas Goaziou
2011-08-04 18:45       ` Matt Lundin
2011-08-05  8:47         ` Nicolas Goaziou
2011-08-05 14:08           ` Matt Lundin
2011-08-15  8:22             ` Bastien
2011-08-15  8:11           ` 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87ei11yxm2.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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