From unknown Fri Sep 26 09:52:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28905 <28905@debbugs.gnu.org> To: bug#28905 <28905@debbugs.gnu.org> Subject: Status: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks Reply-To: bug#28905 <28905@debbugs.gnu.org> Date: Fri, 26 Sep 2025 16:52:24 +0000 retitle 28905 11.90.2.2017-07-25; TeX-documentation-texdoc blocks reassign 28905 auctex submitter 28905 fran.burstall@gmail.com severity 28905 normal tag 28905 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 17:39:10 2017 Received: (at submit) by debbugs.gnu.org; 19 Oct 2017 21:39:10 +0000 Received: from localhost ([127.0.0.1]:50794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5IWz-0000uA-Pb for submit@debbugs.gnu.org; Thu, 19 Oct 2017 17:39:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5IWx-0000ty-Rc for submit@debbugs.gnu.org; Thu, 19 Oct 2017 17:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5IWq-0007QR-W8 for submit@debbugs.gnu.org; Thu, 19 Oct 2017 17:39:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5IWq-0007QJ-SI for submit@debbugs.gnu.org; Thu, 19 Oct 2017 17:39:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5IWp-0003jP-4G for bug-auctex@gnu.org; Thu, 19 Oct 2017 17:39:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5IWn-0007Nw-MZ for bug-auctex@gnu.org; Thu, 19 Oct 2017 17:38:59 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:46222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5IWn-0007JK-AS for bug-auctex@gnu.org; Thu, 19 Oct 2017 17:38:57 -0400 Received: by mail-lf0-x22f.google.com with SMTP id g70so11138735lfl.3 for ; Thu, 19 Oct 2017 14:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=G3E6l4vgAypcjw4rrf/ws4SQjlJJMNr56rsW5xRol48=; b=VX48rbjeN713p1DgKqdhtfmXLgFqQjbPW6WKTUWMtTWvxIVP0CEjlCvmKuIhtVfw5W G+t7o3cyHQgKY4NNrL0DUHSFoOos/b4RGmYAntGkSHdp/Uh6uwoHbC+6BwpEsl3jBjw2 Ui8coPOcBYQmqp5Bzohu+tDy91lTph7c1+kyF84LiP8hmnjVfSW+yFUfXM05S1jyUA9X BxKlCejJJ7vSGU02yKh4JBZ2BEDeg2aHFeJIQUmETNljIFgh8LJX6xV7ycJMdDaKtWFA B9ZSA7iPrb3+0BDZcPgb1OqHVwyX/jQTFBqI2wiUjK48ntjSnAoSwnt51TqI9efwDTKa /bOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=G3E6l4vgAypcjw4rrf/ws4SQjlJJMNr56rsW5xRol48=; b=ZhMK1qQXCO6942ZuiffRmHqbr7EDIqigXzEa3bvKXhwOrcEYyrQm31PTygejdt9BD5 MCJnF+ajxfpedvPimc3mNsb8Qp5Qi27sBHm62t8Dy8kOCn7Bejk0ntpDeCURilWDQo96 YKt9Y2R9t2U44heVlmU8VjsUceg5kJTcSdZc0d5r8GKMVqavIxqHiOrwuPa8TG0aPYAJ EGfrNQFkhXPlqBej5xnOqYHwHXuFYgebZJDThFL20/Vgttr3OuULNKXXtLesgDvGHtLY TT4TcyIt8XAw3tiEK8/lA581Ziei3OS7irzk00wkguk+gU3qEnbaE+1LQ2MucWD6W7QP lWlA== X-Gm-Message-State: AMCzsaVmXEH4bL38KhFFTDbl2BLl6rp+TWr3yzZTEGjkUvX26eTLZnLK Kz8P32aOpYOuUC7mLP2M5uMUCOkX+UHc50dCGbCdx+4T X-Google-Smtp-Source: ABhQp+SJXiznGR58GyJfptOZ7bLbEtVjYsg+F2UmLb+jLzPnkxAfVmoXo8Icxf8zo2FUpuKLXpyXFHZpOHBFTkQMZKU= X-Received: by 10.25.217.26 with SMTP id q26mr1079731lfg.52.1508449133804; Thu, 19 Oct 2017 14:38:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.59.199 with HTTP; Thu, 19 Oct 2017 14:38:53 -0700 (PDT) From: "Fran Burstall (Gmail)" Date: Thu, 19 Oct 2017 22:38:53 +0100 Message-ID: Subject: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: bug-auctex@gnu.org Content-Type: multipart/alternative; boundary="94eb2c18493ac843eb055bed2e72" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fran.burstall@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --94eb2c18493ac843eb055bed2e72 Content-Type: text/plain; charset="UTF-8" Greetings! I do M-x TeX-documentation-texdoc and supply the argument amsmath when prompted. An evince window fires with the documentation but emacs is blocked until I exit evince. If I try the same thing with tex-doc, evince fires but emacs remains usable. Experiment suggests that the former uses shell-command-to-string and this blocks while the latter uses call-process to fire texdoc and this does not block (or, at least, exits once texdoc has handed off to evince). Thanks for the wonderful package! ---Fran Emacs : GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.5) of 2017-09-12 on x86-csail-01, modified by Debian Package: 11.90.2.2017-07-25 current state: ============== (setq AUCTeX-date "2017-07-25" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/fran/.emacs.d/elpa/auctex-11.91.0/style" "/home/fran/.emacs.d/auctex/auto" "/home/fran/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil t :help "Run makeglossaries to create glossary file") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t t :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command")) ) --94eb2c18493ac843eb055bed2e72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= Greetings!

I do

M-x TeX-documentation-texdoc
<= br>
and supply the argument amsmath when prompted.=C2=A0 An evinc= e
window fires with the documentation but emacs is blocked=
until I exit evince.

If I try the same thing w= ith tex-doc, evince fires but emacs
remains usable.
<= div class=3D"gmail_default">
Experiment suggests that the former uses
shell-comman= d-to-string and this blocks while the latter
uses call-process to= fire texdoc and this does not block
(or, at least, exits once te= xdoc has handed off to evince).

Thanks for the won= derful package!

---Fran

<= br>

