all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Rubey <axiomize@yahoo.de>
To: help-gnu-emacs@gnu.org
Subject: Re: axiom mode
Date: 10 Jun 2007 16:24:32 +0200	[thread overview]
Message-ID: <9qejkjkhun.fsf@aquin.mat.univie.ac.at> (raw)
In-Reply-To: mailman.1862.1181477508.32220.help-gnu-emacs@gnu.org

martin rudalics <rudalics@gmx.at> 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,

Martin

       reply	other threads:[~2007-06-10 14:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1862.1181477508.32220.help-gnu-emacs@gnu.org>
2007-06-10 14:24 ` Martin Rubey [this message]
     [not found] <mailman.1911.1181551178.32220.help-gnu-emacs@gnu.org>
2007-06-11  9:11 ` axiom mode Martin Rubey
2007-06-11  8:39 martin rudalics
2007-06-11 12:45 ` martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2007-06-10 12:11 martin rudalics
     [not found] <9qd505x9pf.fsf@aquin.mat.univie.ac.at>
2007-06-09 21:10 ` Martin Rubey
2007-06-09 18:29 Martin Rubey
2007-06-09 21:50 ` Tom Tromey
     [not found] ` <mailman.1841.1181428556.32220.help-gnu-emacs@gnu.org>
2007-06-10  6:41   ` Martin Rubey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9qejkjkhun.fsf@aquin.mat.univie.ac.at \
    --to=axiomize@yahoo.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.