From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alain.Cochard@unistra.fr Newsgroups: gmane.emacs.help Subject: Re: Problem with 'M-x shell' with (setq process-connection-type nil) Date: Mon, 24 Sep 2018 23:47:24 +0200 Message-ID: <23465.23404.422075.751233@frac.u-strasbg.fr> References: <23464.23313.68491.809659@frac.u-strasbg.fr> <23464.63915.722393.412272@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.fr NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1537825870 18642 195.159.176.226 (24 Sep 2018 21:51:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 21:51:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Alain.Cochard@unistra.fr To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 24 23:51:06 2018 Return-path: Envelope-to: geh-help-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 1g4Ykz-0004j0-OE for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 23:51:05 +0200 Original-Received: from localhost ([::1]:48907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4Yn6-0006yT-Fl for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 17:53:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4YmI-0005kC-Si for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 17:52:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4YhZ-0005i4-WE for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 17:47:37 -0400 Original-Received: from smr2.u-strasbg.fr ([130.79.222.218]:49498 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g4YhZ-0005hM-Ou for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 17:47:33 -0400 Original-Received: from local-mr.u-strasbg.fr (lmr4.u-strasbg.fr [172.30.21.4]) by smr2.u-strasbg.fr (Postfix) with ESMTP id 13EDD1E03C0; Mon, 24 Sep 2018 23:47:30 +0200 (CEST) Original-Received: from local-mr.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id E91E69D; Mon, 24 Sep 2018 23:47:29 +0200 (CEST) Original-Received: from frac.u-strasbg.fr (AStrasbourg-651-1-144-88.w92-161.abo.wanadoo.fr [92.161.223.88]) (Authenticated sender: alain.cochard) by lmr4.u-strasbg.fr (Postfix) with ESMTPSA id 5FC8792; Mon, 24 Sep 2018 23:47:26 +0200 (CEST) In-Reply-To: X-Mailer: VM 8.1.2 under 24.5.1 (x86_64-redhat-linux-gnu) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 130.79.222.218 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118001 Archived-At: Stefan Monnier writes on Mon 24 Sep 2018 14:28: > > Should I understand from your answer that 'M-x shell' is expected > > /not/ to work with such a setq=3F >=20 > No, indeed not (i.e. I consider it a bug in `shell`): > process-connection-type affects start-process and make-process, but > IMO all uses of start/make-process should either *really* not care > what it's set to, or they should explicitly override locally the > default setting. IOW, setting process-connection-type globally > like you did should never have any visible effect (barring bugs). Thanks for the explanations. So I guess I should post to bug-gnu-emacs. > Maybe the following will workaround the Org problem without triggeri= ng the > shell problem: >=20 > (add-advice 'org-export-dispatch :around > (lambda (orig-fun &rest args) > ;; Work around a weird problem with xdg-open. > (let ((process-connection-type nil)) > (apply orig-fun args)))) I get the message eval-buffer: Symbol's function definition is void: add-advice but it does solve the Org LaTeX export problem without problem with 'M-x shell'. So many thanks again! a. --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=