[Top][All Lists]

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

Re: axiom mode

From: Martin Rubey
Subject: Re: axiom mode
Date: 10 Jun 2007 16:24:32 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

martin rudalics <address@hidden> writes:

>  > * write clean initalisation code.  In particular, it should be possible to
>  > have several buffers with different axiom processes, just like in shell
>  > mode.  I looked at shell.el, but fail to understand it.
> In `axiom-run' make `axiom-process' buffer local
> (set (make-local-variable 'axiom-process)
>       (get-buffer-process (current-buffer)))
> This will render `axiom-buffer' meaningless.  Hence, in `axiom' you have to
> always make a new process and in `axiom-mode-new-axiom-process' you should
> remove things like
>      (delete-process axiom-process)
>      (kill-buffer (axiom-buffer))
> BTW after killing `axiom-process' which buffer is `axiom-buffer'
> supposed to return?  Do you really always want to kill the current
> buffer here?

To be honest, I don't understand this code at all, it's not mine.  What I would
like to have is the behaviour of shell mode: usually M-x axiom should switch to
the running axiom, but optionally, something like

(add-hook 'shell-mode-hook (lambda () (rename-uniquely)))

or renaming the current axiom buffer should give us a new axiom.

many thanks,


reply via email to

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