all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Alice <bobfredalice@googlemail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25766@debbugs.gnu.org
Subject: bug#25766: aspell problem in LaTeX mode
Date: Sat, 18 Feb 2017 10:27:49 +0000	[thread overview]
Message-ID: <CAOJxbrvZFQkHh7L5=wSXU+6-p+1_TXMJ6D7Nvwj9ZEr4C9NM4A@mail.gmail.com> (raw)
In-Reply-To: <83tw7srcx5.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2362 bytes --]

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 <eliz@gnu.org> wrote:

> > From: Bob Alice <bobfredalice@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=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.
>

[-- Attachment #2: Type: text/html, Size: 3164 bytes --]

  reply	other threads:[~2017-02-18 10:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-16 20:52 bug#25766: aspell problem in LaTeX mode Bob Alice
2017-02-17  7:19 ` Eli Zaretskii
     [not found]   ` <CAOJxbrtYVWVwtDCyomQa7ARY9eCHQPUC-X-+Sk4Vqa3RybNJ7Q@mail.gmail.com>
2017-02-17 10:22     ` Eli Zaretskii
     [not found]       ` <CAOJxbrsA11dadga6n+B_Dq3j2p5ru+v22Ti0NXCcODsQmN_Hqw@mail.gmail.com>
2017-02-17 13:29         ` Eli Zaretskii
2017-02-17 16:21           ` Bob Alice
2017-02-17 16:37             ` Eli Zaretskii
2017-02-18 10:27               ` Bob Alice [this message]
2017-02-18 11:52                 ` Eli Zaretskii
2017-02-18 12:45                   ` Bob Alice
2017-02-17 16:46 ` Glenn Morris
2017-02-18 10:42   ` Bob Alice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOJxbrvZFQkHh7L5=wSXU+6-p+1_TXMJ6D7Nvwj9ZEr4C9NM4A@mail.gmail.com' \
    --to=bobfredalice@googlemail.com \
    --cc=25766@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.