unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Tatsu Takamaro <tatsu.takamaro@gmail.com>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Q2 -
Date: Sun, 15 Dec 2024 02:10:27 +0000	[thread overview]
Message-ID: <DS7PR10MB52320A8DEC21925B9D0C643EF33A2@DS7PR10MB5232.namprd10.prod.outlook.com> (raw)
In-Reply-To: <0cdeee8e-8e88-e895-4429-4c667db1e7e7@gmail.com>

> 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-15  2:10 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 ` Drew Adams [this message]
2024-12-16 21:39   ` [External] : Q2 - moving by sentences and what is considered to be a sentence Tatsu Takamaro
2024-12-16 22:06     ` 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=DS7PR10MB52320A8DEC21925B9D0C643EF33A2@DS7PR10MB5232.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tatsu.takamaro@gmail.com \
    /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).