Emacs=C2=A0 : GNU Emacs 24.4.1 (i586-pc-linux-= gnu, GTK+ Version 3.14.5)
=C2=A0of 2017-09-12 on x86-csail-01, mo= dified by Debian
Package: 11.90.2.2017-07-25

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0AUCTeX-date "2017-07-25"
= =C2=A0window-system 'x
=C2=A0LaTeX-version "2e"
=C2=A0TeX-style-path '("~/.emacs.d/auctex" "/home= /fran/.emacs.d/elpa/auctex-11.91.0/style"
=C2=A0 "/home/fran/.emacs.d/auctex/auto" &= quot;/home/fran/.emacs.d/auctex/style" "auto" "style&qu= ot;)
=C2=A0TeX-auto-save t
=C2=A0TeX-parse-self t
=C2=A0TeX-master t
=C2=A0TeX-command-list '(("TeX&q= uot; "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode= )%' %t" TeX-run-TeX
=C2=A0 =C2=A0 =C2=A0nil (plain-tex-mode ams-tex-mode texinfo-mode) :he= lp "Run plain TeX")
<= /span>=C2=A0 =C2=A0 ("LaTeX" "%`%l%(mode)%' %t" TeX= -run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
=C2=A0 =C2=A0 ("Makeinfo&qu= ot; "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode)= :help
=C2=A0 =C2=A0 =C2= =A0"Run Makeinfo with Info output")
=C2=A0 =C2=A0 ("Makeinfo HTML" "makein= fo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help
=C2=A0 =C2=A0 =C2=A0"= Run Makeinfo with HTML output")
=C2=A0 =C2=A0 ("AmSTeX" "amstex %(PDFout) %(ext= raopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode)
=C2=A0 =C2=A0 =C2=A0:help "R= un AMSTeX")
=C2=A0 = =C2=A0 ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) = %(execopts)%t" TeX-run-TeX nil
=C2=A0 =C2=A0 =C2=A0(context-mode) :help "Run ConTeXt once= ")
=C2=A0 =C2=A0 (&= quot;ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" T= eX-run-TeX nil (context-mode) :help
=C2=A0 =C2=A0 =C2=A0"Run ConTeXt until completion")
=C2=A0 =C2=A0 ("BibT= eX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX&= quot;)
=C2=A0 =C2=A0 (&q= uot;Biber" "biber %s" TeX-run-Biber nil t :help "Run Bi= ber")
=C2=A0 =C2=A0= ("View" "%V" TeX-run-discard-or-function t t :help &qu= ot;Run Viewer")
=C2= =A0 =C2=A0 ("Print" "%p" TeX-run-command t t :help &quo= t;Print the file")
= =C2=A0 =C2=A0 ("Queue" "%q" TeX-run-background nil t :h= elp "View the printer queue" :visible
=C2=A0 =C2=A0 =C2=A0TeX-queue-command)
=
=C2=A0 =C2=A0 ("File" &quo= t;%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScr= ipt file")
=C2=A0 = =C2=A0 ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips ni= l t :help "Convert DVI file to PostScript")
=C2=A0 =C2=A0 ("Dvipdfmx" "dvi= pdfmx %d" TeX-run-dvipdfmx nil t :help
=C2=A0 =C2=A0 =C2=A0"Convert DVI file to PDF with = dvipdfmx")
=C2=A0 = =C2=A0 ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help= "Convert PostScript file to PDF")
=C2=A0 =C2=A0 ("Glossaries" "makeglossa= ries %s" TeX-run-command nil t :help
=C2=A0 =C2=A0 =C2=A0"Run makeglossaries to create gl= ossary file")
=C2= =A0 =C2=A0 ("Index" "makeindex %s" TeX-run-index nil t = :help "Run makeindex to create index file")
=C2=A0 =C2=A0 ("upMendex" "upm= endex %s" TeX-run-index t t :help "Run upmendex to create index f= ile")
=C2=A0 =C2=A0= ("Xindy" "texindy %s" TeX-run-command nil t :help &quo= t;Run xindy to create index file")
=C2=A0 =C2=A0 ("Check" "lacheck %s" TeX= -run-compile nil (latex-mode) :help
=C2=A0 =C2=A0 =C2=A0"Check LaTeX file for correctness"= ;)
=C2=A0 =C2=A0 ("= ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :he= lp
=C2=A0 =C2=A0 =C2=A0&= quot;Check LaTeX file for common mistakes")
=C2=A0 =C2=A0 ("Spell" "(TeX-ispell= -document \"\")" TeX-run-function nil t :help
=C2=A0 =C2=A0 =C2=A0"Spell-check = the document")
=C2= =A0 =C2=A0 ("Clean" "TeX-clean" TeX-run-function nil t = :help "Delete generated intermediate files")
=C2=A0 =C2=A0 ("Clean All" "(= TeX-clean t)" TeX-run-function nil t :help
=C2=A0 =C2=A0 =C2=A0"Delete generated intermed= iate and output files")
=C2=A0 =C2=A0 ("Other" "" TeX-run-command t t :hel= p "Run an arbitrary command"))
=C2=A0)

--94eb2c18493ac843eb055bed2e72-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 18:40:41 2017 Received: (at 28905) by debbugs.gnu.org; 19 Oct 2017 22:40:41 +0000 Received: from localhost ([127.0.0.1]:50809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5JUX-0002Sw-Lp for submit@debbugs.gnu.org; Thu, 19 Oct 2017 18:40:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5JUW-0002Sj-Ii for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 18:40:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5JUM-0008RE-DF for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 18:40:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5JUM-0008Qy-92 for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 18:40:30 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:47435) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e5JUM-00034u-0A for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 18:40:30 -0400 Received: by mail-it0-f42.google.com with SMTP id p138so12078466itp.2 for <28905@debbugs.gnu.org>; Thu, 19 Oct 2017 15:40:29 -0700 (PDT) X-Gm-Message-State: AMCzsaUkIYFrvxljVYQsxHgfr0R0oYx3aQtbFOSGec+KSKMHC/LC0bM9 QxceycMelEEQ2QhPNVSmAn2qAj5Y9IuY+lu0d/o= X-Google-Smtp-Source: ABhQp+TCAL8/cAQPM2zk5IXdtzXmiHzPS5cmEJP9lhBu4v/Wg59VGjbflNeJWnUj57X9Wj9Pubacvwrmvp13SuCtruM= X-Received: by 10.36.1.136 with SMTP id 130mr4240580itk.119.1508452829211; Thu, 19 Oct 2017 15:40:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.3.29 with HTTP; Thu, 19 Oct 2017 15:39:48 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Fri, 20 Oct 2017 00:39:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: fran.burstall@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Hi Fran, 2017-10-19 23:38 GMT+02:00 Fran Burstall (Gmail) : > Greetings! > > I do > > M-x TeX-documentation-texdoc > > and supply the argument amsmath when prompted. An evince > window fires with the documentation but emacs is blocked > until I exit evince. > > If I try the same thing with tex-doc, evince fires but emacs > remains usable. > > Experiment suggests that the former uses > shell-command-to-string and this blocks while the latter That's true, but I can't reproduce your issue. What happens if you run texdoc amsmath in your terminal? For me the viewer is opened in the background, so the shell is free and the prompt readily appears, without waiting for the viewer to be closed. Isn't this the case for you? > uses call-process to fire texdoc and this does not block > (or, at least, exits once texdoc has handed off to evince). > > Thanks for the wonderful package! You're welcome! Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 22:11:26 2017 Received: (at 28905) by debbugs.gnu.org; 20 Oct 2017 02:11:26 +0000 Received: from localhost ([127.0.0.1]:50908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5MmU-0001LU-0H for submit@debbugs.gnu.org; Thu, 19 Oct 2017 22:11:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5MmS-0001LI-SV for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 22:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5MmI-0001zZ-KU for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 22:11:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5MmI-0001zP-Eh for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 22:11:14 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:47977) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e5MmI-00064P-5H for 28905@debbugs.gnu.org; Thu, 19 Oct 2017 22:11:14 -0400 Received: by mail-it0-f46.google.com with SMTP id p138so12490798itp.2 for <28905@debbugs.gnu.org>; Thu, 19 Oct 2017 19:11:14 -0700 (PDT) X-Gm-Message-State: AMCzsaVdUmPEJ5DLd4MXXu+vP86NcBJrWx4RBiJvwQmKFmpjCKq2e6HG VwxV4bvbbpJStaHvPyok9CF2P5NoyTLOS24xZPg= X-Google-Smtp-Source: ABhQp+QzsskrPS90Zh/+kZCil47FtQ293I4MlIzetZHjnyAAiPwm2wIRGQGgVlqMGgqMh2adJKbxxTp7gbqaBUk324E= X-Received: by 10.36.105.65 with SMTP id e62mr539474itc.16.1508465473543; Thu, 19 Oct 2017 19:11:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.3.29 with HTTP; Thu, 19 Oct 2017 19:10:33 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Fri, 20 Oct 2017 04:10:33 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: Fran Burstall , 28905@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 28905 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Dear Fran, please, when you reply to mailing lists use the "Reply all" button, so that the message will be delivered to all readers, not just me, and recorded in the bug tracker. 2017-10-20 1:10 GMT+02:00 Fran Burstall (Gmail) : > Hi Mos=C3=A8, > > Yes, I get the same behaviour as you in the terminal: the prompt reappear= s > almost at once and evince fires. > > However, in the scratch buffer of my emacs, evaluating > > (shell-command-to-string "texdoc --view amsmath") > > blocks emacs (I even get an OS rotating busy timer for a pointer until th= e > evince window is closed) while evaluating > > (call-process "texdoc" nil 0 nil "--view" "amsmath") > > gives me a non-blocked emacs while the evince window is open. > > Any ideas? Not really. Anyone else has a clue of what may be going on here? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 22 09:13:31 2017 Received: (at 28905) by debbugs.gnu.org; 22 Oct 2017 13:13:31 +0000 Received: from localhost ([127.0.0.1]:54984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6G4I-0004Wx-Q9 for submit@debbugs.gnu.org; Sun, 22 Oct 2017 09:13:31 -0400 Received: from omx13.esk.m4.zaq.ne.jp ([220.152.48.7]:55193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6G4E-0004Wf-SO for 28905@debbugs.gnu.org; Sun, 22 Oct 2017 09:13:29 -0400 Received: from omx13.esk.m4.zaq.ne.jp ([220.152.49.29] [220.152.49.29]) by omx13.esk.m4.zaq.ne.jp with ESMTP id <20171022131318265.XETU.3163.omx13.esk.m4.zaq.ne.jp@omx13.esk.m4.zaq.ne.jp>; Sun, 22 Oct 2017 22:13:18 +0900 Received: from smtpa13.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa13.esk.m4.zaq.ne.jp with ESMTP id <20171022131318073.VHX.28185.smtpa13.esk.m4.zaq.ne.jp@smtpa13.esk.m4.zaq.ne.jp>; Sun, 22 Oct 2017 22:13:18 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 6239F13982B; Sun, 22 Oct 2017 22:13:18 +0900 (JST) From: Ikumi Keita To: =?UTF-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Mos=C3=A8?= Giordano message dated "Fri, 20 Oct 2017 00:39:48 +0200." X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sun, 22 Oct 2017 22:13:17 +0900 Message-ID: <20469.1508677997@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, fran.burstall@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi Fran and Mos=E8, >>>>> Mos=E8 Giordano writes: > Hi Fran, > 2017-10-19 23:38 GMT+02:00 Fran Burstall (Gmail) : >> Greetings! >>=20 >> I do >>=20 >> M-x TeX-documentation-texdoc >>=20 >> and supply the argument amsmath when prompted. An evince >> window fires with the documentation but emacs is blocked >> until I exit evince. >>=20 >> If I try the same thing with tex-doc, evince fires but emacs >> remains usable. >>=20 >> Experiment suggests that the former uses >> shell-command-to-string and this blocks while the latter > That's true, but I can't reproduce your issue. Fran's problem reproduces on my machine. The output of TeX-sumit-bug-report is at the tail of this message. > What happens if you run > texdoc amsmath > in your terminal? For me the viewer is opened in the background, so > the shell is free and the prompt readily appears, without waiting for > the viewer to be closed. Isn't this the case for you? My result is the same as Fran's, too. On my kterm (xterm variant capable of dealing with Japanese texts), the viewer is opened in the background, the shell is free and the prompt readily appears, without waiting for the viewer to be closed. It doesn't help to change the part (concat "texdoc --view " pkg) in `TeX-documentation-texdoc' to (concat "exec texdoc --view " pkg " &") for my case. It seems that emacs grabs something of the subprocess of the shell and does not release it until all(?) of subprocess terminate. Regards, Ikumi Keita Emacs : GNU Emacs 25.3.1 (x86_64-unknown-freebsd11.1, GTK+ Version 3.22.15) of 2017-09-13 Package: 11.91 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq AUCTeX-date "2017-07-24" window-system 'x LaTeX-version "2e" TeX-style-path '("/usr/local/var/auctex" "/usr/local/share/emacs/site-lisp/auctex/style" "/home/keita/.emacs.d/auctex/auto" "/home/keita/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self t TeX-master t TeX-command-list '(("jTeX" "%(PDF)jtex %`%S%(PDFout)%(mode)%' %t" TeX-run-= TeX nil (plain-tex-mode) :help "Run NTT jTeX") ("jLaTeX" "%(PDF)jlatex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (latex-mode) :help "Run NTT jLaTeX") ("pTeX" "%(PDF)ptex %(kanjiopt)%`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode) :help "Run ASCII pTeX") ("pLaTeX" "%(PDF)platex %(kanjiopt)%`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (latex-mode) :help "Run ASCII pLaTeX") ("Mendex" "mendex %(mendexkopt)%s" TeX-run-command nil t :help "Create index file with mendex") ("jBibTeX" "jbibtex %s" TeX-run-BibTeX nil t :help "Run jBibTeX") ("pBibTeX" "pbibtex %(kanjiopt)%s" TeX-run-BibTeX nil t :help "Run pBibTeX") ("-" "" ignore nil t) ("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%'= %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "%(bibtex) %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil t :help "Run makeglossaries to create glossary file") ("Index" "%(makeindex) %s" TeX-run-index nil t :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t t :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 22 13:26:28 2017 Received: (at 28905) by debbugs.gnu.org; 22 Oct 2017 17:26:28 +0000 Received: from localhost ([127.0.0.1]:56153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6K15-0004Nq-Pv for submit@debbugs.gnu.org; Sun, 22 Oct 2017 13:26:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6K14-0004Nd-TB for 28905@debbugs.gnu.org; Sun, 22 Oct 2017 13:26:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6K0v-0000XE-IX for 28905@debbugs.gnu.org; Sun, 22 Oct 2017 13:26:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6K0v-0000Wk-Fo for 28905@debbugs.gnu.org; Sun, 22 Oct 2017 13:26:17 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:56379) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e6K0v-0001ob-2B for 28905@debbugs.gnu.org; Sun, 22 Oct 2017 13:26:17 -0400 Received: by mail-io0-f182.google.com with SMTP id m81so17824854ioi.13 for <28905@debbugs.gnu.org>; Sun, 22 Oct 2017 10:26:17 -0700 (PDT) X-Gm-Message-State: AMCzsaVs3gZXOm6fAwXvb+xaEZrlHD+YFXuNERfPVakuPZ8mhtB+yMcw 5B0xtCzCj+zd98tcXpbfv0rvFxu7pVcpPnk+IaE= X-Google-Smtp-Source: ABhQp+RQeK9JFsGAE7dTqMAsD1DUKlSO+SJ1ESwStx9L03N9PoI8wNUvsNsfri/gxlTJ2ursERILw6XquBQ28wuL12Y= X-Received: by 10.107.173.160 with SMTP id m32mr13997603ioo.200.1508693176129; Sun, 22 Oct 2017 10:26:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.3.29 with HTTP; Sun, 22 Oct 2017 10:25:35 -0700 (PDT) In-Reply-To: <20469.1508677997@localhost> References: <20469.1508677997@localhost> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 22 Oct 2017 19:25:35 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: Ikumi Keita Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, Fran Burstall X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Hi Keita, 2017-10-22 15:13 GMT+02:00 Ikumi Keita : > Hi Fran and Mos=C3=A8, > >>>>>> Mos=C3=A8 Giordano writes: >> Hi Fran, >> 2017-10-19 23:38 GMT+02:00 Fran Burstall (Gmail) : >>> Greetings! >>> >>> I do >>> >>> M-x TeX-documentation-texdoc >>> >>> and supply the argument amsmath when prompted. An evince >>> window fires with the documentation but emacs is blocked >>> until I exit evince. >>> >>> If I try the same thing with tex-doc, evince fires but emacs >>> remains usable. >>> >>> Experiment suggests that the former uses >>> shell-command-to-string and this blocks while the latter > >> That's true, but I can't reproduce your issue. > > Fran's problem reproduces on my machine. The output of > TeX-sumit-bug-report is at the tail of this message. > >> What happens if you run > >> texdoc amsmath > >> in your terminal? For me the viewer is opened in the background, so >> the shell is free and the prompt readily appears, without waiting for >> the viewer to be closed. Isn't this the case for you? > > My result is the same as Fran's, too. On my kterm (xterm variant > capable of dealing with Japanese texts), the viewer is opened in the > background, the shell is free and the prompt readily appears, without > waiting for the viewer to be closed. > > It doesn't help to change the part > (concat "texdoc --view " pkg) > in `TeX-documentation-texdoc' to > (concat "exec texdoc --view " pkg " &") > for my case. It seems that emacs grabs something of the subprocess of > the shell and does not release it until all(?) of subprocess terminate. Thanks for sharing your experience. The problem with texdoc program is that it doesn't use return status in a meaningful way. There is no way to know if it was able to find a documentation for the requested package besides reading the output. Try this: $ texdoc foobar Sorry, no documentation found for foobar. If you are unsure about the name, try searching CTAN's TeX catalogue at http://ctan.org/search.html#byDescription. $ echo $? 0 Fran, as a workaround you can bind `TeX-doc' to C-c ? with (with-eval-after-load "tex" (define-key TeX-mode-map (kbd "C-c ?") 'TeX-doc)) even if I'd like to find a solution to keep `TeX-documentation-texdoc' work= ing. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 22 14:45:46 2017 Received: (at 28905) by debbugs.gnu.org; 22 Oct 2017 18:45:46 +0000 Received: from localhost ([127.0.0.1]:56197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6LFp-000798-Ld for submit@debbugs.gnu.org; Sun, 22 Oct 2017 14:45:46 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:47672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6LFm-00070N-VK for 28905@debbugs.gnu.org; Sun, 22 Oct 2017 14:45:44 -0400 Received: by mail-lf0-f54.google.com with SMTP id k40so17843572lfi.4 for <28905@debbugs.gnu.org>; Sun, 22 Oct 2017 11:45:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1H+KPv9BqsewXSRr/SVBtMpkdp9ZXLW7s7bTybWSugE=; b=fDt1RmC07XwnRIArcBam10TAiyIFnREkU/pzDtKBUqeNSDdm3b34qAdVb0K1S9RNGD UEAJQYjMmPDJLxDCSl/815UCa6iMR86YuuotqMZNZBiMT1ENc/CN4nC34Tg4L7eiH0wf 9QGbwqu71+US4+0ytL7PgKdHeH3nWh4oU5XtglYo9KQHBdHWp3+6JVNcsu71yuwDMiQz RmbcihMSciU98cJyOMphsKkSCdydazsGN6ghIPLtu+VqiGyhC/XOZPJnOTtt1l1gCc03 jqvpe01pmTAvLi1S9TKNSvK9kMdIhfsZ2LVxl36i31By/jF6I/PRb8zr1c+Gpi6SCkuo XDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=1H+KPv9BqsewXSRr/SVBtMpkdp9ZXLW7s7bTybWSugE=; b=mgT+wyCmlj7xNZzplX9FG/Z5sX2Yw3sXLHa4/hbB8Fj0TElSCJOsULA+uHRYTw2CsX M6i7aKy7dsHv53bEOsu/ru6PoJFs557jojlhEpptGbTfe24BOqktzC9ILZg0pT/VrG4f K/pxxnAX9vfGNr02wk6/CD4lbciEsTF1ouEzSq6BS/fhumR2Sc6g0jv9HEiGX7T01qcu cyXuNxyYKuxwDkAGCQs6df01+Ok3nuIIgw/7wlfvshmKEXdBuY8YufuQgrZJo2j3u0Jt BmkhmVlXCzWDF7/dofFVZRNtHTMxnJh6UhPfy2INlzdZGp/OaYibNs+IDQxm0f28ZE8h qvhA== X-Gm-Message-State: AMCzsaUrvN313nq5F5dIdQdS9naDBRBan8u++WQtZRgT/Jo1rkz7kQKf ABK2PpDEV9IXIvkphDakBNbAVN1uSwgC3XGvMLM= X-Google-Smtp-Source: ABhQp+RA+RBuIBclUveQuNtmMDaH9/tOhbFXTbCJuzagAmcAHzIcs4DzZh0XUzkeUC1pePxJFL5Jdatonc+FPvtPj5s= X-Received: by 10.46.4.140 with SMTP id a12mr4549801ljf.37.1508697936965; Sun, 22 Oct 2017 11:45:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.59.199 with HTTP; Sun, 22 Oct 2017 11:45:36 -0700 (PDT) In-Reply-To: References: <20469.1508677997@localhost> From: "Fran Burstall (Gmail)" Date: Sun, 22 Oct 2017 19:45:36 +0100 Message-ID: Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Content-Type: multipart/alternative; boundary="94eb2c0de9d69b331b055c271c85" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28905 Cc: Ikumi Keita , 28905@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fran.burstall@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --94eb2c0de9d69b331b055c271c85 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, Mois=C3=A8, for looking into this and thank you Keita for verifying= the issue. I shall use tex-doc for the time being. ---Fran On 22 October 2017 at 18:25, Mos=C3=A8 Giordano wrote: > Hi Keita, > > 2017-10-22 15:13 GMT+02:00 Ikumi Keita : > > Hi Fran and Mos=C3=A8, > > > >>>>>> Mos=C3=A8 Giordano writes: > >> Hi Fran, > >> 2017-10-19 23:38 GMT+02:00 Fran Burstall (Gmail) < > fran.burstall@gmail.com>: > >>> Greetings! > >>> > >>> I do > >>> > >>> M-x TeX-documentation-texdoc > >>> > >>> and supply the argument amsmath when prompted. An evince > >>> window fires with the documentation but emacs is blocked > >>> until I exit evince. > >>> > >>> If I try the same thing with tex-doc, evince fires but emacs > >>> remains usable. > >>> > >>> Experiment suggests that the former uses > >>> shell-command-to-string and this blocks while the latter > > > >> That's true, but I can't reproduce your issue. > > > > Fran's problem reproduces on my machine. The output of > > TeX-sumit-bug-report is at the tail of this message. > > > >> What happens if you run > > > >> texdoc amsmath > > > >> in your terminal? For me the viewer is opened in the background, so > >> the shell is free and the prompt readily appears, without waiting for > >> the viewer to be closed. Isn't this the case for you? > > > > My result is the same as Fran's, too. On my kterm (xterm variant > > capable of dealing with Japanese texts), the viewer is opened in the > > background, the shell is free and the prompt readily appears, without > > waiting for the viewer to be closed. > > > > It doesn't help to change the part > > (concat "texdoc --view " pkg) > > in `TeX-documentation-texdoc' to > > (concat "exec texdoc --view " pkg " &") > > for my case. It seems that emacs grabs something of the subprocess of > > the shell and does not release it until all(?) of subprocess terminate. > > Thanks for sharing your experience. The problem with texdoc program > is that it doesn't use return status in a meaningful way. There is no > way to know if it was able to find a documentation for the requested > package besides reading the output. Try this: > > $ texdoc foobar > Sorry, no documentation found for foobar. > If you are unsure about the name, try searching CTAN's TeX catalogue = at > http://ctan.org/search.html#byDescription. > $ echo $? > 0 > > Fran, as a workaround you can bind `TeX-doc' to C-c ? with > > (with-eval-after-load "tex" > (define-key TeX-mode-map (kbd "C-c ?") 'TeX-doc)) > > even if I'd like to find a solution to keep `TeX-documentation-texdoc' > working. > > Bye, > Mos=C3=A8 > --94eb2c0de9d69b331b055c271c85 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Mois=C3=A8, for looking into this and thank you= Keita for verifying the issue.

I shall use tex-doc fo= r the time being.

---Fran


On 22 October 2017 at= 18:25, Mos=C3=A8 Giordano <mose@gnu.org> wrote:
Hi Keita,

2017-10-22 15:13 GMT+02:00 Ikumi Keita <ikumi@ikumi.que.jp>:
> Hi Fran and Mos=C3=A8,
>
>>>>>> Mos=C3=A8 Giordano <mose@gnu.org> writes:
>> Hi Fran,
>> 2017-10-19 23:38 GMT+02:00 Fran Burstall (Gmail) <fran.burstall@gmail.com>:
>>> Greetings!
>>>
>>> I do
>>>
>>> M-x TeX-documentation-texdoc
>>>
>>> and supply the argument amsmath when prompted.=C2=A0 An evince=
>>> window fires with the documentation but emacs is blocked
>>> until I exit evince.
>>>
>>> If I try the same thing with tex-doc, evince fires but emacs >>> remains usable.
>>>
>>> Experiment suggests that the former uses
>>> shell-command-to-string and this blocks while the latter
>
>> That's true, but I can't reproduce your issue.
>
> Fran's problem reproduces on my machine.=C2=A0 The output of
> TeX-sumit-bug-report is at the tail of this message.
>
>>=C2=A0 What happens if you run
>
>>=C2=A0 =C2=A0 =C2=A0texdoc amsmath
>
>> in your terminal?=C2=A0 For me the viewer is opened in the backgro= und, so
>> the shell is free and the prompt readily appears, without waiting = for
>> the viewer to be closed.=C2=A0 Isn't this the case for you? >
> My result is the same as Fran's, too.=C2=A0 On my kterm (xterm var= iant
> capable of dealing with Japanese texts), the viewer is opened in the > background, the shell is free and the prompt readily appears, without<= br> > waiting for the viewer to be closed.
>
> It doesn't help to change the part
> (concat "texdoc --view " pkg)
> in `TeX-documentation-texdoc' to
> (concat "exec texdoc --view " pkg " &")
> for my case.=C2=A0 It seems that emacs grabs something of the subproce= ss of
> the shell and does not release it until all(?) of subprocess terminate= .

Thanks for sharing your experience.=C2=A0 The problem with texd= oc program
is that it doesn't use return status in a meaningful way.=C2=A0 There i= s no
way to know if it was able to find a documentation for the requested
package besides reading the output.=C2=A0 Try this:

=C2=A0 =C2=A0 $ texdoc foobar
=C2=A0 =C2=A0 Sorry, no documentation found for foobar.
=C2=A0 =C2=A0 If you are unsure about the name, try searching CTAN's Te= X catalogue at
=C2=A0 =C2=A0 http://ctan.org/search.html#byDescriptio= n.
=C2=A0 =C2=A0 $ echo $?
=C2=A0 =C2=A0 0

Fran, as a workaround you can bind `TeX-doc' to C-c ? with

=C2=A0 =C2=A0 (with-eval-after-load "tex"
=C2=A0 =C2=A0 =C2=A0 (define-key TeX-mode-map (kbd "C-c ?") '= TeX-doc))

even if I'd like to find a solution to keep `TeX-documentation-texdoc&#= 39; working.

Bye,
Mos=C3=A8

--94eb2c0de9d69b331b055c271c85-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 03 14:02:32 2018 Received: (at 28905) by debbugs.gnu.org; 3 Nov 2018 18:02:32 +0000 Received: from localhost ([127.0.0.1]:33147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ0Fk-00042P-Bq for submit@debbugs.gnu.org; Sat, 03 Nov 2018 14:02:32 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:51934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ0Fi-00042E-FR for 28905@debbugs.gnu.org; Sat, 03 Nov 2018 14:02:31 -0400 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id D928776; Sun, 4 Nov 2018 03:02:27 +0900 (JST) From: Ikumi Keita To: fran.burstall@gmail.com Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks In-reply-to: References: <20469.1508677997@localhost> Comments: In-reply-to "Fran Burstall (Gmail)" message dated "Sun, 22 Oct 2017 19:45:36 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sun, 04 Nov 2018 03:02:26 +0900 Message-ID: <77353.1541268146@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, =?UTF-8?Q?Mos=C3=A8_Giordano?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Fran, Mos=E8 and all, I'm responding to one year old thread. >>>>> "Fran Burstall (Gmail)" writes: > Thanks, Mois=E8, for looking into this and thank you Keita for verifying = the > issue. > I shall use tex-doc for the time being. After struggling with this problem again, it seems that I managed to find out a solution. The patch listed below resolves the problem on my environment. Could you please try it? If it fixes the problem without harming other's environments, I'll install this in the git repository. Regards, Ikumi Keita diff --git a/tex.el b/tex.el index 9995af3f..2d3942f3 100644 --- a/tex.el +++ b/tex.el @@ -6350,7 +6350,27 @@ the number of the file to view, anything else to ski= p: ") list))) ;; Called without prefix argument: just run "texdoc --view " and ;; show the output, so that the user is warned in case it doesn't find ;; the documentation or "texdoc" is not available. - (message (shell-command-to-string (concat "texdoc --view " pkg))))))) + (message + ;; The folowing code to the end of `defun' used to be just + ;; (shell-command-to-string (concat "texdoc --view " pkg)) + ;; , but in some cases it blocks emacs until the user quits + ;; the viewer (bug#28905). + (with-output-to-string + (let* (;; Use pipe rather than pty because the latter + ;; causes atril (evince variant viewer) to exit + ;; before showing anything. + (process-connection-type nil) + (process (start-process-shell-command + "Doc view" standard-output + (concat "texdoc --view " pkg)))) + ;; Suppress the message "Process Doc view finished". + (set-process-sentinel process #'ignore) + ;; Kill temp buffer without query. This is necessary if + ;; the underneath shell can't find the texdoc binary, at + ;; least for some environment. + (set-process-query-on-exit-flag process nil) + ;; Don't discard shell output. + (accept-process-output process)))))))) =20 (defun TeX-goto-info-page () "Read documentation for AUCTeX in the info system." From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 03 17:17:58 2018 Received: (at 28905) by debbugs.gnu.org; 3 Nov 2018 21:17:58 +0000 Received: from localhost ([127.0.0.1]:33191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ3Is-0000VZ-Ha for submit@debbugs.gnu.org; Sat, 03 Nov 2018 17:17:58 -0400 Received: from mail-lf1-f43.google.com ([209.85.167.43]:41875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ3Iq-0000VK-Ik for 28905@debbugs.gnu.org; Sat, 03 Nov 2018 17:17:57 -0400 Received: by mail-lf1-f43.google.com with SMTP id c16so3570002lfj.8 for <28905@debbugs.gnu.org>; Sat, 03 Nov 2018 14:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=X6EWdBXgXJK5jWHnTtwwTwEnxSDwGx32SKQTTlpx+kU=; b=cROYMiSFzxdhmeCariq8rnacSQT8itywZ0/lFjHVjN+7zKTcuP0v2weK2qmWA7aQvL 2sAb3NDSUSAmvjHLoH+eHB4IzjiNQfW/b3Fszp0yk9ffRwkxZDKvy/GIgQRM/tPqAUY/ aEIBJeBM46NksLxWoe6d3RW0Pl8z1DOB31gKW/oBbG8NaRnNuGy7qMQg7f94Ewc3ERc5 yRn0a/X08Q9HYeEEJeWqJvm/Dz+T5D6cqN+SPt9ZndKTa4NwAJQqmL55zWSrbmrh+JNq LtYsw+6nCLUxOM2k98KmHCG61CyzAYVnmidEw1gd9escZSzuya/VfA4hhotOtYPN2TvP 5dtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=X6EWdBXgXJK5jWHnTtwwTwEnxSDwGx32SKQTTlpx+kU=; b=BvagvpT9W3XWu+nrGiHxb6+SBXtMAUn7RnhqTpIsEIEy128ffv2M9tGNOXIFwzeA78 HOnKNoXI0Ed226DnJ5BcPhjaKJQo+uDDaNYf5Xl6jAbRX/ebS4sTF5nU7QtDQlFEBint 6w2XVlp1wrXvBmFKXjqRelnjWnTRXHsPauVCg6pM9dMiLO+/xDtBEDiUuApQlO3l/gJn zKuUca8Dvvg8sd0Dai2Ej+d1dZELDkYQ/vLsIuwvMM15etQwPOI4f7xYl3FFRI2petJh WlqNj+2ws7I76H21w31gESl5DtpFcx//xXvV9ktUvCux40ri93j9WifGa5LMEC6BUBIY ig0A== X-Gm-Message-State: AGRZ1gJpyoUY1Os0XMqTjorJfMCpjc5riCAY20mWb8sOANN/BoQbhnRq uKIpZiDN3LV6+FE28TaA465hanhwVQBPP8w8gl0= X-Google-Smtp-Source: AJdET5d66W2b3Rw+fI4B1JiqWF8dypyV6adHn69XlYdU9euYH68Xmej912Z7x49hymYM1pFGP0my+xArgpRm9Ofw1lM= X-Received: by 2002:a19:2b54:: with SMTP id r81mr9782245lfr.34.1541279870598; Sat, 03 Nov 2018 14:17:50 -0700 (PDT) MIME-Version: 1.0 References: <20469.1508677997@localhost> <77353.1541268146@localhost> In-Reply-To: <77353.1541268146@localhost> From: "Fran Burstall (Gmail)" Date: Sat, 3 Nov 2018 21:17:39 +0000 Message-ID: Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: Ikumi Keita Content-Type: multipart/alternative; boundary="0000000000002fc3990579c92f7c" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, =?UTF-8?Q?Mos=C3=A8_Giordano?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fran.burstall@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000002fc3990579c92f7c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ikumi, It works for me. Pass "amsmath" to the patched TeX-documentation-texdoc and it fires evince on the documentation without blocking emacs; fire it on "foobar" and I get a sensible message about not finding any documentation. ---Fran On Sat, 3 Nov 2018 at 18:02, Ikumi Keita wrote: > Hi Fran, Mos=C3=A8 and all, I'm responding to one year old thread. > > >>>>> "Fran Burstall (Gmail)" writes: > > Thanks, Mois=C3=A8, for looking into this and thank you Keita for verif= ying > the > > issue. > > > I shall use tex-doc for the time being. > > After struggling with this problem again, it seems that I managed to > find out a solution. The patch listed below resolves the problem on my > environment. Could you please try it? > > If it fixes the problem without harming other's environments, I'll > install this in the git repository. > > Regards, > Ikumi Keita > > diff --git a/tex.el b/tex.el > index 9995af3f..2d3942f3 100644 > --- a/tex.el > +++ b/tex.el > @@ -6350,7 +6350,27 @@ the number of the file to view, anything else to > skip: ") list))) > ;; Called without prefix argument: just run "texdoc --view " > and > ;; show the output, so that the user is warned in case it doesn't > find > ;; the documentation or "texdoc" is not available. > - (message (shell-command-to-string (concat "texdoc --view " > pkg))))))) > + (message > + ;; The folowing code to the end of `defun' used to be just > + ;; (shell-command-to-string (concat "texdoc --view " pkg)) > + ;; , but in some cases it blocks emacs until the user quits > + ;; the viewer (bug#28905). > + (with-output-to-string > + (let* (;; Use pipe rather than pty because the latter > + ;; causes atril (evince variant viewer) to exit > + ;; before showing anything. > + (process-connection-type nil) > + (process (start-process-shell-command > + "Doc view" standard-output > + (concat "texdoc --view " pkg)))) > + ;; Suppress the message "Process Doc view finished". > + (set-process-sentinel process #'ignore) > + ;; Kill temp buffer without query. This is necessary if > + ;; the underneath shell can't find the texdoc binary, at > + ;; least for some environment. > + (set-process-query-on-exit-flag process nil) > + ;; Don't discard shell output. > + (accept-process-output process)))))))) > > (defun TeX-goto-info-page () > "Read documentation for AUCTeX in the info system." > > --0000000000002fc3990579c92f7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ikumi,

It works for me.=C2=A0 P= ass "amsmath" to the patched TeX-documentation-texdoc and it fire= s evince on the documentation without blocking emacs; fire it on "foob= ar" and I get a sensible message about not finding any documentation.<= /div>

---Fran


On Sat, 3 Nov 2018 at 18:02, Ikumi Keita <ikumi@ikumi.que.jp> wrote:
Hi Fran, Mos=C3=A8 and all, I'm respon= ding to one year old thread.

>>>>> "Fran Burstall (Gmail)" <fran.burstall@gmail.com>= ; writes:
> Thanks, Mois=C3=A8, for looking into this and thank you Keita for veri= fying the
> issue.

> I shall use tex-doc for the time being.

After struggling with this problem again, it seems that I managed to
find out a solution.=C2=A0 The patch listed below resolves the problem on m= y
environment.=C2=A0 Could you please try it?

If it fixes the problem without harming other's environments, I'll<= br> install this in the git repository.

Regards,
Ikumi Keita

diff --git a/tex.el b/tex.el
index 9995af3f..2d3942f3 100644
--- a/tex.el
+++ b/tex.el
@@ -6350,7 +6350,27 @@ the number of the file to view, anything else to ski= p: ") list)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Called without prefix argument: just run &qu= ot;texdoc --view <pkg>" and
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; show the output, so that the user is warned = in case it doesn't find
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; the documentation or "texdoc" is n= ot available.
-=C2=A0 =C2=A0 =C2=A0 =C2=A0(message (shell-command-to-string (concat "= ;texdoc --view " pkg)))))))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0(message
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; The folowing code to the end of `defun'= used to be just
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; (shell-command-to-string (concat "texd= oc --view " pkg))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; , but in some cases it blocks emacs until t= he user quits
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; the viewer (bug#28905).
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 (with-output-to-string
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (let* (;; Use pipe rather than pty beca= use the latter
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; causes at= ril (evince variant viewer) to exit
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; before sh= owing anything.
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(process-con= nection-type nil)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(process (st= art-process-shell-command
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0"Doc view" standard-output
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(concat "texdoc --view " pkg))))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Suppress the message "Pr= ocess Doc view finished".
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (set-process-sentinel process #&= #39;ignore)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Kill temp buffer without quer= y.=C2=A0 This is necessary if
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; the underneath shell can'= t find the texdoc binary, at
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; least for some environment. +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (set-process-query-on-exit-flag = process nil)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Don't discard shell outpu= t.
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (accept-process-output process))= ))))))

=C2=A0(defun TeX-goto-info-page ()
=C2=A0 =C2=A0"Read documentation for AUCTeX in the info system."<= br>
--0000000000002fc3990579c92f7c-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 04 04:48:46 2018 Received: (at 28905) by debbugs.gnu.org; 4 Nov 2018 09:48:46 +0000 Received: from localhost ([127.0.0.1]:33325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJF1R-0002xC-J3 for submit@debbugs.gnu.org; Sun, 04 Nov 2018 04:48:46 -0500 Received: from smtp1.inetd.co.jp ([210.129.88.11]:55872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJF1P-0002x0-6K for 28905@debbugs.gnu.org; Sun, 04 Nov 2018 04:48:43 -0500 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 4AB4574; Sun, 4 Nov 2018 18:48:40 +0900 (JST) From: Ikumi Keita To: fran.burstall@gmail.com Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks In-reply-to: References: <20469.1508677997@localhost> <77353.1541268146@localhost> Comments: In-reply-to "Fran Burstall (Gmail)" message dated "Sat, 03 Nov 2018 21:17:39 +0000." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sun, 04 Nov 2018 18:48:39 +0900 Message-ID: <78483.1541324919@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, =?UTF-8?Q?Mos=C3=A8_Giordano?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Fran and all, >>>>> "Fran Burstall (Gmail)" writes: > Hi Ikumi, > It works for me. Pass "amsmath" to the patched TeX-documentation-texdoc > and it fires evince on the documentation without blocking emacs; fire it = on > "foobar" and I get a sensible message about not finding any documentation. Thanks for confirmation. It works just as expectedly. How about you, Mos=E8? Best, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 04 11:12:54 2018 Received: (at 28905) by debbugs.gnu.org; 4 Nov 2018 16:12:54 +0000 Received: from localhost ([127.0.0.1]:34167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJL1C-0001c6-D4 for submit@debbugs.gnu.org; Sun, 04 Nov 2018 11:12:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJL1A-0001bt-OI for 28905@debbugs.gnu.org; Sun, 04 Nov 2018 11:12:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJL0z-0008HB-UM for 28905@debbugs.gnu.org; Sun, 04 Nov 2018 11:12:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJL0v-000852-LR for 28905@debbugs.gnu.org; Sun, 04 Nov 2018 11:12:39 -0500 Received: from mail-vs1-f53.google.com ([209.85.217.53]:35522) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1gJL0k-0004ZF-E9 for 28905@debbugs.gnu.org; Sun, 04 Nov 2018 11:12:34 -0500 Received: by mail-vs1-f53.google.com with SMTP id d62so3738583vsd.2 for <28905@debbugs.gnu.org>; Sun, 04 Nov 2018 08:12:26 -0800 (PST) X-Gm-Message-State: AGRZ1gLZQDUiUIkkPo827I030olBumu+dIerqerJ47gaFQFJnilckY4l 8vfnw4SeZGRrwt2r5gGepqfGXg4plW95nnH9H2w= X-Google-Smtp-Source: AJdET5ceKuKDWeghA9cUpmYsRU4kNNL3hhYNhg2wrHL69SuQOKEuDo6iBl5sYRrDuhGZTLLlGbAELqMaZjuVU/34aC0= X-Received: by 2002:a67:d20d:: with SMTP id y13mr7642065vsi.163.1541347945217; Sun, 04 Nov 2018 08:12:25 -0800 (PST) MIME-Version: 1.0 References: <20469.1508677997@localhost> <77353.1541268146@localhost> <78483.1541324919@localhost> In-Reply-To: <78483.1541324919@localhost> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 4 Nov 2018 17:11:46 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks To: Ikumi Keita Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, Fran Burstall X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi Keita, On Sun, Nov 4, 2018 at 10:48 AM Ikumi Keita wrote: > > Hi Fran and all, > > >>>>> "Fran Burstall (Gmail)" writes: > > Hi Ikumi, > > It works for me. Pass "amsmath" to the patched TeX-documentation-texdo= c > > and it fires evince on the documentation without blocking emacs; fire i= t on > > "foobar" and I get a sensible message about not finding any documentati= on. > > Thanks for confirmation. It works just as expectedly. How about you, > Mos=C3=A8? I didn't try the patch, just read it. The idea should be to launch an asynchronous process and show its output, correct? That should be the way to go. Only one comment: is it necessary to use `start-process-shell-command'? Wouldn't `start-process' be sufficient? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 04 13:33:45 2018 Received: (at 28905) by debbugs.gnu.org; 4 Nov 2018 18:33:45 +0000 Received: from localhost ([127.0.0.1]:34251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJNDU-0004v2-T7 for submit@debbugs.gnu.org; Sun, 04 Nov 2018 13:33:45 -0500 Received: from smtp1.inetd.co.jp ([210.129.88.11]:57426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJNDS-0004ut-8f for 28905@debbugs.gnu.org; Sun, 04 Nov 2018 13:33:43 -0500 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id A26366A; Mon, 5 Nov 2018 03:33:39 +0900 (JST) From: Ikumi Keita To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks In-reply-to: References: <20469.1508677997@localhost> <77353.1541268146@localhost> <78483.1541324919@localhost> Comments: In-reply-to =?UTF-8?Q?Mos=C3=A8_Giordano?= message dated "Sun, 04 Nov 2018 17:11:46 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Nov 2018 03:33:38 +0900 Message-ID: <86013.1541356418@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, Fran Burstall X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Mos=E8, >>>>> Mos=E8 Giordano writes: > I didn't try the patch, just read it. The idea should be to launch an > asynchronous process and show its output, correct? Yes. > Only one comment: is it necessary to use > `start-process-shell-command'? Wouldn't `start-process' be > sufficient? Yes, mostly. The two would make little difference. I followed the previous code which used `shell-command-to-string'. (Actually, other parts of this function pay attention whether to use underlying shell or not, as the comments between the code tell: ;; Note: `shell-command-to-string' uses shell, only ;; `call-process' looks at `exec-path', thus only here makes ;; sense to use `executable-find' to test whether texdoc is ;; available. and ;; Called without prefix argument: just run "texdoc --view " and ;; show the output, so that the user is warned in case it doesn't find ;; the documentation or "texdoc" is not available. ) As far as I can see, the difference between `start-process' and `start-process-shell-command' would be noticeable only when: (1) texdoc is not available on the user's machine. In that case, `start-process' would end in lisp error while `start-process-shell-command' would continue to run and show the error message "texdoc: No such file or directory" which the shell outputs. (2) the values of `exec-path' and PATH of the invoked shell differ. If one of them contains texdoc and other doesn't, calling texdoc might success or not, accordingly. Best, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 09 02:27:26 2018 Received: (at 28905) by debbugs.gnu.org; 9 Nov 2018 07:27:26 +0000 Received: from localhost ([127.0.0.1]:42152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gL1CP-0006dZ-V8 for submit@debbugs.gnu.org; Fri, 09 Nov 2018 02:27:26 -0500 Received: from smtp1.inetd.co.jp ([210.129.88.11]:55750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gL1CN-0006dO-Sp for 28905@debbugs.gnu.org; Fri, 09 Nov 2018 02:27:24 -0500 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 9D4E484; Fri, 9 Nov 2018 16:27:21 +0900 (JST) From: Ikumi Keita Subject: Re: bug#28905: 11.90.2.2017-07-25; TeX-documentation-texdoc blocks In-reply-to: <86013.1541356418@localhost> References: <20469.1508677997@localhost> <77353.1541268146@localhost> <78483.1541324919@localhost> <86013.1541356418@localhost> Comments: In-reply-to Ikumi Keita message dated "Mon, 05 Nov 2018 03:33:38 +0900." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Fri, 09 Nov 2018 16:27:21 +0900 Message-ID: <20029.1541748441@localhost> X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Fran, Mosè and all, >>>>> Ikumi Keita writes: > Hi , >>>>> Mosè Giordano writes: >> I didn't try the patch, just read it. The idea should be to launch an >> asynchronous process and show its output, correct? [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.129.88.11 listed in list.dnswl.org] 1.2 MISSING_HEADERS Missing To: header -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 28905 Cc: 28905@debbugs.gnu.org, Fran Burstall , =?UTF-8?Q?Mos=C3=A8?= Giordano X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Hi Fran, Mos=E8 and all, >>>>> Ikumi Keita writes: > Hi , >>>>> Mos=E8 Giordano writes: >> I didn't try the patch, just read it. The idea should be to launch an >> asynchronous process and show its output, correct? > Yes. >> Only one comment: is it necessary to use >> `start-process-shell-command'? Wouldn't `start-process' be >> sufficient? > Yes, mostly. The two would make little difference. I committed the proposed change. This is tested only with evince and atril (a evince variant), so it might be incompatible with other viewers. If it blocks other viewes at `C-c ?', please report it. Then I'll revert the commit. Regards, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 09 02:36:50 2018 Received: (at control) by debbugs.gnu.org; 9 Nov 2018 07:36:50 +0000 Received: from localhost ([127.0.0.1]:42158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gL1LV-0006tb-Ts for submit@debbugs.gnu.org; Fri, 09 Nov 2018 02:36:50 -0500 Received: from smtp1.inetd.co.jp ([210.129.88.11]:55938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gL1LT-0006tQ-QP for control@debbugs.gnu.org; Fri, 09 Nov 2018 02:36:48 -0500 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 3081076 for ; Fri, 9 Nov 2018 16:36:46 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #28905 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20404.1541749006.1@localhost> Date: Fri, 09 Nov 2018 16:36:46 +0900 Message-ID: <20405.1541749006@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 28905 fixed close 28905 From unknown Fri Sep 26 09:52:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 07 Dec 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator