* Why does 'M-a' not move to the beginning of the sentence?
@ 2005-09-07 9:08 Henrik Andersson
0 siblings, 0 replies; 9+ messages in thread
From: Henrik Andersson @ 2005-09-07 9:08 UTC (permalink / raw)
I edit a lot of LaTeX manuscripts and I started to use emacs key
sequences to move easier, avoiding the mouse.
One question, why does M-a and M-e not move to beginning/end of
sentences, but paragraphs, when the description clearly says that they
are moving around sentences. Are there a different function that will do
this?
---------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400 AC Yerseke
Phone: +31 113 577473
h.andersson@nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
[not found] <mailman.6153.1126085200.20277.help-gnu-emacs@gnu.org>
@ 2005-09-07 9:38 ` Ralf Angeli
2005-09-07 9:50 ` Henrik Andersson
[not found] ` <mailman.6156.1126087308.20277.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: Ralf Angeli @ 2005-09-07 9:38 UTC (permalink / raw)
* Henrik Andersson (2005-09-07) writes:
> I edit a lot of LaTeX manuscripts and I started to use emacs key
> sequences to move easier, avoiding the mouse.
>
> One question, why does M-a and M-e not move to beginning/end of
> sentences, but paragraphs, when the description clearly says that they
> are moving around sentences. Are there a different function that will do
> this?
See `C-h f forward-sentence RET' and `C-h v sentence-end RET'.
--
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
2005-09-07 9:38 ` Why does 'M-a' not move to the beginning of the sentence? Ralf Angeli
@ 2005-09-07 9:50 ` Henrik Andersson
2005-09-07 10:28 ` Slawomir Nowaczyk
[not found] ` <mailman.6156.1126087308.20277.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 9+ messages in thread
From: Henrik Andersson @ 2005-09-07 9:50 UTC (permalink / raw)
Ralf Angeli wrote:
> * Henrik Andersson (2005-09-07) writes:
>
>
>>I edit a lot of LaTeX manuscripts and I started to use emacs key
>>sequences to move easier, avoiding the mouse.
>>
>>One question, why does M-a and M-e not move to beginning/end of
>>sentences, but paragraphs, when the description clearly says that they
>>are moving around sentences. Are there a different function that will do
>>this?
>
>
> See `C-h f forward-sentence RET' and `C-h v sentence-end RET'.
>
Ok, I read but do not fully understand, does it mean I need two spaces
separating sentences?
---------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400 AC Yerseke
Phone: +31 113 577473
h.andersson@nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
2005-09-07 9:50 ` Henrik Andersson
@ 2005-09-07 10:28 ` Slawomir Nowaczyk
0 siblings, 0 replies; 9+ messages in thread
From: Slawomir Nowaczyk @ 2005-09-07 10:28 UTC (permalink / raw)
On Wed, 07 Sep 2005 11:50:24 +0200
Henrik Andersson <h.andersson@nioo.knaw.nl> wrote:
#> >>One question, why does M-a and M-e not move to beginning/end of
#> >>sentences, but paragraphs, when the description clearly says that they
#> >>are moving around sentences. Are there a different function that will do
#> >>this?
#> > See `C-h f forward-sentence RET' and `C-h v sentence-end RET'.
#> Ok, I read but do not fully understand, does it mean I need two
#> spaces separating sentences?
If your value of sentence-end-double-space is non-nil, then yes. If
you don't want to end your sentences with two spaces, just customise
this variable: M-x customize-variable RET sentence-end-double-space
--
Best wishes,
Slawomir Nowaczyk
( slawomir.nowaczyk.847@student.lu.se )
The light at the end of the tunnel has been turned off due to budget cuts.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
[not found] ` <mailman.6156.1126087308.20277.help-gnu-emacs@gnu.org>
@ 2005-09-07 10:36 ` Ralf Angeli
2005-09-07 10:37 ` Ralf Angeli
2005-09-07 10:52 ` Henrik Andersson
2005-09-07 14:24 ` Alan Mackenzie
1 sibling, 2 replies; 9+ messages in thread
From: Ralf Angeli @ 2005-09-07 10:36 UTC (permalink / raw)
* Henrik Andersson (2005-09-07) writes:
> Ralf Angeli wrote:
>>
>> See `C-h f forward-sentence RET' and `C-h v sentence-end RET'.
>>
> Ok, I read but do not fully understand, does it mean I need two spaces
> separating sentences?
If you don't want to change `sentence-end', yes. In contrast to Emacs
21, this should not be necessary if you set
`sentence-end-double-space' to your preferred value.
More on the topic can be found in (info "(emacs)Sentences").
--
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
2005-09-07 10:36 ` Ralf Angeli
@ 2005-09-07 10:37 ` Ralf Angeli
2005-09-07 11:27 ` Peter Dyballa
2005-09-07 10:52 ` Henrik Andersson
1 sibling, 1 reply; 9+ messages in thread
From: Ralf Angeli @ 2005-09-07 10:37 UTC (permalink / raw)
* Ralf Angeli (2005-09-07) writes:
> If you don't want to change `sentence-end', yes. In contrast to Emacs
> 21, this should not be necessary if you set
> `sentence-end-double-space' to your preferred value.
Sorry, the last sentence was supposed to be "In contrast to Emacs 21,
this should not be necessary in a CVS Emacs if you set
`sentence-end-double-space' to your preferred value."
--
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
2005-09-07 10:36 ` Ralf Angeli
2005-09-07 10:37 ` Ralf Angeli
@ 2005-09-07 10:52 ` Henrik Andersson
1 sibling, 0 replies; 9+ messages in thread
From: Henrik Andersson @ 2005-09-07 10:52 UTC (permalink / raw)
Ralf Angeli wrote:
> * Henrik Andersson (2005-09-07) writes:
>
>
>>Ralf Angeli wrote:
>>
>>>See `C-h f forward-sentence RET' and `C-h v sentence-end RET'.
>>>
>>
>>Ok, I read but do not fully understand, does it mean I need two spaces
>>separating sentences?
>
>
> If you don't want to change `sentence-end', yes. In contrast to Emacs
> 21, this should not be necessary if you set
> `sentence-end-double-space' to your preferred value.
>
> More on the topic can be found in (info "(emacs)Sentences").
>
I see, thanks.
The descriptions of variables and functions are sometimes a bit cryptic
to understand, but this of course understandable with so many functions
to document. Nice to have this mailing list to get answers from real people.
Have a nice day, Henrik
--
---------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400 AC Yerseke
Phone: +31 113 577473
h.andersson@nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
2005-09-07 10:37 ` Ralf Angeli
@ 2005-09-07 11:27 ` Peter Dyballa
0 siblings, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2005-09-07 11:27 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 07.09.2005 um 12:37 schrieb Ralf Angeli:
> set `sentence-end-double-space' to your preferred value
That's very good news!
--
Mit friedvollen Grüßen
Pete
<\
\__ O __O
| O\ _\\/\-% _`\<,
'()-'-(_)--(_) (_)/(_)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why does 'M-a' not move to the beginning of the sentence?
[not found] ` <mailman.6156.1126087308.20277.help-gnu-emacs@gnu.org>
2005-09-07 10:36 ` Ralf Angeli
@ 2005-09-07 14:24 ` Alan Mackenzie
1 sibling, 0 replies; 9+ messages in thread
From: Alan Mackenzie @ 2005-09-07 14:24 UTC (permalink / raw)
Henrik Andersson <h.andersson@nioo.knaw.nl> wrote on Wed, 07 Sep 2005
11:50:24 +0200:
> Ralf Angeli wrote:
>> * Henrik Andersson (2005-09-07) writes:
>>
>>
>>>I edit a lot of LaTeX manuscripts and I started to use emacs key
>>>sequences to move easier, avoiding the mouse.
>>>
>>>One question, why does M-a and M-e not move to beginning/end of
>>>sentences, but paragraphs, when the description clearly says that they
>>>are moving around sentences. Are there a different function that will
>>>do this?
>>
>>
>> See `C-h f forward-sentence RET' and `C-h v sentence-end RET'.
>>
> Ok, I read but do not fully understand, does it mean I need two spaces
> separating sentences?
Probably. (I'm guessing here about what your problem is.) Either that, or
change `sentence-end' to match sentences with just one space after them.
Have a look at the page "Regexp Example" in the Elisp manual.
I don't know if the mode you're using changes `sentence-end'. Why don't
you post it here? If it doesn't, the following value might work for you:
This is the standard value, which insists on 2 spaces after a sentence:
"[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*"
This adaptation only needs one space.
"[.?!][]\"')}]*\\($\\|\t\\| \\)[ \t\n]*"
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-09-07 14:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6153.1126085200.20277.help-gnu-emacs@gnu.org>
2005-09-07 9:38 ` Why does 'M-a' not move to the beginning of the sentence? Ralf Angeli
2005-09-07 9:50 ` Henrik Andersson
2005-09-07 10:28 ` Slawomir Nowaczyk
[not found] ` <mailman.6156.1126087308.20277.help-gnu-emacs@gnu.org>
2005-09-07 10:36 ` Ralf Angeli
2005-09-07 10:37 ` Ralf Angeli
2005-09-07 11:27 ` Peter Dyballa
2005-09-07 10:52 ` Henrik Andersson
2005-09-07 14:24 ` Alan Mackenzie
2005-09-07 9:08 Henrik Andersson
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).