From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Open link with different suffix in org mode Date: Thu, 21 Jan 2010 10:25:06 -0500 Message-ID: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0666809094==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXyuK-0003Ii-RX for emacs-orgmode@gnu.org; Thu, 21 Jan 2010 10:25:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXyuF-0003GV-Pm for emacs-orgmode@gnu.org; Thu, 21 Jan 2010 10:25:16 -0500 Received: from [199.232.76.173] (port=54733 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXyuF-0003GM-Li for emacs-orgmode@gnu.org; Thu, 21 Jan 2010 10:25:11 -0500 Received: from mail-ew0-f213.google.com ([209.85.219.213]:45227) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXyuF-00012Y-BA for emacs-orgmode@gnu.org; Thu, 21 Jan 2010 10:25:11 -0500 Received: by ewy5 with SMTP id 5so89551ewy.32 for ; Thu, 21 Jan 2010 07:25:09 -0800 (PST) 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 --===============0666809094== Content-Type: multipart/alternative; boundary=00504502d372d109dc047dae4e0a --00504502d372d109dc047dae4e0a Content-Type: text/plain; charset=ISO-8859-1 Hello Experts, I'm using Emacs 23.1.1 and org mode 6.34b. In the org file, if I use a link say [[./link.org][test]], it will open the link.org file in another buffer with orgmode. It will be also true, if I use [[./link.txt][link test]], which will open a link.txt file with Text mode. However, if I do the following: [[./test.info][test]], it will just hang there. It seems that org does not know how to deal with the .info suffix. Are there any way to set the org to open different link? I've read the org manual, but didn't find the solution. Any suggestions? Thanks! Xin --00504502d372d109dc047dae4e0a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Experts,

I'm using Emacs 23.1.1 and org mode 6.34b.=A0 In = the org file, if I use a link say [[./link.org<= /a>][test]], it will open the link.org file= in another buffer with orgmode. It will be also true, if I use [[./link.tx= t][link test]], which will open a link.txt file with Text mode. However, if= I do the following:

[[./test.info][test]], it will just ha= ng there. It seems that org does not know how to deal with the .info suffix= . Are there any way to set the org to open different link?
I've rea= d the org manual, but didn't find the solution. Any suggestions?

Thanks!

Xin

--00504502d372d109dc047dae4e0a-- --===============0666809094== 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 --===============0666809094==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Open link with different suffix in org mode Date: Fri, 22 Jan 2010 10:32:54 +0100 Message-ID: References: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYFt2-0003EX-5h for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:33:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYFsx-0003EI-2E for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:33:03 -0500 Received: from [199.232.76.173] (port=55793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYFsw-0003EF-S1 for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:32:58 -0500 Received: from mail-fx0-f209.google.com ([209.85.220.209]:52323) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYFsw-0007If-Gf for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:32:58 -0500 Received: by fxm1 with SMTP id 1so1032085fxm.16 for ; Fri, 22 Jan 2010 01:32:57 -0800 (PST) In-Reply-To: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> 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: Xin Shi Cc: emacs-orgmode On Jan 21, 2010, at 4:25 PM, Xin Shi wrote: > Hello Experts, > > I'm using Emacs 23.1.1 and org mode 6.34b. In the org file, if I > use a link say [[./link.org][test]], it will open the link.org file > in another buffer with orgmode. It will be also true, if I use [[./ > link.txt][link test]], which will open a link.txt file with Text > mode. However, if I do the following: > > [[./test.info][test]], it will just hang there. It seems that org > does not know how to deal with the .info suffix. Are there any way > to set the org to open different link? > I've read the org manual, but didn't find the solution. Any > suggestions? Hi Xin, one solution is to customize the variable org-file-apps and add to an entry like this: Choice: Value Menu Extension: \.info\' Choice: Value Menu Visit with Emacs Any file types that have an major-mode assigned to it using auto-mode-alist will already be visited by Emacs automatically, but .info is not one of those file types. So another solution would be something like the following in your setup. (add-to-list 'auto-mode-alist '("\\.info\\'" . text-mode)) Actualy, this is probably the better solution. HTH - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: Re: Open link with different suffix in org mode Date: Fri, 22 Jan 2010 10:45:02 +0100 Message-ID: <83ockmscbl.fsf@yahoo.it> References: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYG4l-0001I9-HN for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:45:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYG4c-000176-EG for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:45:06 -0500 Received: from [199.232.76.173] (port=35294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYG4c-00016n-B0 for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:45:02 -0500 Received: from slim-2a.inet.it ([213.92.5.122]:60986) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYG4b-0001El-H6 for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:45:01 -0500 In-Reply-To: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> (Xin Shi's message of "Thu, 21 Jan 2010 10:25:06 -0500") 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: Xin Shi Cc: emacs-orgmode Hi, Xin, Xin Shi writes: > Emacs 23.1.1 and org mode 6.34b. here: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Org-mode version 6.34 Windows XP PS3 > a link say [[./http://link.org][test]], it will open the > http://link.org file in another buffer with orgmode. [...] > [[./http://test.info][test]], it will just hang there. + [[file:fit.log][fit]] fit.log is opened with notepad + [[file:../../../a.info][test]] a.info is not opened: the message error, in Italian, translates in: eval: ShellExecute failed: None application is associated to the specified file for this operation > It seems that org does not know how to deal with the .info suffix. Well, I suspect that org calls the program defined in the mailcap file. Please check there if you have a program associated to the ".info" extension cheers, Giovanni From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Re: Open link with different suffix in org mode Date: Fri, 22 Jan 2010 08:55:24 -0500 Message-ID: <5236d6f91001220555v30789759i235fee227b40dd83@mail.gmail.com> References: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> <83ockmscbl.fsf@yahoo.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2095083813==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYJz6-0005Vi-FK for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 08:55:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYJz1-0005RT-T9 for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 08:55:35 -0500 Received: from [199.232.76.173] (port=33962 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYJz1-0005RO-KF for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 08:55:31 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:56713) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYJz1-0005Ye-7l for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 08:55:31 -0500 Received: by ewy24 with SMTP id 24so1334741ewy.26 for ; Fri, 22 Jan 2010 05:55:27 -0800 (PST) In-Reply-To: <83ockmscbl.fsf@yahoo.it> 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: Giovanni Ridolfi , Carsten Dominik Cc: emacs-orgmode --===============2095083813== Content-Type: multipart/alternative; boundary=00c09f8fe686d90e75047dc12bf7 --00c09f8fe686d90e75047dc12bf7 Content-Type: text/plain; charset=ISO-8859-1 Hi Carsten and Giovanni, I used (add-to-list 'auto-mode-alist '("\\.info\\'" . text-mode)) and it works! By the way, my system is GNU Linux. Thanks! Xin On Fri, Jan 22, 2010 at 4:45 AM, Giovanni Ridolfi wrote: > Hi, Xin, > > Xin Shi writes: > > > Emacs 23.1.1 and org mode 6.34b. > here: > GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON > Org-mode version 6.34 > Windows XP PS3 > > > a link say [[./http://link.org][test]], it will open the > > http://link.org file in another buffer with orgmode. > [...] > > [[./http://test.info][test]], it will just hang there. > > + [[file:fit.log][fit]] fit.log is opened with notepad > + [[file:../../../a.info][test]] a.info is not opened: > the message error, in Italian, translates in: > > eval: ShellExecute failed: None application is associated to the > specified file for this operation > > > It seems that org does not know how to deal with the .info suffix. > Well, I suspect that org calls the program defined in the mailcap file. > > Please check there if you have a program associated to the ".info" > extension > > cheers, > Giovanni > --00c09f8fe686d90e75047dc12bf7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Carsten and Giovanni,

I used (add-to-list 'auto-mode-alist &#= 39;("\\.info\\'" . text-mode)) and it works!

By the wa= y, my system is GNU Linux.

Thanks!

Xin


On Fri, Jan 22, 2010 at 4:45 AM, Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>= wrote:
Hi, Xin,

Xin Shi <shixin111@gmail.com&= gt; writes:

> Emacs 23.1.1 and org mode 6.34b.
here:
GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON
Org-mode version 6.34
Windows XP PS3

> a link say [[./http://li= nk.org][test]], it will open the
> http://link.org file= in another buffer with orgmode.
[...]
> [[./http://test.info][test]], it will just hang there.

+ [[file:fit.log][fit]] =A0fit.log =A0 is opened with notepad
+ [[file:../../../
a.info][t= est]] =A0a.info is not open= ed:
=A0the message error, in Italian, translates in:

eval: ShellExecute failed: None application is associated to the
specified file for this operation

> It seems that org does not know how to deal with the .info suffix.
Well, I suspect that org calls the program defined in the mailcap fil= e.

Please check there if you have a program associated to the ".info"= ; extension

cheers,
Giovanni

--00c09f8fe686d90e75047dc12bf7-- --===============2095083813== 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 --===============2095083813==--