From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: current directory Date: Mon, 23 Oct 2006 19:33:09 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <453d0ae6$0$49201$14726298@news.sunsite.dk> References: NNTP-Posting-Host: main.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 1161628970 28055 80.91.229.2 (23 Oct 2006 18:42:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 18:42:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 23 20:42:42 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gc4k8-0005U7-0i for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Oct 2006 20:41:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc4k7-0004MD-DD for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Oct 2006 14:41:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!colt.net!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Thunderbird 1.5.0.7 (X11/20060927) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 40 Original-NNTP-Posting-Host: 62.56.53.69 Original-X-Trace: news.sunsite.dk DXC=Q2<9; PEB?eb^Yj[LZVmDVlYSB=nbEKnkk=EO><:f6NB`G1[Bg<0aH5`\VT\m5_SIbfU_42Df:PaKhTcL2h5ahoTokF_>m>CYcVo:I\VJYmI50k9aS2IEM; dieoO 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:38208 Archived-At: vb wrote: > On Saturday 21 October 2006 11:38, don provan wrote: > > no, it would not be insane at all. All other editors but emacs I am used to > maintain a notion of "current directory" and allow the user to change this > current directory explicitly. The fact that emacs doesn't even have an > infrastructure for that just shows how off mark its approach is. > I find it interesting to note that in MS VC 6, File/Open defaulted to the last directory you open a file from, and MS VC .NET now defaults to the directory of the current file. > > As I said, look around, check out Crisp for instance, you would be surprised: > no long keystrokes, much wider use of keys (say astersk on the numeric keypad > and on the main keyboard are naturally assigned to different key codes _ > still have to find the way to achieve this with emacs, and I've tried!). You > can write macros in object oriented c-like language, not in this weird lisp > which is a remnant of computing stone age (I know, I know that it is still > used to teach students). (global-set-key 'kp-multiply 'switch-to-buffer) C-h k * indicates the internal name for keystrokes BTW, in answer to your original question, you could make the call-progress run "cd /a/b/c && ./myScript.sh" It is possible for emacs to record its starting directory, and add the cd for you. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.