From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Vanderschel Newsgroups: gmane.emacs.help Subject: Opening a file from dired as OS would in Linux Date: Fri, 29 May 2009 17:09:21 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243617412 4662 80.91.229.12 (29 May 2009 17:16:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 17:16:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 29 19:16:47 2009 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 1MA5hH-00032E-3m for geh-help-gnu-emacs@m.gmane.org; Fri, 29 May 2009 19:16:47 +0200 Original-Received: from localhost ([127.0.0.1]:53219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA5hG-0004Vq-8h for geh-help-gnu-emacs@m.gmane.org; Fri, 29 May 2009 13:16:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MA5fp-0003kD-3L for help-gnu-emacs@gnu.org; Fri, 29 May 2009 13:15:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MA5fk-0003i3-9H for help-gnu-emacs@gnu.org; Fri, 29 May 2009 13:15:16 -0400 Original-Received: from [199.232.76.173] (port=40575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA5fi-0003hj-O2 for help-gnu-emacs@gnu.org; Fri, 29 May 2009 13:15:10 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:47916 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MA5fi-00025f-Cp for help-gnu-emacs@gnu.org; Fri, 29 May 2009 13:15:10 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MA5fa-0003Od-MX for help-gnu-emacs@gnu.org; Fri, 29 May 2009 17:15:03 +0000 Original-Received: from cpe-66-68-143-33.austin.res.rr.com ([66.68.143.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 May 2009 17:15:02 +0000 Original-Received: from DJV5 by cpe-66-68-143-33.austin.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 May 2009 17:15:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 66.68.143.33 (Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:64814 Archived-At: I have this handy function in my .emacs for Emacs on Windows: ;; dired stuff to open files a la Windows from Howard Melman (defun dired-execute-file (&optional arg) (interactive "P") (mapcar #'(lambda (file) (w32-shell-execute "open" (convert-standard-filename file))) (dired-get-marked-files nil arg))) I am now switching over to Ubuntu, and I do not know how to say the equivalent of "(w32-shell-execute "open" ...". But I would certainly like to be able to launch files from dired. E.g., open this .PDF file in the viewer. Maybe it is already there, but I have difficulty framing the question in an effective way for search. Thanks for any pointers.