* org-forward-sentence moving by paragraphs, not sentences?
@ 2017-03-17 11:50 Roland Tarver
2017-03-17 14:24 ` Yuri Khan
2017-03-17 14:45 ` tomas
0 siblings, 2 replies; 5+ messages in thread
From: Roland Tarver @ 2017-03-17 11:50 UTC (permalink / raw)
To: help-gnu-emacs
Hello All!
First post here :-) Fairly new to emacs - please be gentle with me! haha.
I am using org-mode (which is just amazing!) and I seem to be having
trouble with moving forward and backward by sentences.
The M-e key is bound to org-forward-sentence and the M-a key is bound to
org-backward-sentence. However, when I press these keys the point moves
backward or forward by paragraph, not by sentence.
In an effort to exclude incorrect key bindings, I have run the functions
using M-x org-forward-sentence and M-x org-backward-sentence. This has
the same result - moves by paragraphs only.
These results have occurred in the org file that I am working with at
present. Interestingly, M-e and M-a work as they should whilst moving
through the online tutorial (C-h t). The tutorial buffer opens in
fundamental mode. I have opened my org file in fundamental too - still
the problem persists.
Any ideas?
Many thanks
Roly :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-forward-sentence moving by paragraphs, not sentences?
2017-03-17 11:50 org-forward-sentence moving by paragraphs, not sentences? Roland Tarver
@ 2017-03-17 14:24 ` Yuri Khan
2017-03-17 19:44 ` Roland Tarver
2017-03-17 14:45 ` tomas
1 sibling, 1 reply; 5+ messages in thread
From: Yuri Khan @ 2017-03-17 14:24 UTC (permalink / raw)
To: Roland Tarver; +Cc: help-gnu-emacs
On Fri, Mar 17, 2017 at 6:50 PM, Roland Tarver
<roland.tarver@googlemail.com> wrote:
> I am using org-mode (which is just amazing!) and I seem to be having trouble
> with moving forward and backward by sentences.
>
> Interestingly, M-e and M-a work as they should whilst moving through the online
> tutorial (C-h t).
My crystal ball says you might be using a full stop and a single space
between sentences but Emacs by default expects that sentences are
separated with a full stop and a double space.
The tutorial happens to use double spacing.
See (describe-variable sentence-end-double-space) for details.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-forward-sentence moving by paragraphs, not sentences?
2017-03-17 11:50 org-forward-sentence moving by paragraphs, not sentences? Roland Tarver
2017-03-17 14:24 ` Yuri Khan
@ 2017-03-17 14:45 ` tomas
2017-03-17 19:50 ` Roland Tarver
1 sibling, 1 reply; 5+ messages in thread
From: tomas @ 2017-03-17 14:45 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Mar 17, 2017 at 11:50:34AM +0000, Roland Tarver wrote:
> Hello All!
>
> First post here :-) Fairly new to emacs - please be gentle with me! haha.
Don't worry. Lots of civilised folks around here ;-)
> I am using org-mode (which is just amazing!) and I seem to be having
> trouble with moving forward and backward by sentences.
>
> The M-e key is bound to org-forward-sentence and the M-a key is
> bound to org-backward-sentence. However, when I press these keys the
> point moves backward or forward by paragraph, not by sentence.
>
> In an effort to exclude incorrect key bindings, I have run the
> functions using M-x org-forward-sentence and M-x
> org-backward-sentence. This has the same result - moves by
> paragraphs only.
>
> These results have occurred in the org file that I am working with
> at present. Interestingly, M-e and M-a work as they should whilst
> moving through the online tutorial (C-h t). The tutorial buffer
> opens in fundamental mode. I have opened my org file in fundamental
> too - still the problem persists.
>
> Any ideas?
Yes. The sentence is in the eye of the beholder :-)
Just type in C-h f and then forward-sentence <RET>. You get the help
text for that function (I guess you already did). Now this has a
reference to the variable "sentence-end", which is customizable
(but don't let customize sirens detour your boat: hold to the mast).
Go to sentence-end's doco (C-h v ...). Its default value is the
result of invoking the function (sentence-end) which (on my system,
at least) is... (ohmygod, that looks ugly ;-)
Anyway it's some punctuation followed by *more* than one space.
Judging by your mail you come from a culture which (like mine)
tends to terminate sentences by just a dot and *one* space. That's
not enough for `sentence-end's default value..
That's, of course all my guess, but perhaps it sets you off into
the right direction.
Regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAljL9nIACgkQBcgs9XrR2kYBGwCfesVV7x5mzR9f1a7IS0N7hL0G
JIcAn1rhaB3tRJyXxZUBLFBRKsRTKR57
=P/xg
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-forward-sentence moving by paragraphs, not sentences?
2017-03-17 14:24 ` Yuri Khan
@ 2017-03-17 19:44 ` Roland Tarver
0 siblings, 0 replies; 5+ messages in thread
From: Roland Tarver @ 2017-03-17 19:44 UTC (permalink / raw)
To: help-gnu-emacs
Hi Yuri,
On 17/03/17 14:24, Yuri Khan wrote:
> On Fri, Mar 17, 2017 at 6:50 PM, Roland Tarver
> <roland.tarver@googlemail.com> wrote:
>
>> I am using org-mode (which is just amazing!) and I seem to be having trouble
>> with moving forward and backward by sentences.
>>
>> Interestingly, M-e and M-a work as they should whilst moving through the online
>> tutorial (C-h t).
> My crystal ball says you might be using a full stop and a single space
> between sentences but Emacs by default expects that sentences are
> separated with a full stop and a double space.
>
> The tutorial happens to use double spacing.
>
> See (describe-variable sentence-end-double-space) for details.
Thank you very much for your reply.
It fixed the issue and my emacs is now behaving as I want. Smashing :-)
Cheers roly :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-forward-sentence moving by paragraphs, not sentences?
2017-03-17 14:45 ` tomas
@ 2017-03-17 19:50 ` Roland Tarver
0 siblings, 0 replies; 5+ messages in thread
From: Roland Tarver @ 2017-03-17 19:50 UTC (permalink / raw)
To: help-gnu-emacs
Hi Tomas,
On 17/03/17 14:45, tomas@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri, Mar 17, 2017 at 11:50:34AM +0000, Roland Tarver wrote:
>> Hello All!
>>
>> First post here :-) Fairly new to emacs - please be gentle with me! haha.
> Don't worry. Lots of civilised folks around here ;-)
Phew! Thats lucky ;-) haha
>
>> I am using org-mode (which is just amazing!) and I seem to be having
>> trouble with moving forward and backward by sentences.
>>
>> The M-e key is bound to org-forward-sentence and the M-a key is
>> bound to org-backward-sentence. However, when I press these keys the
>> point moves backward or forward by paragraph, not by sentence.
>>
>> In an effort to exclude incorrect key bindings, I have run the
>> functions using M-x org-forward-sentence and M-x
>> org-backward-sentence. This has the same result - moves by
>> paragraphs only.
>>
>> These results have occurred in the org file that I am working with
>> at present. Interestingly, M-e and M-a work as they should whilst
>> moving through the online tutorial (C-h t). The tutorial buffer
>> opens in fundamental mode. I have opened my org file in fundamental
>> too - still the problem persists.
>>
>> Any ideas?
> Yes. The sentence is in the eye of the beholder :-)
>
> Just type in C-h f and then forward-sentence <RET>. You get the help
> text for that function (I guess you already did). Now this has a
> reference to the variable "sentence-end", which is customizable
> (but don't let customize sirens detour your boat: hold to the mast).
... I'm hanging on ^^ ...
> Go to sentence-end's doco (C-h v ...). Its default value is the
> result of invoking the function (sentence-end) which (on my system,
> at least) is... (ohmygod, that looks ugly ;-)
>
> Anyway it's some punctuation followed by *more* than one space.
>
> Judging by your mail you come from a culture which (like mine)
> tends to terminate sentences by just a dot and *one* space. That's
> not enough for `sentence-end's default value..
>
> That's, of course all my guess, but perhaps it sets you off into
> the right direction.
You guessed correctly! Thank you very much for your help. I am not yet
proficient with emac's help system. I did not even know you could get
descriptions of variables. O well, I guess I have to start somewhere.
Thankfully I know enough to make daily use of emacs; and thus learn as I
work...
Your comments helped me fix the "problem", thank you.
Best wishes
Roly :-)
>
> Regards
> - -- t
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAljL9nIACgkQBcgs9XrR2kYBGwCfesVV7x5mzR9f1a7IS0N7hL0G
> JIcAn1rhaB3tRJyXxZUBLFBRKsRTKR57
> =P/xg
> -----END PGP SIGNATURE-----
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-17 19:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-17 11:50 org-forward-sentence moving by paragraphs, not sentences? Roland Tarver
2017-03-17 14:24 ` Yuri Khan
2017-03-17 19:44 ` Roland Tarver
2017-03-17 14:45 ` tomas
2017-03-17 19:50 ` Roland Tarver
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).