bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32758: 26.1 emacs-mac 7.2; forward-sentence in eww overshoots to par


From: Van L
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

>>> 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  
  └────






reply via email to

[Prev in Thread] Current Thread [Next in Thread]