From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Emacs bindings in other programs Date: Sat, 03 Nov 2007 11:37:53 +1100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87d4usupsu.fsf@lion.rapttech.com.au> References: <1193416413.534581.16220@v3g2000hsg.googlegroups.com> <1193789751.765503.186620@22g2000hsm.googlegroups.com> <9qodefybby.fsf@aquin.mat.univie.ac.at> <9qsl3r9nom.fsf@aquin.mat.univie.ac.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194050436 28051 80.91.229.12 (3 Nov 2007 00:40:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2007 00:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 03 01:40:38 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 1Io740-0001hB-UE for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Nov 2007 01:40:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Io73q-0000bT-Ib for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 20:40:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-02!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:FKBaUQ1rzZQqPjqwx4J7KUxgPK0= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 42 Original-Xref: shelby.stanford.edu gnu.emacs.help:153515 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:48999 Archived-At: Martin Rubey writes: > Stefan Monnier writes: > >> > What happens to me all the time is that I hit C-x b and expect emacs >> > switch to the dvi or pdf viewer, or konqueror or whatever, or, if in such >> > an application, switch back to emacs... >> >> With doc-view.el you can view your dvi/pdf files directly inside Emacs. > > Yes, but I'm really after something else. There will always be applications > that are "outside" of emacs but nevertheless great to use. > > Apart from that, I'd be surprised if docview were as fast as a traditional > viewer for larger documents. (Especially when I'm editing them, so caching > won't help) > > Martin Note that you can call other X apps from within emacs as a sub-process, you just can't run them 'within' emacs itself. The downside is that you don't get real integration. for example, auctex will start xdvi to view a dvi file, browse-url can start/send urls to an external browser and I think there are a couple of packages out there that can be used to cause dired to open specific viewers for certain file types. Many emacs mail readers also support this for mime types that cannot be shown natively in emacs. However, because its not truely integrated into emacs, you cannot do things like switch to the buffer with the normal (or even add-on) buffer switching mechanisms. I've taken a slightly different approach. I'm running the sawfish window manager, which is written in 'rep', a lisp/scheme like window manager that is extensible in a similar way to emacs. I use its mechanisms to switch workspaces, apps, windows etc. I also have some integration between emacs and sawfish. Tim -- tcross (at) rapttech dot com dot au