From mboxrd@z Thu Jan 1 00:00:00 1970 From: C64 Whiz Subject: Re: .ods opens file in Emacs, not OpenOffice Date: Tue, 27 Jul 2010 11:12:39 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0089111254==" Return-path: Received: from [140.186.70.92] (port=35019 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ododt-0007KB-V2 for emacs-orgmode@gnu.org; Tue, 27 Jul 2010 14:12:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odods-0002yb-OI for emacs-orgmode@gnu.org; Tue, 27 Jul 2010 14:12:41 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:62816) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odods-0002yU-GS for emacs-orgmode@gnu.org; Tue, 27 Jul 2010 14:12:40 -0400 Received: by wyg36 with SMTP id 36so3833269wyg.0 for ; Tue, 27 Jul 2010 11:12:39 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0089111254== Content-Type: multipart/alternative; boundary=001636e0a79c547e07048c627268 --001636e0a79c547e07048c627268 Content-Type: text/plain; charset=ISO-8859-1 Though I love the command line, I was hoping for a mouse-click solution. I.e. I click on the link and it properly opens up in OO. On Tue, Jul 27, 2010 at 8:28 AM, Anthony Lander wrote: > > On 10-Jul-26, at 8:54 PM, C64 Whiz wrote: > > Hello, >> >> I've searched for an answer but can't find a simple one. I have an >> OpenOffice document (.ods) I'd like to link to in my .org files. So I have >> the following syntax: >> >> [[file:c:/mydata/myfile.ods][File Description]] >> >> When I click on the link in OrgMode, Emacs opens the file and not >> OpenOffice. Yet, when I'm in file explorer (yes, Windows), double clicking >> the file does open up Open Office. So I know the association is there. >> > > Try C-u C-c C-o. On my mac, that switches whether the link opens in emacs > or through the operating system file association (although mine is the > reverse. With the prefix it opens in emacs. Not sure why). From the > doc-string for org-open-at-point: > > (org-open-at-point &optional IN-EMACS REFERENCE-BUFFER) > > Open link at or after point. > If there is no link at point, this function will search forward up > to > the end of the current line. > Normally, files will be opened by an appropriate application. If > the > optional argument IN-EMACS is non-nil, Emacs will visit the file. > With a double prefix argument, try to open outside of Emacs, in the > application the system uses for this file type. > > Hope this helps, > > -Anthony > > --001636e0a79c547e07048c627268 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Though I love the command line, I was hoping for a mouse-click solution.=A0= I.e. I click on the link and it properly opens up in OO.

On Tue, Jul 27, 2010 at 8:28 AM, Anthony Lander <anthonylander@yahoo= .com> wrote:

On 10-Jul-26, at 8:54 PM, C64 Whiz wrote:

Hello,

I've searched for an answer but can't find a simple one. =A0I have = an OpenOffice document (.ods) I'd like to link to in my .org files. =A0= So I have the following syntax:

=A0[[file:c:/mydata/myfile.ods][File Description]]

When I click on the link in OrgMode, Emacs opens the file and not OpenOffic= e. =A0Yet, when I'm in file explorer (yes, Windows), double clicking th= e file does open up Open Office. =A0So I know the association is there.

Try C-u C-c C-o. On my mac, that switches whether the link opens in emacs o= r through the operating system file association (although mine is the rever= se. With the prefix it opens in emacs. Not sure why). From the doc-string f= or org-open-at-point:

=A0 =A0 =A0 =A0(org-open-at-point &optional IN-EMACS REFERENCE-BUFFER)=

=A0 =A0 =A0 =A0Open link at or after point.
=A0 =A0 =A0 =A0If there is no link at point, this function will search for= ward up to
=A0 =A0 =A0 =A0the end of the current line.
=A0 =A0 =A0 =A0Normally, files will be opened by an appropriate applicatio= n. =A0If the
=A0 =A0 =A0 =A0optional argument IN-EMACS is non-nil, Emacs will visit the= file.
=A0 =A0 =A0 =A0With a double prefix argument, try to open outside of Emacs= , in the
=A0 =A0 =A0 =A0application the system uses for this file type.

Hope this helps,

=A0-Anthony


--001636e0a79c547e07048c627268-- --===============0089111254== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0089111254==--