From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Why does 'M-a' not move to the beginning of the sentence? Date: Wed, 7 Sep 2005 14:24:01 +0000 Organization: muc.de e.V. -- private internet access Message-ID: <16tmfd.j8.ln@acm.acm> References: <431eb51f$0$18641$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1126103917 24345 80.91.229.2 (7 Sep 2005 14:38:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2005 14:38:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 07 16:38:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ED11a-0007NA-56 for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Sep 2005 16:35:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ED167-000558-PH for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Sep 2005 10:40:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!news.uni-stuttgart.de!news.belwue.de!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1126102975 19082 193.149.49.134 (7 Sep 2005 14:22:55 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 7 Sep 2005 14:22:55 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:133752 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29297 Archived-At: Henrik Andersson 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").