all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* M-k
@ 2009-07-06 20:36 Sean Sieger
  0 siblings, 0 replies; 4+ messages in thread
From: Sean Sieger @ 2009-07-06 20:36 UTC (permalink / raw)
  To: help-gnu-emacs

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.

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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: M-k
       [not found] <mailman.1944.1246912627.2239.help-gnu-emacs@gnu.org>
@ 2009-07-07  2:55 ` Barry Margolin
  2009-07-07  6:44 ` M-k harven
  1 sibling, 0 replies; 4+ messages in thread
From: Barry Margolin @ 2009-07-07  2:55 UTC (permalink / raw)
  To: help-gnu-emacs

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 ***


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: M-k
       [not found] <mailman.1944.1246912627.2239.help-gnu-emacs@gnu.org>
  2009-07-07  2:55 ` M-k Barry Margolin
@ 2009-07-07  6:44 ` harven
  2009-07-07 21:10   ` M-k Sean Sieger
  1 sibling, 1 reply; 4+ messages in thread
From: harven @ 2009-07-07  6:44 UTC (permalink / raw)
  To: help-gnu-emacs

Sean Sieger <sean.sieger@gmail.com> writes:

> 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.
>
> 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?

May be zap-to-char ?
M-z . 
This kills from point to first .

\begin{environment}[This is the sentence I want to kill.]{and so on}
gives
\begin{environment}[]{and so on}



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: M-k
  2009-07-07  6:44 ` M-k harven
@ 2009-07-07 21:10   ` Sean Sieger
  0 siblings, 0 replies; 4+ messages in thread
From: Sean Sieger @ 2009-07-07 21:10 UTC (permalink / raw)
  To: help-gnu-emacs

harven <harven@free.fr> writes:

    M-z . 

    This kills from point to first .

Thank you!





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-07 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1944.1246912627.2239.help-gnu-emacs@gnu.org>
2009-07-07  2:55 ` M-k Barry Margolin
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

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.