unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* accept-process-output should return non-nil value
@ 2013-03-20  7:43 Fabrice Popineau
  2013-03-20  9:21 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Popineau @ 2013-03-20  7:43 UTC (permalink / raw)
  To: emacs-devel

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

I maybe wrong in understanding the documentation, but assuming I run the
following with a very recent "emacs -q" :

(setq ispell-process
      (apply 'start-process
             "ispell" nil
             "/usr/bin/hunspell"
            "-a"
            '("-d" "en_US" "-i" "UTF-8")))

(accept-process-output ispell-process 3)

The accept-process-output function should return a non-nil value, because
hunspell has output its banner (confirmed by associating a buffer to the
process). However I can't get it to report anything but nil, and this both
under Gnu/Linux and W32.

It doesn't work either if I set up a simple process filter.

Can someone enlighten me ?

Best regards,

-- 
Fabrice

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: accept-process-output should return non-nil value
  2013-03-20  7:43 accept-process-output should return non-nil value Fabrice Popineau
@ 2013-03-20  9:21 ` Andreas Schwab
  2013-03-20  9:56   ` Fabrice Popineau
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2013-03-20  9:21 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-devel

Fabrice Popineau <fabrice.popineau@supelec.fr> writes:

> Can someone enlighten me ?

Make sure to execute the forms together, without returning to the
command loop in between (which does an implicit accept-process-output
while waiting for keyboard input).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: accept-process-output should return non-nil value
  2013-03-20  9:21 ` Andreas Schwab
@ 2013-03-20  9:56   ` Fabrice Popineau
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Popineau @ 2013-03-20  9:56 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

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

Thanks. Yes, it makes sense, and it does work once run inside a progn.

So that doesn't explain why sometimes, with the latest changes to ispell.el
to make it more compatible with hunspell,
I got the error message :

ispell.el:3062
     (error "%s did not output version line" ispell-program-name))

Moreover, it does not happen all the time.
Need to find a way to investigate this.

Fabrice


2013/3/20 Andreas Schwab <schwab@linux-m68k.org>

> Fabrice Popineau <fabrice.popineau@supelec.fr> writes:
>
> > Can someone enlighten me ?
>
> Make sure to execute the forms together, without returning to the
> command loop in between (which does an implicit accept-process-output
> while waiting for keyboard input).
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>



-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-20  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-20  7:43 accept-process-output should return non-nil value Fabrice Popineau
2013-03-20  9:21 ` Andreas Schwab
2013-03-20  9:56   ` Fabrice Popineau

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).