From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#20741: 24.4; flyspell doesn't work with abbreviations ending in a period Date: Fri, 05 Jun 2015 15:06:40 +0100 Message-ID: <87pp5az1u7.fsf@sc3d.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1433513330 28414 80.91.229.3 (5 Jun 2015 14:08:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 14:08:50 +0000 (UTC) To: 20741@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 16:08:36 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0sI9-0002HW-2B for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 16:08:13 +0200 Original-Received: from localhost ([::1]:47529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0sI8-00029d-Et for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 10:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0sI2-00028Q-Hv for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:08:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0sHz-0003s1-54 for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:08:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0sHz-0003rs-1e for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0sHy-0004Ib-Fx for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jun 2015 14:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143351322616440 (code B ref -1); Fri, 05 Jun 2015 14:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jun 2015 14:07:06 +0000 Original-Received: from localhost ([127.0.0.1]:41846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0sH3-0004H5-6w for submit@debbugs.gnu.org; Fri, 05 Jun 2015 10:07:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56443) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0sGz-0004GX-0l for submit@debbugs.gnu.org; Fri, 05 Jun 2015 10:07:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0sGo-0003hD-Ay for submit@debbugs.gnu.org; Fri, 05 Jun 2015 10:06:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0sGo-0003h9-7P for submit@debbugs.gnu.org; Fri, 05 Jun 2015 10:06:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0sGm-0001yt-3h for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:06:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0sGi-0003fl-Na for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:06:48 -0400 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:35227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0sGi-0003fK-4M for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 10:06:44 -0400 Original-Received: by wgme6 with SMTP id e6so57729432wgm.2 for ; Fri, 05 Jun 2015 07:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=cYU7ot4OyIxcqP5FbrGjVq/fb3bV/ZNC1LwfQBxfB7o=; b=3hbGPnlfyO4C+Qq0QTMXM5JS5RcT/fQswvScB+30V/7ZTaYNULyiEEKgxJtdSVLWF+ 5GO8lL9ZI6zt/NnYCEFoJQVrgKQ9QESJpp7F9lf9hzWON82adbfGMnOESOsTYNQevoli PR4VZTybYm3coHF9EFGZTCF6OtVs2psUOcrM8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=cYU7ot4OyIxcqP5FbrGjVq/fb3bV/ZNC1LwfQBxfB7o=; b=BNRbH51Iz9betn3lBwXLTsjNETf/M9eQqiWtUHviLlSUZlu3hN6gaGWKgrpjbJQ55Q 1+X3bPL4JAXTVaZuXN/6Rto6RAumT7tu1iU/NlppVnmpyOKMrFVvQ8wrJ56EcPXJm5Jt Hj670X4gU/PRY5WqQYejEQFwPN6PJT2w3Deopw01yaKF26k6yirSBzW9jg7pUYz0sKjI 3p4S71J6LxEELg5iARp7JFVXoVigLwf79OaV/z734i3K0OGE1jqKQDZs3PXewIF2fcdE soMn6aMZ+AQq6EfS7L2lzsp1zxRP0knLNn01a5DPlSiqzI8DEm9tGN4K3wDDa3CRGwm1 XUeg== X-Gm-Message-State: ALoCoQmf0BCkCMeMKnf59Wx2sDCdcM0BIGn7lJb46PzVhZO74qNXQcFhOdI8xzJDd4LzmEUxz9mj X-Received: by 10.180.78.136 with SMTP id b8mr61516584wix.44.1433513202764; Fri, 05 Jun 2015 07:06:42 -0700 (PDT) Original-Received: from skwd ([2.216.216.26]) by mx.google.com with ESMTPSA id v3sm3591118wiz.14.2015.06.05.07.06.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Jun 2015 07:06:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103614 Archived-At: flyspell marks as incorrect =E2=80=9Cetc.=E2=80=9D, =E2=80=9Ci.e.=E2=80=9D,= =E2=80=9Ce.g.=E2=80=9D &c. flyspell is of course behaving as expected: =E2=80=9C.=E2=80=9D is in OTHER= CHARS, and as it comes after the word, it is not included. ispell sets my default dictionary to en_GB (from my locale, I presume), and I=E2=80=99m using hunspell. If I run ispell-buffer on a buffer containing the above words, they pass, which is surprising in that it seems that the OTHERCHARS specification has not been applied in this case. It is not surprising in the sense that these definitions are in my dictionary. The somewhat nonsensical result is that if I run ispell-word on such a word marked incorrect by flyspell, the first correction offered is the word I already have, plus a period. If I select it, the net effect is that an extra period is inserted, and flyspell complains again. I tried to move =E2=80=9C.=E2=80=9D to CASECHARS and NOT-CASECHARS in a cus= tom dictionary definition: ("en_GB" "[[:alpha:].]" "[^[:alpha:].]" "['0-9=E2=80=99-]" t ("-d" "en_GB") nil utf-8) but this causes flyspell to give an error saying it got nil where it expected a stringp in its post-command-hook. In any case, I guess this would not do what I wanted without adding an inflexion rule to the dictionary that allowed any word to add =E2=80=9C.=E2=80=9D (except, ideall= y, a word that already ends in a period). In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2014-11-21 on skwd, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.2 LTS Configured using: `configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= .4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-li= sp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= .4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-li= sp:/usr/share/emacs/site-lisp --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dlocal locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: TeX-PDF-mode: t TeX-source-correlate-mode: t shell-dirtrack-mode: t paredit-mode: t show-paren-mode: t savehist-mode: t minibuffer-electric-default-mode: t icomplete-mode: t global-auto-revert-mode: t desktop-save-mode: t bug-reference-prog-mode: t global-undo-tree-mode: t undo-tree-mode: t global-whitespace-mode: t ido-everywhere: t dtrt-indent-mode: t global-auto-complete-mode: t auto-complete-mode: t eldoc-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent input: C-x b A g C-n C-n C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-p C-p C-p C-p C-p C-p C-p=20 C-p C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-p=20 C-b C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-x b * N M e s s C-r f=20 g g l C-a C-x b C-x b c u s t =20 C-a =20 =20 M-x r e p o r t - e m a c s - b u g=20 Recent messages: Applying style hooks... done Applying style hooks... done Applying style hooks... done Applying style hooks... done Wrote /home/rrt/.emacs.desktop.lock Desktop: 4 frames, 16 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. call-interactively: End of buffer [18 times] Mark saved where search started Mark set Load-path shadows: /home/rrt/.emacs.d/el-get/xrdb-mode/xrdb-mode hides /usr/share/emacs24/site= -lisp/emacs-goodies-el/xrdb-mode /home/rrt/.emacs.d/el-get/csv-mode/csv-mode hides /usr/share/emacs24/site-l= isp/emacs-goodies-el/csv-mode /home/rrt/.emacs.d/el-get/quack/quack hides /usr/share/emacs24/site-lisp/em= acs-goodies-el/quack /home/rrt/.emacs.d/el-get/markdown-mode/markdown-mode hides /usr/share/emac= s24/site-lisp/emacs-goodies-el/markdown-mode /home/rrt/.emacs.d/el-get/filladapt/filladapt hides /usr/share/emacs24/site= -lisp/emacs-goodies-el/filladapt /home/rrt/.emacs.d/el-get/graphviz-dot-mode/graphviz-dot-mode hides /usr/sh= are/emacs24/site-lisp/emacs-goodies-el/graphviz-dot-mode /home/rrt/.emacs.d/el-get/browse-kill-ring/browse-kill-ring hides /usr/shar= e/emacs24/site-lisp/emacs-goodies-el/browse-kill-ring /home/rrt/.emacs.d/el-get/apache-mode/apache-mode hides /usr/share/emacs24/= site-lisp/emacs-goodies-el/apache-mode /usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup /home/rrt/.local/share/emacs/site-lisp/lilypond-mode hides /usr/share/emacs= /site-lisp/lilypond-mode /home/rrt/.local/share/emacs/site-lisp/lilypond-what-beat hides /usr/share/= emacs/site-lisp/lilypond-what-beat /usr/share/emacs/24.4/site-lisp/cdargs hides /usr/share/emacs/site-lisp/cda= rgs /home/rrt/.emacs.d/el-get/cmake-mode/cmake-mode hides /usr/share/emacs/site= -lisp/cmake-mode /home/rrt/.local/share/emacs/site-lisp/lilypond-init hides /usr/share/emacs= /site-lisp/lilypond-init /home/rrt/.local/share/emacs/site-lisp/lilypond-song hides /usr/share/emacs= /site-lisp/lilypond-song /home/rrt/.local/share/emacs/site-lisp/lilypond-indent hides /usr/share/ema= cs/site-lisp/lilypond-indent /home/rrt/.local/share/emacs/site-lisp/lilypond-font-lock hides /usr/share/= emacs/site-lisp/lilypond-font-lock /home/rrt/.local/share/emacs/site-lisp/whitespace hides /usr/share/emacs/24= .4/lisp/whitespace /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/em= acs/24.4/lisp/textmodes/ispell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.4/lisp/textmodes/r= st /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/24.4/lisp/textmodes/flyspell /home/rrt/.emacs.d/el-get/flymake/flymake hides /usr/share/emacs/24.4/lisp/= progmodes/flymake /home/rrt/.emacs.d/el-get/cperl-mode/cperl-mode hides /usr/share/emacs/24.4= /lisp/progmodes/cperl-mode Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail mail-utils misearch multi-isearch mule-util plain-tex gitignore-mode conf-mode latexenc preview prv-emacs tex-buf font-latex latex tex-style tex dbus xml crm tex-mode shell yaml-mode tern url-http tls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw json js3-mode imenu js3-parse js3-browse js3-highlight js3-ast js3-messages js3-scan js3-util js3-vars cc-langs js3-externs adaptive-wrap window-margin face-remap flyspell ispell goto-addr smart-quotes org-element org-indent org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m flymake compile paredit info tex-site sws-mode-autoloads server paren savehist minibuf-eldef icomplete autorevert filenotify desktop frameset cus-start cus-load iimage org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs go-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap ffap thingatpt url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-vars dired-x bug-reference-github bug-reference vc-git undo-tree diff whitespace locate yasnippet derived po-mode php-mode etags ring cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs speedbar sb-image ezimage dframe init-paredit ido-hacks ido magit-autoloads geiser-load geiser flymake-point filladapt dtrt-indent csv auto-complete-config auto-complete edmacro kmacro popup init-eldoc eldoc-extension cl-macs advice eldoc .loaddefs eieio byte-opt eieio-core el-get el-get-autoloading el-get-list-packages el-get-dependencies el-get-build el-get-status pp el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-go el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-notify help-mode easymenu el-get-emacsmirror el-get-github el-get-git el-get-elpa package epg-config el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-recipes el-get-byte-compile el-get-custom el-get-core autoload help-fns lisp-mnt bytecomp byte-compile cconv cl gv cl-loaddefs cl-lib dired user-site-loaddefs debian-el debian-el-loaddefs emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el dpkg-dev-el-loaddefs devhelp time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 603598 45229) (symbols 48 50761 0) (miscs 40 267 443) (strings 32 171824 23445) (string-bytes 1 5482137) (vectors 16 49781) (vector-slots 8 1578059 70586) (floats 8 291 310) (intervals 56 3314 78) (buffers 960 28) (heap 1024 62706 2723)) --=20 http://rrt.sc3d.org/