From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#18515: 24.3; Documentation of `call-process' Date: Sat, 20 Sep 2014 23:20:22 -0400 Message-ID: <21534.17398.640167.807129@home.barzilay.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411270532 7614 80.91.229.3 (21 Sep 2014 03:35:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2014 03:35:32 +0000 (UTC) To: 18515@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 21 05:35:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XVXvq-00013T-4s for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 05:35:26 +0200 Original-Received: from localhost ([::1]:37784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXvp-0002rU-Oy for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Sep 2014 23:35:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXve-0002hR-Lq for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:35:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVXvX-0003aj-N4 for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:35:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXvX-0003WN-Ko for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:35:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XVXvS-0007vU-0c for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Barzilay Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Sep 2014 03:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141127047030422 (code B ref -1); Sun, 21 Sep 2014 03:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2014 03:34:30 +0000 Original-Received: from localhost ([127.0.0.1]:47066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVXuv-0007ua-7Z for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59748) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVXur-0007uQ-M0 for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVXuk-0003HG-3R for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:25 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXuk-0003Gv-1E for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXhV-0001UM-EE for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:20:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVXhP-0000ir-BX for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:20:37 -0400 Original-Received: from mail-qa0-f46.google.com ([209.85.216.46]:60392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXhP-0000iO-6x for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:20:31 -0400 Original-Received: by mail-qa0-f46.google.com with SMTP id f12so4118777qad.19 for ; Sat, 20 Sep 2014 20:20:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; bh=UKneNcmBufTRbZ6NvnfPo1c646wm3fuhDZ/b/T+yihs=; b=GAtnVe0bXftK446DGTK+OAn52So6/M9miUexo8CMuR5veoCuvSgRhckgYeSKfyRMtY 7O3yS5YxmQDDDp9YAlV722GjLuLQtVLBx/ivWAU6Fv1ho9yKNEU5dTHcwONgdCZbArK7 7gb4fhZLpUUcQw18J7uB63rIF7CQlnX5N8IQf0IOMGCHR9QaFbL344gxJe79u54olxsm xUoQsIes3kGIjul7zJUy3+QbFGYs4xuuKqQWMR11vVDzR26Mi1rpVnOQmyWo3wMb+4Rz SsStAYjHxo30Y+WUpbhQa8AYAOJ8nBtBiqDPF7fBikqwDgog3O/4rE1HAVvIi4VOxgax 7pwg== X-Gm-Message-State: ALoCoQnHbIM89lmvAs+3Txlz++voslQRilWmqxbgcXK96cWBRCJoAdEkVNHdxcchwNDCk4PmEurU X-Received: by 10.140.38.231 with SMTP id t94mr12528179qgt.3.1411269624925; Sat, 20 Sep 2014 20:20:24 -0700 (PDT) Original-Received: from home.barzilay.org (c-24-60-254-179.hsd1.ma.comcast.net. [24.60.254.179]) by mx.google.com with ESMTPSA id e4sm4902347qgf.32.2014.09.20.20.20.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Sep 2014 20:20:24 -0700 (PDT) X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93566 Archived-At: 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!