From: Alan Mackenzie <acm@muc.de>
Subject: Re: Why does 'M-a' not move to the beginning of the sentence?
Date: Wed, 7 Sep 2005 14:24:01 +0000 [thread overview]
Message-ID: <16tmfd.j8.ln@acm.acm> (raw)
In-Reply-To: mailman.6156.1126087308.20277.help-gnu-emacs@gnu.org
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").
next prev parent reply other threads:[~2005-09-07 14:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
2005-09-07 9:08 Henrik Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16tmfd.j8.ln@acm.acm \
--to=acm@muc.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).