[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does 'M-a' not move to the beginning of the sentence?
From: |
Alan Mackenzie |
Subject: |
Re: Why does 'M-a' not move to the beginning of the sentence? |
Date: |
Wed, 7 Sep 2005 14:24:01 +0000 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) |
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").