From: Van L <van@scratch.space>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 32758@debbugs.gnu.org
Subject: bug#32758: 26.1 emacs-mac 7.2; forward-sentence in eww overshoots to paragraph ending
Date: Sun, 7 Oct 2018 22:00:11 +1100 [thread overview]
Message-ID: <A47956E0-E0BC-4C07-9191-DFC13AA46E47@scratch.space> (raw)
In-Reply-To: <83r2hpel3o.fsf@gnu.org>
>>> Patches
>>> welcome.
Will it be enough for a `sentence-end-single-space’ variable to go in paragraphs.el and to fit in the sentence-end function among the re-patterns lines 190 to 200?
25.3.1 Emacs paragraphs.el
netbsd-8.0
┌────
│ 178 (defun sentence-end ()
│ 179 "Return the regexp describing the end of a sentence.
│ 180
│ 181 This function returns either the value of the variable `sentence-end'
│ 182 if it is non-nil, or the default value constructed from the
│ 183 variables `sentence-end-base', `sentence-end-double-space',
│ 184 `sentence-end-without-period' and `sentence-end-without-space'.
│ 185
│ 186 The default value specifies that in order to be recognized as the
│ 187 end of a sentence, the ending period, question mark, or exclamation point
│ 188 must be followed by two spaces, with perhaps some closing delimiters
│ 189 in between. See Info node `(elisp)Standard Regexps'."
│ 190 (or sentence-end
│ 191 ;; We accept non-break space along with space.
│ 192 (concat (if sentence-end-without-period "\\w[ \u00a0][ \u00a0]\\|")
│ 193 "\\("
│ 194 sentence-end-base
│ 195 (if sentence-end-double-space
│ 196 "\\($\\|[ \u00a0]$\\|\t\\|[ \u00a0][ \u00a0]\\)" "\\($\\|[\t \u00a0]\\)")
│ 197 "\\|[" sentence-end-without-space "]+"
│ 198 "\\)"
│ 199 "[ \u00a0\t\n]*")))
│ 200
└────
next prev parent reply other threads:[~2018-10-07 11:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 10:56 bug#32758: 26.1 emacs-mac 7.2; forward-sentence in eww overshoots to paragraph ending Van L
2018-09-18 11:52 ` Eli Zaretskii
2018-09-18 12:17 ` Van L
2018-09-18 13:16 ` Eli Zaretskii
2018-09-19 11:57 ` Van L
2018-09-19 12:18 ` Eli Zaretskii
2018-10-07 11:00 ` Van L [this message]
2018-10-07 14:47 ` Eli Zaretskii
2018-10-08 0:02 ` Van L
2018-10-13 9:28 ` Eli Zaretskii
2019-05-13 18:12 ` Lars Ingebrigtsen
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=A47956E0-E0BC-4C07-9191-DFC13AA46E47@scratch.space \
--to=van@scratch.space \
--cc=32758@debbugs.gnu.org \
--cc=eliz@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).