From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Rising Newsgroups: gmane.emacs.help Subject: shell-command, its relatives, and aliases Date: Thu, 13 Nov 2008 09:27:57 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226593739 3708 80.91.229.12 (13 Nov 2008 16:28:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 16:28:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 17:29:59 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0f4v-00008o-2i for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 17:29:58 +0100 Original-Received: from localhost ([127.0.0.1]:57002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0f3m-00033K-OM for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 11:28:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0e6y-0008Tm-UG for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 10:28:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0e6x-0008Ta-OV for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 10:28:00 -0500 Original-Received: from [199.232.76.173] (port=36614 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0e6x-0008TX-KL for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 10:27:59 -0500 Original-Received: from mxsf08.insightbb.com ([74.128.0.78]:65497) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0e6x-0006jB-O3 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 10:27:59 -0500 X-IronPort-AV: E=Sophos;i="4.33,597,1220241600"; d="scan'208";a="583558672" Original-Received: from unknown (HELO asav01.insightbb.com) ([172.31.249.124]) by mxsf08.insightbb.com with ESMTP; 13 Nov 2008 10:27:58 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAOrVG0nQtO5+/2dsb2JhbADGFQIBhmeEQoJaAXw X-IronPort-AV: E=Sophos;i="4.33,597,1220241600"; d="scan'208";a="193017762" Original-Received: from zeus.stata.com (HELO goliath.stata.com) ([208.180.238.126]) by asavout01.insightbb.com with ESMTP; 13 Nov 2008 10:27:58 -0500 X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Thu, 13 Nov 2008 11:28:18 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59742 Archived-At: I would like to use aliases in (shell-command ...) or (call-process region ...). Even if I tell the latter to behave as a login shell, and make sure that the aliases are available to the login shell, I cannot get them to execute. The shell can see the aliases without any problem, because I can send the -alias- command and get the list of aliases. It seems to me that elisp is trying to see if the command is defined before running it, instead of simply letting the shell chew on whatever was sent to it. This could be a grave misconception. In any case, is there are way to be able to use aliases within any of the 'execute this line/region without starting a buffer with a shell' commands? Thanks, Bill