all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#18515: 24.3; Documentation of `call-process'
@ 2014-09-21  3:20 Eli Barzilay
  2017-04-02  3:30 ` npostavs
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Barzilay @ 2014-09-21  3:20 UTC (permalink / raw)
  To: 18515

The documentation of `call-process' doesn't say anything about which
directory the process is started at, or the fact that it switches to
the directory in some way.

As the example that I ran into, I setq `ring-bell-function' in my
environment so it plays a nice ding.  In some cases the dings didn't
play at all, or played after a huge delay etc.  Since this is running
in a VM, I "obviously" concluded that something bad with the sound
driver configuration happened, and went on a wild chase that lead to
nothing.

Eventually, I noticed that the delay happens only when I have a file
open over sshfs -- and then I wrapped the `call-process' with a
(let ((default-directory "/")) ...) and all is well.  A note about
switching to the directory in the documentation of `call-process', or
even just a mention of the directory in which it runs could have saved
me that chase...

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!





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

end of thread, other threads:[~2017-04-06 23:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-21  3:20 bug#18515: 24.3; Documentation of `call-process' Eli Barzilay
2017-04-02  3:30 ` npostavs
2017-04-02  7:24   ` Michael Albinus
2017-04-02 13:41     ` npostavs
2017-04-02 15:54       ` Eli Zaretskii
2017-04-02 16:25         ` npostavs
2017-04-06 23:20           ` npostavs

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.