From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Alice Newsgroups: gmane.emacs.bugs Subject: bug#25766: aspell problem in LaTeX mode Date: Sat, 18 Feb 2017 10:27:49 +0000 Message-ID: References: <8360k9xp0v.fsf@gnu.org> <83y3x5w1zy.fsf@gnu.org> <83wpcpvtbk.fsf@gnu.org> <83tw7srcx5.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1139cdf069203e0548cb7bed X-Trace: blaine.gmane.org 1487413694 18886 195.159.176.226 (18 Feb 2017 10:28:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2017 10:28:14 +0000 (UTC) Cc: 25766@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 11:28:07 2017 Return-path: Envelope-to: geb-bug-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 1cf2FK-0004O9-Fl for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 11:28:06 +0100 Original-Received: from localhost ([::1]:57927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf2FP-0003v5-SI for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 05:28:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf2FJ-0003un-3x for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 05:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cf2FF-0000Ux-Sy for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 05:28:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cf2FF-0000Uo-QD for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 05:28:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cf2FF-00057Z-Ke for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 05:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bob Alice Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2017 10:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25766-submit@debbugs.gnu.org id=B25766.148741367619647 (code B ref 25766); Sat, 18 Feb 2017 10:28:01 +0000 Original-Received: (at 25766) by debbugs.gnu.org; 18 Feb 2017 10:27:56 +0000 Original-Received: from localhost ([127.0.0.1]:44181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf2FA-00056o-FC for submit@debbugs.gnu.org; Sat, 18 Feb 2017 05:27:56 -0500 Original-Received: from mail-qt0-f178.google.com ([209.85.216.178]:35617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf2F9-00056c-5H for 25766@debbugs.gnu.org; Sat, 18 Feb 2017 05:27:55 -0500 Original-Received: by mail-qt0-f178.google.com with SMTP id x49so58129335qtc.2 for <25766@debbugs.gnu.org>; Sat, 18 Feb 2017 02:27:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=S8nDu6HYWjwrwcSDVpU80yClc9kaPK97jfNsbulgIRc=; b=MwAiVnK304LwxJARakYU0hTK3JZxBDKShlCuEeyg7HORSYwyBzTa3/a0NSAf8DDMTs J3Jdh6mToIsHNmf/a3rCzf14c/erFkPBJEntFq7A7V35nz7d3sSPV18ZdgsENJdz2qhn iFyL1n4hlY5BZ0DItuRj+b1mj3qb0akFgnlJaRHTmNEsXnh1iA7E0nY0hExmhTd48kqC kmJofXqkjwWgUWizKa+YNTDxCrHcf++fz9L7cDn03ZIcfsL+jIBVQoTjd1N1w3Fy/Prh hWiUfOTYB3phl9fOlrdQuMhhuxn6H1FFSa1vM/puy+AzIgtNeCmlIvdDc0fysIII7Sho QEVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=S8nDu6HYWjwrwcSDVpU80yClc9kaPK97jfNsbulgIRc=; b=ZjFHpEhF9VgdlXPBYdkgUY5GwyraDHXo16bTWNSKGPAumCsAU8OZPKb+swzmo7B8fR /MeSLILMULtMo2UZrsUEfI7zARtjgeWmMtjjbhHASkROUlAwEjT0cLw68A5K9x9kpsHn +hJW3SR4M4dpj9/vdhFJ8rRj/lbP5wXAbKXkqZzMYlyyWA/UBLk0D1pEuApP7S/WqvQ8 irt69M0xeEeCztbJ1D+G6tJsTb6BbT7mdzhmXb4hzLvJllh8mIvEbKJ8wFmDFFFN2ZWF C7sFL0Wtum0gb/t8NAZA9DEE7mq3SDVonObRAdOJIEoOz0leoSBTswtlEGFuPtsU06Zc o8qA== X-Gm-Message-State: AMke39lFAtEYT0FUVfA+taevh10cLhyU6Q7OlEeZTX422U7LyC0XvrLy0a9QBbaMDFXI1vlDj71H4+75Gfl9yQ== X-Received: by 10.200.45.247 with SMTP id q52mr12464993qta.197.1487413669598; Sat, 18 Feb 2017 02:27:49 -0800 (PST) Original-Received: by 10.12.146.141 with HTTP; Sat, 18 Feb 2017 02:27:49 -0800 (PST) In-Reply-To: <83tw7srcx5.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129489 Archived-At: --001a1139cdf069203e0548cb7bed Content-Type: text/plain; charset=UTF-8 ispell-filter is empty. Here's the partial output (I used ispell-print-if-debug to get the messages in the same buffer): ..... ispell-region: string pos (22->28), eol: 28, [in-comment]: [%], [add-comment]: [%], [string]: [^%fred}} ] DEBUG-ISPELL-FILTER: () ispell-region: string pos (28->28), eol: 37, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (29->37), eol: 37, [in-comment]: [nil], [add-comment]: [nil], [string]: [^envolope ] DEBUG-ISPELL-FILTER: () I notice that it is sending two queries (one of which is nil) before it attempts to read the output. Perhaps this is the problem? Somebody else sent me a mail saying this isn't a problem in the latest emacs. I'm happy to continue trying to debug if you think it's useful otherwise should I just upgrade and stop here? On 17 February 2017 at 16:37, Eli Zaretskii wrote: > > From: Bob Alice > > Date: Fri, 17 Feb 2017 16:21:11 +0000 > > Cc: 25766@debbugs.gnu.org > > > > Note: I removed \autoref{alice}. It wasn't necessary. New file is: > > > > \caption{5\% \label{_fred}} > > envolope > > > > Debugger gives: > > ispell-region: string pos (29->37), eol: 37, [in-comment]: [nil], > [add-comment]: [nil], [string]: [^envolope > > > > Running: > > /usr/bin/aspell -a -m -d en --encoding=utf-8 > > > > Inputting: > > ^envolope > > > > Output: > > & envolope 7 1: envelope, enveloper, envelop, enveloped, envelopes, > envelops, envelope's > > > > This output looks sensible, but the spelling options do not appear in > the emacs buffer. > > Strange. I guess the next step is to look at what Emacs receives from > aspell. I think if you display the value of ispell-filter in > ispell-process-line, it will show that. Here's the relevant part of > ispell-process-line: > > ;; send string to spell process and get input. > (ispell-send-string string) > (while (progn > (ispell-accept-output) > ;; Last item of output contains a blank line. <<<<<<<<<<<< > (not (string= "" (car ispell-filter))))) > > Insert > > (message "%s" ispell-filter) > > before the marked line, then load ispell.el manually, and repeat the > experiment. The results should be in the *Messages* buffer. Maybe if > we see what Emacs gets back from aspell, we will see the light. > > Thanks. > --001a1139cdf069203e0548cb7bed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
ispell-filter is empty. Here's the partial o= utput (I used ispell-print-if-debug to get the messages in the same buffer)= :
.....
ispell-region: string pos (22->28), eol: 28, [in-comment]:= [%], [add-comment]: [%], [string]: [^%fred}}
]
DEBUG-ISPELL-FILTER: = ()
ispell-region: string pos (28->28), eol: 37, [in-comment]: [nil], = [add-comment]: [nil], [string]: [nil]
ispell-region: string pos (29->= 37), eol: 37, [in-comment]: [nil], [add-comment]: [nil], [string]: [^envolo= pe
]
DEBUG-ISPELL-FILTER: ()

