help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forward-sentence


From: Sean Sieger
Subject: Re: forward-sentence
Date: Wed, 08 Dec 2010 19:31:02 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

"Drew Adams" <drew.adams@oracle.com> writes:

    Hi Sean,

    > If the desire is to edit the end of a sentence,

    I don't think it is.  The desire is to move forward by one or more
    sentences.

    When you use M-f is the desire necessarily to edit the last char in
    the symbol name?

Nope.  And that's why I dig that it puts point at the /end/ of that
word ... symbol.

    > why is it that M-e moves point past the punctuation?

    The punctuation is part of the sentence.  M-e moves past the
    sentence.

Nope.  The syntactical unit is the sentence.  The words (um, period).

    > To my way of thinking, there is a disjunction between say M-f and M-e;
    > between M-b and M-a.  Do 'em.  Doesn't it bug you?  Bugs me.

    No, I don't see any discrepancy.  M-f moves past the symbol; M-e
    moves past the sentence.  M-b moves to the beginning of the symbol;
    M-a moves to the beginning of the sentence.

    C-h k M-a

    ...Move backward to start of sentence.

Uh-huh.  In the case of the first sentence of a paragraph, to the
_line_---the stinkin' white space between two paragraphs.  The beginning
of a sentence??  No.

In the case of a sentence in the midst of a paragraph it Does the Right
Thing.  Hmmm.  Drew, ya with me?  If I then wanted to construct a
sentence, I could; if I wanted to add to the beginning of the one I just
went to the front of, well then I maybe do M-l and bang away.  Anyway:

    C-h k M-e

    ...Move forward to next end of sentence.

    The latter could be better with "past" instead of "to", but either can be
    correct depending on what is meant by "end of sentence".  (I would prefer
    "past".)

You're so with me, Drew.

    If you follow the link for variable `sentence-end' (which presumably
    determines what is meant by "end of sentence"), and then you follow
    the link from there for function `sentence-end" (whew!), you finally
    get to the regexp that defines the end of a sentence in the current
    context.  This regexp shows that "end of sentence" includes any
    whitespace after the punctuation, so "to next end of sentence" is
    strictly correct here.  But I would still think that "past" would be
    better than "to" here, relying on an ordinary, informal
    understanding of "end of sentence", which does not include trailing
    whitespace.

Right?  Thank you for your reality check.  [Whoops, M-a, M-e (Damn!),
C-b , Drew.]

Perception.  Denomination.  'Member the scrolling threads?  Oh, the
scrolling threads.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]