From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: Re: don't require path hints for *shell* Date: Thu, 28 Feb 2008 16:41:36 -0500 Message-ID: <87hcfsvjvz.fsf@stupidchicken.com> References: <87tzlq7d1c.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204235041 16014 80.91.229.12 (28 Feb 2008 21:44:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 21:44:01 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 28 22:44:25 2008 Return-path: Envelope-to: geb-bug-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 1JUqY0-0007gJ-Tx for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 22:44:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUqXU-0004Sm-Az for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 16:43:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUqXO-0004SX-VF for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2008 16:43:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUqXM-0004SB-FK for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2008 16:43:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUqXM-0004S8-A7 for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2008 16:43:32 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUqXL-0007SE-RA for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2008 16:43:32 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JUqXD-0004oS-Ix for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2008 21:43:23 +0000 Original-Received: from cyd.mit.edu ([18.115.2.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Feb 2008 21:43:23 +0000 Original-Received: from cyd by cyd.mit.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Feb 2008 21:43:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cyd.mit.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux) Cancel-Lock: sha1:/zzydVCnQemfFN7tWjjRnlACszc= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17615 Archived-At: jidanni@jidanni.org writes: > Why do we have to give *shell* a hint (./) to get it to expand paths? > $ emacs -Q -f shell > c d SPC . / > Bash needs no hint. Act like bash as the default, please. > emacs-version "22.1.1" The following patch implements this behavior. If no one objects, I'll check it into the trunk shortly. *** emacs/lisp/shell.el.~1.149.2.4.~ 2008-01-10 10:25:37.000000000 -0500 --- emacs/lisp/shell.el 2008-02-28 16:34:30.000000000 -0500 *************** *** 191,197 **** shell-dynamic-complete-environment-variable shell-dynamic-complete-command shell-replace-by-expanded-directory ! comint-dynamic-complete-filename) "List of functions called to perform completion. This variable is used to initialize `comint-dynamic-complete-functions' in the shell buffer. --- 191,197 ---- shell-dynamic-complete-environment-variable shell-dynamic-complete-command shell-replace-by-expanded-directory ! comint-dynamic-complete-as-filename) "List of functions called to perform completion. This variable is used to initialize `comint-dynamic-complete-functions' in the shell buffer.