From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vb Newsgroups: gmane.emacs.help Subject: Re: current directory Date: Mon, 23 Oct 2006 11:58:12 -0700 Message-ID: <200610231158.12343.help-gnu-emacs@vsbe.com> References: <453d0ae6$0$49201$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161629966 302 80.91.229.2 (23 Oct 2006 18:59:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 18:59:26 +0000 (UTC) Cc: "Colin S. Miller" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 23 20:59:21 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 1Gc50Q-0001D5-Cq for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Oct 2006 20:58:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc50P-0003IX-L2 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Oct 2006 14:58:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc509-0003GH-Nc for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 14:58:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc504-00038Y-Fb for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 14:58:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc504-00038J-AP for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 14:58:16 -0400 Original-Received: from [217.160.230.40] (helo=mout.perfora.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc504-0003GN-Dr for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 14:58:16 -0400 Original-Received: from [66.17.149.13] (helo=dhcp-10-64-129-2.riverstonenet.com) by mrelay.perfora.net (node=mrelayus0) with ESMTP (Nemesis), id 0MKoyl-1Gc5011bNv-0004PN; Mon, 23 Oct 2006 14:58:15 -0400 Original-To: help-gnu-emacs@gnu.org User-Agent: KMail/1.9.1 In-Reply-To: <453d0ae6$0$49201$14726298@news.sunsite.dk> Content-Disposition: inline X-Provags-ID: perfora.net abuse@perfora.net login:105503e63a43ed9a8b379992658ba53b 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:38209 Archived-At: Colin, thank you for your suggestions, please see below: On Monday 23 October 2006 11:33, Colin S. Miller wrote: > 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. > oh well, they don't get any smarter then, do they ;-). > > 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 > I tried that, and for some reason this is what I get when I hit the C-h k 'keypad asterisk': ===================================================== * runs the command c-electric-star which is an interactive compiled Lisp function in `cc-cmds'. (c-electric-star ARG) Insert a star character. If the star is the second character of a C style comment introducing construct, and we are on a comment-only-line, indent line as comment. If a numeric ARG is supplied, point is inside a literal, or `c-syntactic-indentation' is nil, indentation is inhibited. ====================================================== and this is what I get when hitting the asterisk on the same key with '8': ====================================================== * runs the command self-insert-command (self-insert-command N) which is an interactive built-in function. Insert the character you type. Whichever character you type to run this command is inserted. ====================================================== for some reason the both keys are called the same (*), but have different functions assigned - somewhat confusing (to me anyway) > > BTW, > in answer to your original question, > you could make the call-progress run > "cd /a/b/c && ./myScript.sh" > yes, this is exactly what I was looking for - I did not know how far 'call-process' would go to allow to invoke two commands instead of one and did not try different variants. > It is possible for emacs to record its starting directory, > and add the cd for you. > > > HTH, It sure does, thank you again for this suggestion, cheers, /vb > Colin S. Miller