From: Alain.Cochard@unistra.fr
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: help-gnu-emacs@gnu.org, Alain.Cochard@unistra.fr
Subject: Re: Problem with 'M-x shell' with (setq process-connection-type nil)
Date: Mon, 24 Sep 2018 23:47:24 +0200 [thread overview]
Message-ID: <23465.23404.422075.751233@frac.u-strasbg.fr> (raw)
In-Reply-To: <jwvpnx2ycwk.fsf-monnier+emacs@gnu.org>
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?
>
> 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 triggering the
> shell problem:
>
> (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.
--
EOST (École et Observatoire des Sciences de la Terre)
IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr
5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25
prev parent reply other threads:[~2018-09-24 21:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-24 3:33 Problem with 'M-x shell' with (setq process-connection-type nil) Alain.Cochard
2018-09-24 12:42 ` Stefan Monnier
2018-09-24 14:50 ` Alain.Cochard
2018-09-24 18:28 ` Stefan Monnier
2018-09-24 21:47 ` Alain.Cochard [this message]
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=23465.23404.422075.751233@frac.u-strasbg.fr \
--to=alain.cochard@unistra.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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.