From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Rubey Newsgroups: gmane.emacs.help Subject: Re: axiom mode Date: 10 Jun 2007 16:24:32 +0200 Message-ID: <9qejkjkhun.fsf@aquin.mat.univie.ac.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181486442 12262 80.91.229.12 (10 Jun 2007 14:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2007 14:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 16:40:40 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HxOao-00034C-1w for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2007 16:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxOan-0002ju-DH for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2007 10:40:33 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!news-fra1.dfn.de!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Lines: 33 Original-NNTP-Posting-Host: aquin.mat.univie.ac.at Original-X-Trace: 1181485472 usenet.univie.ac.at 10578 131.130.16.163 Original-X-Complaints-To: abuse@univie.ac.at Original-Xref: shelby.stanford.edu gnu.emacs.help:149256 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:44844 Archived-At: martin rudalics 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