GNU bug report logs -
#32758
26.1 emacs-mac 7.2; forward-sentence in eww overshoots to paragraph ending
Previous Next
Reported by: Van L <van <at> scratch.space>
Date: Tue, 18 Sep 2018 10:58:02 UTC
Severity: minor
Tags: wontfix
Found in version 26.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32758 in the body.
You can then email your comments to 32758 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Tue, 18 Sep 2018 10:58:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Van L <van <at> scratch.space>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 18 Sep 2018 10:58:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello.
I use eww-mode to visit a webpage, such as,
http://www.oxforddnb.com/view/10.1093/ref:odnb/9780198614128.001.0001/odnb-9780198614128-e-52566
I press 'R to have the page more readable.
When I press the key M-e for the command forward-sentence ; I expect to have the point goto the end of that sentence.
It overshoots to the end of the paragraph.
The point is a the second character of the first sentence of a five sentence paragraph. I type M-e and point jumps to the period at the end of the last sentence and one more position further.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Tue, 18 Sep 2018 11:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> From: Van L <van <at> scratch.space>
> Date: Tue, 18 Sep 2018 20:56:50 +1000
>
> I use eww-mode to visit a webpage, such as,
>
> http://www.oxforddnb.com/view/10.1093/ref:odnb/9780198614128.001.0001/odnb-9780198614128-e-52566
>
> I press 'R to have the page more readable.
>
> When I press the key M-e for the command forward-sentence ; I expect to have the point goto the end of that sentence.
>
> It overshoots to the end of the paragraph.
With that page's text, you should set sentence-end-double-space to
nil, to have the behavior you want.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Tue, 18 Sep 2018 12:18:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> With that page's text, you should set sentence-end-double-space to
> nil, to have the behavior you want.
Can Emacs be smartish about sentence-end spacing? look at the periods and spaces between sentences in a paragraph and interpret according to use which is common in the wild wild web. If I do according to the suggestion won’t I miss out on double space endings between sentences? I want all possible worlds.
I should have posted this to help-emacs first.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Tue, 18 Sep 2018 13:18:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> From: Van L <van <at> scratch.space>
> Date: Tue, 18 Sep 2018 22:17:01 +1000
> Cc: 32758 <at> debbugs.gnu.org
>
> Can Emacs be smartish about sentence-end spacing? look at the periods and spaces between sentences in a paragraph and interpret according to use which is common in the wild wild web.
It would need some statistical analysis of the text and guesswork
based on that, but I don't see why that would be impossible. Patches
welcome.
> If I do according to the suggestion won’t I miss out on double space endings between sentences?
No, but you might "acquire" sentences where there are none, such as 3
of them in "J. R. Hacker".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Wed, 19 Sep 2018 11:58:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> It would need some statistical analysis of the text and guesswork
> based on that, but I don't see why that would be impossible. Patches
> welcome.
Double spaced sentence-endings are actually easier to read.
Is the 'R command for eww-readable easier work to have double spaced sentence-endings?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Wed, 19 Sep 2018 12:19:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> From: Van L <van <at> scratch.space>
> Date: Wed, 19 Sep 2018 21:57:50 +1000
> Cc: 32758 <at> debbugs.gnu.org
>
>
> > It would need some statistical analysis of the text and guesswork
> > based on that, but I don't see why that would be impossible. Patches
> > welcome.
>
> Double spaced sentence-endings are actually easier to read.
We are not going to change the defaults, so this is not necessarily an
argument against such a feature.
> Is the 'R command for eww-readable easier work to have double spaced sentence-endings?
I don't think it matters, but I don't know EWW well enough to say
definitively.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Sun, 07 Oct 2018 11:01:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 32758 <at> debbugs.gnu.org (full text, mbox):
>>> 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
└────
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Sun, 07 Oct 2018 14:48:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> From: Van L <van <at> scratch.space>
> Date: Sun, 7 Oct 2018 22:00:11 +1100
> Cc: 32758 <at> debbugs.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?
Sorry, I don't understand the proposal. Can you show a patch?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Mon, 08 Oct 2018 00:04:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> Can you show a patch?
The question was is here the place to put the patch for the expected function to forward-sentence when in an eww buffer in read mode where sentences are single spaced. This is the runup to locating a patch to be made.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Sat, 13 Oct 2018 09:30:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 32758 <at> debbugs.gnu.org (full text, mbox):
> From: Van L <van <at> scratch.space>
> Date: Mon, 8 Oct 2018 11:02:55 +1100
> Cc: 32758 <at> debbugs.gnu.org
>
>
> > Can you show a patch?
>
> The question was is here the place to put the patch for the expected function to forward-sentence when in an eww buffer in read mode where sentences are single spaced. This is the runup to locating a patch to be made.
The place to make the change is indeed in paragraphs.el. But you were
also talking about a variable sentence-end-single-space, which doesn't
exist, and I don't have a clear idea what kind of changes in the
regexps used by sentence-end did you have in mind.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32758
; Package
emacs
.
(Mon, 13 May 2019 18:13:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 32758 <at> debbugs.gnu.org (full text, mbox):
I don't really see this is as something that eww should be meddling
with -- it's up to the user to decide what they want to consider a
sentence end.
It might perhaps be nice if there was a different setting for this in,
say, all special-mode buffers (as opposed to editing modes), so perhaps
a new bug report should be opened for that if somebody feels that that's
a good idea, but I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 13 May 2019 18:13:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
32758 <at> debbugs.gnu.org and Van L <van <at> scratch.space>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 13 May 2019 18:13:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 11 Jun 2019 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 13 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.