I notice that it is sending= two queries (one of which is nil) before it attempts to read the output. P= erhaps this is the problem?

Somebody else sent me a mail sayin= g this isn't a problem in the latest emacs. I'm happy to continue t= rying to debug if you think it's useful otherwise should I just upgrade= and stop here?


On 17 February 2017 at 16:37, Eli Zaretsk= ii <= eliz@gnu.org> wrote:
> F= rom: Bob Alice <bobfredal= ice@googlemail.com>
> Date: Fri, 17 Feb 2017 16:21:11 +0000
> Cc: 25766@debbugs.gnu.org=
>
> Note: I removed \autoref{alice}. It wasn't necessary. New file is:=
>
> \caption{5\% \label{_fred}}
> envolope
>
> Debugger gives:
> ispell-region: string pos (29->37), eol: 37, [in-comment]: [nil], [= add-comment]: [nil], [string]: [^envolope
>
> Running:
> /usr/bin/aspell -a -m -d en --encoding=3Dutf-8
>
> Inputting:
> ^envolope
>
> Output:
> & envolope 7 1: envelope, enveloper, envelop, enveloped, envelopes= , envelops, envelope's
>
> This output looks sensible, but the spelling options do not appear in = the emacs buffer.

Strange.=C2=A0 I guess the next step is to look at what Emacs receives from=
aspell.=C2=A0 I think if you display the value of ispell-filter in
ispell-process-line, it will show that.=C2=A0 Here's the relevant part = of
ispell-process-line:

=C2=A0 =C2=A0 ;; send string to spell process and get input.
=C2=A0 =C2=A0 (ispell-send-string string)
=C2=A0 =C2=A0 (while (progn
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(ispell-accept-output)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Last item of output cont= ains a blank line. <<<<<<<<<<<<
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not (string=3D ""= ; (car ispell-filter)))))

Insert

=C2=A0 =C2=A0 (message "%s" ispell-filter)

before the marked line, then load ispell.el manually, and repeat the
experiment.=C2=A0 The results should be in the *Messages* buffer.=C2=A0 May= be if
we see what Emacs gets back from aspell, we will see the light.

Thanks.

--001a1139cdf069203e0548cb7bed--