help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: current directory


From: vb
Subject: Re: current directory
Date: Mon, 23 Oct 2006 11:58:12 -0700
User-agent: KMail/1.9.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]