emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to make forward-paragraph stop at the end of every normally-defined paragraph
@ 2013-06-30 21:07 Samuel Wales
  2013-06-30 21:17 ` Bastien
  2013-06-30 22:39 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Samuel Wales @ 2013-06-30 21:07 UTC (permalink / raw)
  To: emacs-orgmode

Here is an example:

===

a par

:LOGBOOK:
- Note taken on [2013-06-30 Sun 13:32] \\
  test
:END:

another par

# another par

# another par

another par

===

Where forward-paragraph stops is at the dots:

===

a par
.
:LOGBOOK:
- Note taken on [2013-06-30 Sun 13:32] \\
  test
.:END:

another par
.
# another par

# another par

another par
.

===

Sometimes it does not stop at :END: but stops at the end of the
following paragraph.

That is not useful for me when I want to navigate (YMMV).  There is no
way I can predict that even if it makes sense in the parser's theory.

I am aware that the parser has its own logic, but stopping on the last
line of a drawer is not something that I would predict and stopping
after the paragraph after the drawer is too long a jump for me as a
user.

Also, stopping after a series of commented paragraphs instead of
between them is not useful to me as a user.  I want each one to be a
separate paragraph because that is the way I comment things.  I do not
restrict myself to a single commented paragraph; there is a semantic
distinction between two commented paragraphs and one comment with two
internal paragraphs.  Of course, this is my own preference and maybe
some others do not draw that distinction.

Where i'd like it to stop is ideally here:

===

a par
.
:LOGBOOK:
- Note taken on [2013-06-30 Sun 13:32] \\
  test
:END:
.
another par
.
# another par
.
# another par
.
another par
.

===

(In reality, I am thinking that it would be great if Emacs could
optionally make both forward and backward motion go to the beginning
of an object instead of the end, but that is  a separate topic as we
are talking about consistency with the rest of Emacs.)

There are probably theoretical reasons for the existing choices, but
they do not match my intuitive needs.

Is there a way to make it work the way I want it to?  I think my
intuition is more consistent with the rest of Emacs?

Hope this stimulates discussion.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.

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

* Re: how to make forward-paragraph stop at the end of every normally-defined paragraph
  2013-06-30 21:07 how to make forward-paragraph stop at the end of every normally-defined paragraph Samuel Wales
@ 2013-06-30 21:17 ` Bastien
  2013-06-30 22:39 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2013-06-30 21:17 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hi Samuel,

Samuel Wales <samologist@gmail.com> writes:

> Where forward-paragraph stops is at the dots:

This is something I've long wanted, `forward-paragraph' now calls
`org-format-element' in master.

Thanks,

-- 
 Bastien

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

* Re: how to make forward-paragraph stop at the end of every normally-defined paragraph
  2013-06-30 21:07 how to make forward-paragraph stop at the end of every normally-defined paragraph Samuel Wales
  2013-06-30 21:17 ` Bastien
@ 2013-06-30 22:39 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2013-06-30 22:39 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hi Samuel,

Samuel Wales <samologist@gmail.com> writes:

> Where forward-paragraph stops is at the dots:

This is something I've long wanted, `forward-paragraph' and
`backward-delete' are now bound to `org-forward-element' and
`org-backward-element'.

Thanks,

-- 
 Bastien

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

end of thread, other threads:[~2013-06-30 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-30 21:07 how to make forward-paragraph stop at the end of every normally-defined paragraph Samuel Wales
2013-06-30 21:17 ` Bastien
2013-06-30 22:39 ` 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).