From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Re: Two separate emacs running ?? Date: Fri, 17 Aug 2007 12:54:21 -0400 Message-ID: <1187369661.17619.145.camel@CASE> References: <87r6m2ywja.fsf@thalassa.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187369677 31827 80.91.229.12 (17 Aug 2007 16:54:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 16:54:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Pascal Bourguignon Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 17 18:54:34 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 1IM55k-00043G-Ud for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 18:54:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM55k-0003Fe-Sy for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 12:54:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IM55N-0003DX-6T for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 12:54:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IM55M-0003CQ-Bu for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 12:54:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM55M-0003C5-47 for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 12:54:08 -0400 Original-Received: from smtp108.rog.mail.re2.yahoo.com ([68.142.225.206]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IM55L-0005EE-A5 for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 12:54:07 -0400 Original-Received: (qmail 52854 invoked from network); 17 Aug 2007 16:54:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=UWIJBPMewGxiB70s37vhF5Idy9wlta3AhlYOYmuFj+wCZRXkSGJOhCGytKUQt+c/vFcXngyzvpjiA9p2lF0OVeu4RzoSV2e0kZiP62guTfnsxzM/EtmGSnZ8O0e6vkIr/fR1XVt4WqD0xLZZeYckBkCDXO8HHKE6es/XpJbCJVg= ; Original-Received: from unknown (HELO ?192.168.1.5?) (billlinux@rogers.com@74.104.51.86 with plain) by smtp108.rog.mail.re2.yahoo.com with SMTP; 17 Aug 2007 16:54:06 -0000 X-YMail-OSG: svMw9coVM1k1OGi86n8xFcJEx6eP6HyoZqy_M9isQkJXS9xv4yqzr06VSaHFKNyVgw-- In-Reply-To: <87r6m2ywja.fsf@thalassa.informatimago.com> X-Mailer: Evolution 2.10.3 (2.10.3-2.fc7) X-Detected-Kernel: Genre and OS details not recognized. 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:46644 Archived-At: Thanks Pascal; Your suggestions and my last post passed in the night. On Fri, 2007-08-17 at 18:07 +0200, Pascal Bourguignon wrote: > William Case writes: > > Has anybody else done the same? > > Yes. Aquamacs uses frames for special purposes intensively, you could > take example on the code there. > > > > Could you point me to an existing solution? > > I would add a find-file-hook and test for these specific files, and in > the hook set the frame as I want. For merely one file, I wouldn't > use another emacs instances (though there's one parameter that cannot > be made different in different frames: the frame border use the same > face on all frames). Only for a process, since emacs isn't threaded, > a long operation in a process can freeze emacs for some time, so I may > use a different emacs for erc and gnus. If you use a different emacs, > you need to use the window manager to focus on one emacs or another, > while with a single emacs, you can focus to another frame with C-x 5 > o. But of course, if you use ratpoison, it can be workable, since > then you can just type C-t o. > > > > [...] > > I thought of constructing a /.emacs2 file and having a completely new or > > separate instance of emacs for these files. How would I do that so that > > emacs2 could find /.emacs2 and not /.emacs on start up, if it is even > > possible? > > Probably. Have you tried man emacs or emacs --help? > I started there. > > > What I do, when I want to launch special purpose emacsen, is: > > alias special-purpose='emacs --eval "(my-special-purpose-function)"' > > and I set the defaults specially in my-special-purpose-function, > loaded from my normal '~/.emacs'. > > I prefer to keep one .emacs (even across different systems!), and test > inside it for the special circumstances, using these variables and > others: > > ;; system-type darwin gnu/linux cygwin > ;; system-name "naiad.informatimago.com" "host.example.com" > ;; system-configuration "i686-pc-linux-gnu" "i686-pc-cygwin" > ;; window-system nil x mac w32 > ;; emacs-major-version 18 19 20 21 > ;; emacs-minor-version 0 1 2 3 > ;; emacs-version "20.7.2" "21.2.1" Your suggestions are within the bounds of what I already know (or think I know, anyways) so I'll try that. Creating a new major mode might be a reach for me. -- Regards Bill