unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tatsu Takamaro <tatsu.takamaro@gmail.com>
To: Drew Adams <drew.adams@oracle.com>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: [External] : Q2 - moving by sentences and what is considered to be a sentence
Date: Tue, 17 Dec 2024 00:39:22 +0300	[thread overview]
Message-ID: <d114e025-1979-9d2d-c6f0-e9220d3aeb8b@gmail.com> (raw)
In-Reply-To: <DS7PR10MB52320A8DEC21925B9D0C643EF33A2@DS7PR10MB5232.namprd10.prod.outlook.com>

Thank you. The

*'(sentence-end-double-space nil)*

in the *custom-set-variables* section did the job.

Of course, we have only one space between literary sentences, at least 
if we talk about a normal human text. I've never met another behaviour.

вс, 15.12.2024 5:10, Drew Adams пишет:
>> Commands "forward-sentence" and "backward-sentence" do not move by
>> sentences actually. I tried in both Text and Fundamental modes. If there
>> are two or more sentences in a line, they ignore the dot in the middle.
>> I guess it is somehow connected with an internal mode's settings (what
>> is considered to be a sentence). But it seems logical that when I'm in a
>> Text mode, a literary sentence should be treated as sentence, where a
>> dot sign (or ? or ! and so on) is a delimiter.
>>
>> How can I tell Emacs to treat sentences as literary sentences? At least
>> in a Text mode.
> Probably you have only one space character after the punctuation ending a sentence.  If so, and if you want to continue to do that, then customize user option `sentence-end-double-space' to give it the value `nil'.  Use `M-x customize-option' to do that.
>
>
> `C-h v' tells you this:
>
> sentence-end-double-space is a variable defined in `paragraphs.el'.
>
> Its value is t
>
>    This variable is safe as a file local variable if its value
>    satisfies the predicate `booleanp'.
>
> Documentation:
> Non-nil means a single space does not end a sentence.
> This is relevant for filling.  See also `sentence-end-without-period'
> and `colon-double-space'.
>
> This value is used by the function `sentence-end' to construct the
> regexp describing the end of a sentence, when the value of the variable
> `sentence-end' is nil.  See Info node `(elisp)Standard Regexps'.
>
> You can customize this variable.


  reply	other threads:[~2024-12-16 21:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-14 23:51 Q2 - Tatsu Takamaro
2024-12-15  2:10 ` [External] : " Drew Adams
2024-12-16 21:39   ` Tatsu Takamaro [this message]
2024-12-16 22:06     ` [External] : Q2 - moving by sentences and what is considered to be a sentence Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-15  7:16 ` Q2 - Yuri Khan
2024-12-16 21:46   ` Q2 - moving by sentences and what is considered to be a sentence Tatsu Takamaro

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=d114e025-1979-9d2d-c6f0-e9220d3aeb8b@gmail.com \
    --to=tatsu.takamaro@gmail.com \
    --cc=drew.adams@oracle.com \
    --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.
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).