From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Newsgroups: gmane.emacs.help Subject: Re: Using bash aliases with auctex Date: Thu, 18 Jan 2007 15:39:33 +0100 Message-ID: <45AF86A5.5050402@warum-ada.de> References: <1169026806.592840.109420@11g2000cwr.googlegroups.com> <1169124292.688929.113340@s34g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169131200 25459 80.91.229.12 (18 Jan 2007 14:40:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 14:40:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 18 15:39:56 2007 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 1H7YQh-0006Ji-5l for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 15:39:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7YQh-0005XG-8w for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 09:39:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7YQW-0005VW-2q for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 09:39:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7YQS-0005VF-Cj for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 09:39:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7YQS-0005VC-BA for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 09:39:36 -0500 Original-Received: from [194.8.194.112] (helo=smtp2.netcologne.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7YQR-00034W-CB for help-gnu-emacs@gnu.org; Thu, 18 Jan 2007 09:39:35 -0500 Original-Received: from [192.168.0.4] (xdsl-87-78-117-175.netcologne.de [87.78.117.175]) by smtp2.netcologne.de (Postfix) with ESMTP id 3B2555EA6; Thu, 18 Jan 2007 15:39:34 +0100 (MET) User-Agent: Thunderbird 1.5.0.4 (X11/20060516) Original-To: Martin In-Reply-To: <1169124292.688929.113340@s34g2000cwa.googlegroups.com> 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:40417 Archived-At: Martin wrote: > > On Jan 17, 10:40 am, "Martin" > wrote: >> I'm having problems getting emacs to use my bash aliases. Specifically, >> when running auctex's view command on a latex buffer, xdvi gets called >> with default arguments, instead of my xdvi alias that all bash shells >> use. > > I now use .Xresources settings to get xdvi to behave like I want, so > the original problem is solved. It would still be interesting to know > how emacs reads aliases, though. Hi Martin, I don't think it's Emacs' fault at all. If started non-interactively, bash doesn't do any alias expansion. I believe you could try bash-functions instead (better than aliases anyway) or maybe call bash with the -i switch. Have fun ----Daniel