From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#6857: shell-command should say where it is talking about Date: Sun, 03 Jul 2011 04:42:58 +0800 Message-ID: <87r568qur1.fsf@jidanni.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309639475 25861 80.91.229.12 (2 Jul 2011 20:44:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2011 20:44:35 +0000 (UTC) Cc: 6857@debbugs.gnu.org To: larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 02 22:44:31 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd73F-0003xz-UJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2011 22:44:30 +0200 Original-Received: from localhost ([::1]:50436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qd73E-0002BF-UN for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2011 16:44:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qd72t-0002Ad-Nj for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2011 16:44:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qd72q-0002yx-2J for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2011 16:44:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qd72p-0002yk-Ru for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2011 16:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qd72o-0000uK-Fu; Sat, 02 Jul 2011 16:44:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87y6c9jdr2.fsf@jidanni.org> Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2011 20:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6857-submit@debbugs.gnu.org id=B6857.13096393913421 (code B ref 6857); Sat, 02 Jul 2011 20:44:02 +0000 Original-Received: (at 6857) by debbugs.gnu.org; 2 Jul 2011 20:43:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd71z-0000t8-CI for submit@debbugs.gnu.org; Sat, 02 Jul 2011 16:43:11 -0400 Original-Received: from caiajhbdccah.dreamhost.com ([208.97.132.207] helo=homiemail-a2.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd71w-0000su-H7 for 6857@debbugs.gnu.org; Sat, 02 Jul 2011 16:43:09 -0400 Original-Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 94FCF280063; Sat, 2 Jul 2011 13:43:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :references:date:message-id:mime-version:content-type; q=dns; s= jidanni.org; b=mYQRXZbGeXd2eeUJAOGnVnWl+0XW/4cgnCYiNgBqSTXgEeRWW PYouKnYjv7L/4QSMwwchgiw/y/BUZLxeZbGtqC1eDC4GzXstGXA58N9ud4G/y3re q884Dx87/Q8sN3lDCImS3VfxQkH9kItd7Py/27WOXfqY8/Q1ETFWUsM11A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=Ru3DLyrBbUSHvRbmOKNfmDE9eoY=; b=OMpV6bs8wBRFZ NNQ/HbxRCGe31HNfnHH0s+TbXGRAFTHsAkLougi94iazMztwp+6UE4qbIz4QcRr3 BxfBkTTBnoS0JTFMFBALMYfQOw9dTZkVVoNh/o6C2A2fis3tNptFSF+VhVocl2AC cWXK6xoz1MW9tyG/3iceZ1Z/SZdjrU= Original-Received: from jidanni.org (218-163-0-178.dynamic.hinet.net [218.163.0.178]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id C1C0E280061; Sat, 2 Jul 2011 13:43:01 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 02 Jul 2011 16:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47777 Archived-At: >>>>> "LMI" == Lars Magne Ingebrigtsen writes: LMI> jidanni@jidanni.org writes: >> M-! (translated from !) runs the command shell-command, which >> is an interactive compiled Lisp function in `simple.el'. >> >> OK, but in its error message, >> >> (Shell command failed with code 99 and some error output) >> >> you had better tell the user just what buffer to look for that error >> output in, lest he have to figure it out himself. Not impossible but not >> friendly. emacs-version "24.0.50.1". LMI> In what cases do you get an error message saying LMI> (Shell command failed with code 99 and some error output) LMI> ? LMI> I get error messages like: LMI> /bin/bash: lala: command not found I see. I set (setq shell-command-default-error-buffer "shell-command-errors") to avoid stderr and stdout being jumbled. Therefore code like (let ((output (if (and error-file (< 0 (nth 7 (file-attributes error-file)))) "some error output" "no output"))) needs to mention shell-command-default-error-buffer if set, to the user.