emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Timer mode doesn't hyphenate correctly
@ 2011-03-30 20:40 Mark S
  2011-03-31  1:01 ` Matt Lundin
  0 siblings, 1 reply; 5+ messages in thread
From: Mark S @ 2011-03-30 20:40 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hello,

I have a timer list running:

   - 0:01:00 Start at 10:17.
   - 2:14:18 :: My actions

I go to the end of the line and hit <alt><enter>

I get:

   - -2:15:45 ::

Note the two hyphens.

Now if I try to add another timed line with <alt><enter>, the system acts  
like I'm trying to start a term definition. If I use C-c C-x - instead, I  
get a message that I'm not in a timed list. The only way I can get a new  
timed entry, is to first delete the extra hyphen:

   -  2:15:45 ::

... and then use either of the other two techniques for creating an entry.  
This seems like several extra and unnecessary keystrokes. Is there a way  
to get it to add new timer items without fussing with the line?

Thanks!
Mark

Win XP
GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
Org 7.5

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

* Re: Timer mode doesn't hyphenate correctly
  2011-03-30 20:40 Timer mode doesn't hyphenate correctly Mark S
@ 2011-03-31  1:01 ` Matt Lundin
  0 siblings, 0 replies; 5+ messages in thread
From: Matt Lundin @ 2011-03-31  1:01 UTC (permalink / raw)
  To: throaway; +Cc: emacs-orgmode@gnu.org

"Mark S" <throaway@yahoo.com> writes:

> Hello,
>
> I have a timer list running:
>
>   - 0:01:00 Start at 10:17.
>   - 2:14:18 :: My actions
>
> I go to the end of the line and hit <alt><enter>
>
> I get:
>
>   - -2:15:45 ::
>
> Note the two hyphens.
>
> Now if I try to add another timed line with <alt><enter>, the system
> acts like I'm trying to start a term definition. If I use C-c C-x -
> instead, I get a message that I'm not in a timed list. The only way I
> can get a new timed entry, is to first delete the extra hyphen:
>
>   -  2:15:45 ::
>
> ... and then use either of the other two techniques for creating an
> entry. This seems like several extra and unnecessary keystrokes. Is
> there a way to get it to add new timer items without fussing with the
> line?

I cannot reproduce this.

All of the following timer items were entered quickly using M-Tab:

  - 0:01:04 :: An item
  - 0:01:07 :: Another item
  - 0:01:10 :: Yet another

Best,
Matt

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

* Re: Timer mode doesn't hyphenate correctly
  2011-03-31  5:39 Mark S
@ 2011-03-31 12:00 ` Nicolas
  2011-04-01  4:46 ` Mark S
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas @ 2011-03-31 12:00 UTC (permalink / raw)
  To: throaway; +Cc: emacs-orgmode@gnu.org

Hello,

"Mark S" <throaway@yahoo.com> writes:

> Hello Matt,
>
> --- On Wed, 3/30/11, Matt Lundin <mdl@imapmail.org> wrote:
>
>>I cannot reproduce this.
>>All of the following timer items were entered quickly using
>> M-Tab:
>>  - 0:01:04 :: An item
>>   - 0:01:07 :: Another item
>>   - 0:01:10 :: Yet another
>>
>
> It appears that you can get different results depending on how you
> start the timer and whether there are prior entries there. Basically,
> you need to start on a blank line with no prior timing entries. If you
> start your timer, either with C-c C-x 0 or with C-c C-x - with prior
> timer entries, you are likely to get the results I described before
> (double hyphens), or error messages ("not a timer list").
>
> So to people who know the right incantation, I suppose it looks ok.
> But if you take even a slight detour you may get some strange results.
>
> Maybe there should be a bit more warning in the manual. But now that
> I've worked out the land-mines, I'm sure its going to be very useful.

I cannot reproduce what you are describing. I may be misunderstanding
you. Could you please post an ECM for that?

Regards,

-- 
Nicolas

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

* Re: Timer mode doesn't hyphenate correctly
  2011-04-01  4:46 ` Mark S
@ 2011-04-01  6:32   ` Nicolas
  2011-04-01 13:02   ` Mark S
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas @ 2011-04-01  6:32 UTC (permalink / raw)
  To: throaway; +Cc: emacs-orgmode@gnu.org

Hello,

"Mark S" <throaway@yahoo.com> writes:

>>I cannot reproduce what you are describing. I may be
>> misunderstanding you. Could you please post an ECM
>> for that?
>>

> What's an ECM?

A minimal Org buffer with a recipe to reproduce the bug.

> Another thing I've noticed is that sometimes the list items are
> created in chronological order, and other times in
> reverse-chronological order. In fact, most of the time it wants to go
> in reverse-chronological order. Since there's no example in the
> manual, I'm not sure which one is "normal". I would prefer
> chronological order, but I can see why some might prefer
> reverse-chronological.

It doesn't "want" anything. If you hit M-RET between left margin and
beginning of item's body, the new item will be inserted before the
current one. Otherwise, it will be inserted after it, as in any other
type of list.

Anyway, you can always sort your timer list with "C-c ^".

Regards,

-- 
Nicolas

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

* Re: Timer mode doesn't hyphenate correctly
  2011-04-01 13:02   ` Mark S
@ 2011-04-01 15:21     ` Nicolas
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas @ 2011-04-01 15:21 UTC (permalink / raw)
  To: throaway; +Cc: emacs-orgmode@gnu.org

"Mark S" <throaway@yahoo.com> writes:

> --- On Thu, 3/31/11, Nicolas <n.goaziou@gmail.com> wrote:
>
>> It doesn't "want" anything. If you hit M-RET between left
>> margin and
>> beginning of item's body, the new item will be inserted
>> before the
>> current one. Otherwise, it will be inserted after it, as in
>> any other
>> type of list.
>>Anyway, you can always sort your timer list with "C-c ^".
>>
>
> Actually, its a little different. If you hit alt-enter at the end of
> a line, without typing other text first, like
>
>    - 0:00:02 :: <alt><enter>
>
> It thinks that you're at the beginning of a line and places the
> date-stamp *above* :
>
>    - 0:03:43 ::
>    - 0:00:02 ::

I didn't say at the beginning of line but before _item's body_. The tag
in a description list (or a timer list) isn't considered as the body of
the item, so my point is still valid. It would be the same with
a checkbox.

The advantage of this behavior is that M-RET will (or should) never
break list structure. Imagine M-RET in the middle of a checkbox or an
item tag.

Regards,

-- 
Nicolas

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

end of thread, other threads:[~2011-04-01 15:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30 20:40 Timer mode doesn't hyphenate correctly Mark S
2011-03-31  1:01 ` Matt Lundin
  -- strict thread matches above, loose matches on Subject: below --
2011-03-31  5:39 Mark S
2011-03-31 12:00 ` Nicolas
2011-04-01  4:46 ` Mark S
2011-04-01  6:32   ` Nicolas
2011-04-01 13:02   ` Mark S
2011-04-01 15:21     ` Nicolas

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