From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Van L Newsgroups: gmane.emacs.help Subject: FW: bug#32758: 26.1 emacs-mac 7.2; forward-sentence in eww Date: Wed, 10 Oct 2018 21:17:14 +1100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539166571 11271 195.159.176.226 (10 Oct 2018 10:16:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 10:16:11 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 10 12:16:06 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gABXB-0002pr-GG for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 12:16:05 +0200 Original-Received: from localhost ([::1]:56383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gABZH-0001XM-VB for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 06:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gABYd-0001X5-MY for help-gnu-emacs@gnu.org; Wed, 10 Oct 2018 06:17:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gABYa-0007nA-FP for help-gnu-emacs@gnu.org; Wed, 10 Oct 2018 06:17:35 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:44197) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gABYW-0007YO-Me for help-gnu-emacs@gnu.org; Wed, 10 Oct 2018 06:17:29 -0400 X-Originating-IP: 220.244.158.222 Original-Received: from epi.local (220-244-158-222.tpgi.com.au [220.244.158.222]) (Authenticated sender: van@scratch.space) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 94B2C60003 for ; Wed, 10 Oct 2018 10:17:19 +0000 (UTC) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118235 Archived-At: Hello, I am looking for a one-space after punctuation sentence-ending for M-e = to jump by. Disabling the following variable stops short at Nov. or Gov. (see below)=20= =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (setq sentence-end-double-space nil) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 Haley=E2=80=99s departure also stoked speculation she could = replace Lindsey Graham as the senator from =E2=94=82 South Carolina, a possibility that Trump played down. Talk in = Washington is that should Trump =E2=94=82 replace Attorney General Jeff Sessions with Graham after the = Nov. 6 congressional elections, =E2=94=82 South Carolina Gov. Henry McMaster would be responsible for = selecting a replacement to serve =E2=94=82 until the 2020 election. McMaster was previously Haley=E2=80=99s= No. 2 in the state. =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 and I=E2=80=99m aware of names like A. B. C. Nurmagomedov which will = stop early, too. What rules specify an almost perfect spot for the end of a sentence = followed by single space?; to fit in the sentence-end function.=20 Is WordNet useful for this? https://en.wikipedia.org/wiki/Wordnet =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 178 (defun sentence-end () =E2=94=82 179 "Return the regexp describing the end of a sentence. =E2=94=82 180 =20 =E2=94=82 181 This function returns either the value of the variable = `sentence-end' =E2=94=82 182 if it is non-nil, or the default value constructed from = the =E2=94=82 183 variables `sentence-end-base', = `sentence-end-double-space', =E2=94=82 184 `sentence-end-without-period' and = `sentence-end-without-space'. =E2=94=82 185 =20 =E2=94=82 186 The default value specifies that in order to be = recognized as the =E2=94=82 187 end of a sentence, the ending period, question mark, or = exclamation point =E2=94=82 188 must be followed by two spaces, with perhaps some closing = delimiters =E2=94=82 189 in between. See Info node `(elisp)Standard Regexps'." =E2=94=82 190 (or sentence-end =E2=94=82 191 ;; We accept non-break space along with space. =E2=94=82 192 (concat (if sentence-end-without-period "\\w[ = \u00a0][ \u00a0]\\|") =E2=94=82 193 "\\(" =E2=94=82 194 sentence-end-base =E2=94=82 195 (if sentence-end-double-space =E2=94=82 196 "\\($\\|[ \u00a0]$\\|\t\\|[ \u00a0][ = \u00a0]\\)" "\\($\\|[\t \u00a0]\\)") =E2=94=82 197 "\\|[" sentence-end-without-space "]+" =E2=94=82 198 "\\)" =E2=94=82 199 "[ \u00a0\t\n]*"))) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80