From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter =?UTF-8?Q?M=C3=BCnster?= Newsgroups: gmane.emacs.bugs Subject: bug#7781: hunspell and latex-mode Date: Mon, 28 Apr 2014 20:27:31 +0200 Message-ID: <87vbtte2cs.fsf@micropit.couberia.selfip.net> References: <87sjx9fula.fsf@sc3d.org> <87y4yqh34e.fsf@micropit.couberia.selfip.net> <83eh0ho482.fsf@gnu.org> <87mwf5fmwt.fsf@micropit.couberia.selfip.net> <838uqpo0xr.fsf@gnu.org> <877g69fk5r.fsf@micropit.couberia.selfip.net> <837g69nyw4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1398709709 8012 80.91.229.3 (28 Apr 2014 18:28:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 18:28:29 +0000 (UTC) Cc: 7781@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 20:28:22 2014 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 1WeqHt-0006ha-UE for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 20:28:22 +0200 Original-Received: from localhost ([::1]:45371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeqHt-0006qj-D6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 14:28:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeqHi-0006hH-6X for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 14:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeqHa-0003gc-HW for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 14:28:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeqHa-0003gN-Dp for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 14:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WeqHZ-00049i-OX for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 14:28:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87sjx9fula.fsf@sc3d.org> Resent-From: Peter =?UTF-8?Q?M=C3=BCnster?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 18:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7781-submit@debbugs.gnu.org id=B7781.139870966215941 (code B ref 7781); Mon, 28 Apr 2014 18:28:01 +0000 Original-Received: (at 7781) by debbugs.gnu.org; 28 Apr 2014 18:27:42 +0000 Original-Received: from localhost ([127.0.0.1]:44101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeqHF-000492-OW for submit@debbugs.gnu.org; Mon, 28 Apr 2014 14:27:42 -0400 Original-Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:41804 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeqHD-00048h-Am for 7781@debbugs.gnu.org; Mon, 28 Apr 2014 14:27:40 -0400 Original-Received: from micropit.couberia.selfip.net ([2.2.212.209]) by mwinf5d09 with ME id vWTY1n00N4Xdq4q03WTYYq; Mon, 28 Apr 2014 20:27:33 +0200 X-ME-Helo: micropit.couberia.selfip.net X-ME-Auth: ZHJwbUB3YW5hZG9vLmZy X-ME-Date: Mon, 28 Apr 2014 20:27:33 +0200 X-ME-IP: 2.2.212.209 Original-Received: by micropit.couberia.selfip.net (Postfix, from userid 1000) id D2E0FA60C6C; Mon, 28 Apr 2014 20:27:31 +0200 (CEST) User-Agent: Gnus/5.13001 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.10) Emacs/24.4.50 (gnu/linux) 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:88374 Archived-At: --=-=-= Content-Type: text/plain On Mon, Apr 28 2014, Eli Zaretskii wrote: >> after switching to "M-x text-mode", there is no more problem. > > Maybe you should activate the debugging code in ispell.el and see what > is being submitted to hunspell and what it returns. Please find attached 2 debug-outputs, one with latex-mode and one with text-mode. Both are created with `ispell-buffer-with-debug'. Do you see, what is going on there? -- Peter --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=ispell-debug-latex.txt -- ispell-fhd: Skipping entry: SEARCH PATH: -- ispell-fhd: Skipping entry: .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/peter/.openoffice.org/3/user/wordbook:.openoffice.org2/user/wordbook:.openoffice.org2.0/user/wordbook:Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo -- ispell-fhd: Skipping entry: AVAILABLE DICTIONARIES (path is not mandatory for -d option): ++ ispell-fhd: dict-entry:/usr/share/myspell/fr_FR name:fr_FR basename:fr_FR affix-file:/usr/share/myspell/fr_FR.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/en_US name:en_US basename:en_US affix-file:/usr/share/myspell/en_US.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/es_ES name:es_ES basename:es_ES affix-file:/usr/share/myspell/es_ES.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/en_GB name:en_GB basename:en_GB affix-file:/usr/share/myspell/en_GB.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/de_DE name:de_DE basename:de_DE affix-file:/usr/share/myspell/de_DE.aff -- ispell-fhd: Skipping entry: LOADED DICTIONARY: -- ispell-fhd: Skipping entry: /usr/share/myspell/en_US.dic -- ispell-fhd: Skipping entry: Hunspell 1.3.2 ++ ispell-fhd: Adding alias german8 -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias german -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias francais -> /usr/share/myspell/fr_FR.aff. ++ ispell-fhd: Adding alias english -> /usr/share/myspell/en_US.aff. ++ ispell-fhd: Adding alias deutsch8 -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias deutsch -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias castellano8 -> /usr/share/myspell/es_ES.aff. ++ ispell-fhd: Adding alias castellano -> /usr/share/myspell/es_ES.aff. ++ ispell-fhd: Adding alias british -> /usr/share/myspell/en_GB.aff. ++ ispell-fhd: Adding alias american -> /usr/share/myspell/en_US.aff. ispell-region: (ispell-skip-region-list): ((\\addcontentsline ispell-tex-arg-end 2) (\\add\(tocontents\|vspace\) ispell-tex-arg-end) (\\\([aA]lph\|arabic\) ispell-tex-arg-end) (\\bibliographystyle ispell-tex-arg-end) (\\makebox ispell-tex-arg-end 0) (\\e?psfig ispell-tex-arg-end) (\\document\(class\|style\) . \\begin[ ]*{[ ]*document[ ]*}) (\(figure\|table\)\*? ispell-tex-arg-end 0) (list ispell-tex-arg-end 2) (program . \\end[ ]*{[ ]*program[ ]*}) (verbatim\*? . \\end[ ]*{[ ]*verbatim\*?[ ]*}) (ispell-words-keyword forward-line) (ispell-dictionary-keyword forward-line) (ispell-pdict-keyword forward-line) (ispell-parsing-keyword forward-line) (^---*BEGIN PGP [A-Z ]*--* . ^---*END PGP [A-Z ]*--*) (^begin [0-9][0-9][0-9] [^ ]+$ . end ) (^%!PS-Adobe-[123].0 . %%EOF ) (^---* \(Start of \)?[Ff]orwarded [Mm]essage . ^---* End of [Ff]orwarded [Mm]essage) (\(--+\|_+\|\(/\w\|\(\(\w\|[-_]\)+[.:@]\)\)\(\w\|[-_]\)*\([.:/@]+\(\w\|[-_~=?&]\)+\)+\))) ispell-region: (ispell-begin-skip-region-regexp): \\addcontentsline\|\\add\(tocontents\|vspace\)\|\\\([aA]lph\|arabic\)\|\\bibliographystyle\|\\makebox\|\\e?psfig\|\\document\(class\|style\)\|\\begin[ ]*{[ ]*\(figure\|table\)\*?[ ]*}\|\\begin[ ]*{[ ]*list[ ]*}\|\\begin[ ]*{[ ]*program[ ]*}\|\\begin[ ]*{[ ]*verbatim\*?[ ]*}\|LocalWords: \|Local IspellDict: \|Local IspellPersDict: \|Local IspellParsing: \|^---*BEGIN PGP [A-Z ]*--*\|^begin [0-9][0-9][0-9] [^ ]+$\|^%!PS-Adobe-[123].0\|^---* \(Start of \)?[Ff]orwarded [Mm]essage\|\(--+\|_+\|\(/\w\|\(\(\w\|[-_]\)+[.:@]\)\)\(\w\|[-_]\)*\([.:/@]+\(\w\|[-_~=?&]\)+\)+\) ispell-region: Search for first region to skip after (ispell-begin-skip-region-regexp) ispell-region: First skip: \documentclass at (pos,line,column): (1,1,0). ispell-region: Continue spell-checking with hunspell and default dictionary... ispell-region: string pos (41->41), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (42->45), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [^bla ] ispell-process-line: Ispell misalignment error: [Word from ispell pipe]: [bla], actual (point,line,column): (41,2,16) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=ispell-debug-text.txt -- ispell-fhd: Skipping entry: SEARCH PATH: -- ispell-fhd: Skipping entry: .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/peter/.openoffice.org/3/user/wordbook:.openoffice.org2/user/wordbook:.openoffice.org2.0/user/wordbook:Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo -- ispell-fhd: Skipping entry: AVAILABLE DICTIONARIES (path is not mandatory for -d option): ++ ispell-fhd: dict-entry:/usr/share/myspell/fr_FR name:fr_FR basename:fr_FR affix-file:/usr/share/myspell/fr_FR.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/en_US name:en_US basename:en_US affix-file:/usr/share/myspell/en_US.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/es_ES name:es_ES basename:es_ES affix-file:/usr/share/myspell/es_ES.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/en_GB name:en_GB basename:en_GB affix-file:/usr/share/myspell/en_GB.aff ++ ispell-fhd: dict-entry:/usr/share/myspell/de_DE name:de_DE basename:de_DE affix-file:/usr/share/myspell/de_DE.aff -- ispell-fhd: Skipping entry: LOADED DICTIONARY: -- ispell-fhd: Skipping entry: /usr/share/myspell/en_US.dic -- ispell-fhd: Skipping entry: Hunspell 1.3.2 ++ ispell-fhd: Adding alias german8 -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias german -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias francais -> /usr/share/myspell/fr_FR.aff. ++ ispell-fhd: Adding alias english -> /usr/share/myspell/en_US.aff. ++ ispell-fhd: Adding alias deutsch8 -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias deutsch -> /usr/share/myspell/de_DE.aff. ++ ispell-fhd: Adding alias castellano8 -> /usr/share/myspell/es_ES.aff. ++ ispell-fhd: Adding alias castellano -> /usr/share/myspell/es_ES.aff. ++ ispell-fhd: Adding alias british -> /usr/share/myspell/en_GB.aff. ++ ispell-fhd: Adding alias american -> /usr/share/myspell/en_US.aff. ispell-region: (ispell-skip-region-list): ((ispell-words-keyword forward-line) (ispell-dictionary-keyword forward-line) (ispell-pdict-keyword forward-line) (ispell-parsing-keyword forward-line) (^---*BEGIN PGP [A-Z ]*--* . ^---*END PGP [A-Z ]*--*) (^begin [0-9][0-9][0-9] [^ ]+$ . end ) (^%!PS-Adobe-[123].0 . %%EOF ) (^---* \(Start of \)?[Ff]orwarded [Mm]essage . ^---* End of [Ff]orwarded [Mm]essage) (\(--+\|_+\|\(/\w\|\(\(\w\|[-_]\)+[.:@]\)\)\(\w\|[-_]\)*\([.:/@]+\(\w\|[-_~=?&]\)+\)+\))) ispell-region: (ispell-begin-skip-region-regexp): LocalWords: \|Local IspellDict: \|Local IspellPersDict: \|Local IspellParsing: \|^---*BEGIN PGP [A-Z ]*--*\|^begin [0-9][0-9][0-9] [^ ]+$\|^%!PS-Adobe-[123].0\|^---* \(Start of \)?[Ff]orwarded [Mm]essage\|\(--+\|_+\|\(/\w\|\(\(\w\|[-_]\)+[.:@]\)\)\(\w\|[-_]\)*\([.:/@]+\(\w\|[-_~=?&]\)+\)+\) ispell-region: Search for first region to skip after (ispell-begin-skip-region-regexp) ispell-region: Continue spell-checking with hunspell and default dictionary... ispell-region: string pos (1->24), eol: 24, [in-comment]: [nil], [add-comment]: [nil], [string]: [^\documentclass{article} ] ispell-region: string pos (24->24), eol: 41, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (25->41), eol: 41, [in-comment]: [nil], [add-comment]: [nil], [string]: [^\begin{document} ] ispell-region: string pos (41->41), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (42->45), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [^bla ] ispell-region: string pos (45->45), eol: 60, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (46->60), eol: 60, [in-comment]: [nil], [add-comment]: [nil], [string]: [^\end{document} ] ispell-region: string pos (60->60), eol: 61, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] --=-=-=--