GNU bug report logs - #32758
26.1 emacs-mac 7.2; forward-sentence in eww overshoots to paragraph ending

Previous Next

Package: emacs;

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.

Full log


Message #23 received at 32758 <at> debbugs.gnu.org (full text, mbox):

From: Van L <van <at> scratch.space>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 32758 <at> debbugs.gnu.org
Subject: Re: 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
>>> 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  
  └────





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.