all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: M-k
Date: Mon, 06 Jul 2009 22:55:40 -0400	[thread overview]
Message-ID: <barmar-3ADE5D.22554006072009@news.eternal-september.org> (raw)
In-Reply-To: mailman.1944.1246912627.2239.help-gnu-emacs@gnu.org

In article <mailman.1944.1246912627.2239.help-gnu-emacs@gnu.org>,
 Sean Sieger <sean.sieger@gmail.com> wrote:

> In 29.2 of the GNU/Emacs Manual,
> 
>    The sentence commands assume that you follow the American typist's
> convention of putting two spaces at the end of a sentence; they consider
> a sentence to end wherever there is a `.', `?' or `!' followed by the
> end of a line or two spaces, with any number of `)', `]', `'', or `"'
> characters allowed in between.

If you set sentence-end-double-space to nil, a single space after the 
period is enough.  The problem with this is that it can't tell the 
difference between the period used in an abbreviation and the period 
that ends a sentence.  E.g. "Mr. Spock." is two sentences.

> 
> Is there any `cure' for when I'm editing arguments in a LaTeX file and I
> want to use either `M-k' or `C-x <DEL>'?
> 
> Take
> 
> \begin{environment}[This is the sentence I want to kill.]{and so on}
> 
> for example, I get this:
> 
> \begin{environment}[
> 
> right?  Any suggestions?

I don't know of a way to recognize sentences that don't have ANY space 
after them, other than customizing the variable sentence-end-regexp 
directly.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


       reply	other threads:[~2009-07-07  2:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1944.1246912627.2239.help-gnu-emacs@gnu.org>
2009-07-07  2:55 ` Barry Margolin [this message]
2009-07-07  6:44 ` M-k harven
2009-07-07 21:10   ` M-k Sean Sieger
2009-07-06 20:36 M-k Sean Sieger

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-3ADE5D.22554006072009@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.