From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: file link format question - How to format link when square brackets [ ] are already in filename? Date: Tue, 02 Feb 2010 21:38:21 +0100 Message-ID: <87wryve5ky.wl%maus.david@gmail.com> References: <4B680377.30601@fastmail.fm> <877hqvfue9.wl%maus.david@gmail.com> <4B68805F.9000605@fastmail.fm> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============0213154800==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcPW3-0003tq-7P for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:38:31 -0500 Received: from [199.232.76.173] (port=37902 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcPW2-0003ti-VG for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:38:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcPW0-0005dc-56 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:38:30 -0500 Received: from mail-fx0-f215.google.com ([209.85.220.215]:65471) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcPVz-0005dM-Oo for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:38:27 -0500 Received: by fxm7 with SMTP id 7so559218fxm.8 for ; Tue, 02 Feb 2010 12:38:26 -0800 (PST) In-Reply-To: <4B68805F.9000605@fastmail.fm> 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: erwinpanen@fastmail.fm Cc: emacs-orgmode@gnu.org --===============0213154800== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Feb__2_21:38:17_2010-1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Tue_Feb__2_21:38:17_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Erwin, At Tue, 02 Feb 2010 20:43:27 +0100, Erwin Panen wrote: >=20 > Hi David, >=20 > Thanks for replying; > I don't understand what you mean. I was not aware off url-encoding, but f= ound help here: http://www.eskimo.com/~bloo/ > indexdot/html/topics/urlencoding.htm > So far so good. > The way I interpret this is that I can 'replace' [square brackets] in org= mode=C2=A0 with %5Bsquare brackets%5D That's exactly what I meant. The behaviour you notice when /not/ encoding the square brackets is absolutely correct because of the way Orgmode works: If you display a file in org-mode, the Orgmode functions interpret the file's content and change the way certain portions of the file look ("folding" of the link, i.e. only display the description) and what you can do on this regions (i.e. open the link). So there is for instance a pattern that "tells" Orgmode that something is a link: [[]] is recognized as a link with a target (first set of characters) and a description (second set of characters). If there are literal square brackets in either the description or the target, Orgmode simply does not recognize the string as a link. The same principle (interpreting strings/a sequence of characters) causes Orgmode to recognize the [32] as a footnote. Why? Because there is a definition that says the "a number between two square brakets is a footnote". > However when I try this, org does not 'convert' to a link...? What > am I missing? Strange. What Emacs and Orgmode version do you use?[1] I use=20 "GNU Emacs 23.1.92.1 (i486-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-01-31 on elegiac, modified by Debian" with "Org-mode version 6.34trans (release_6.34c.65.g45c58)" For me encoding the square brackets in the link name with %5B and %5D works. That is: Emacs/Orgmode "collapses" the link and only displays the description part. ,---- | [[\\Dcerouter\public\videos\STORY_Station (sdb1)-CORE %5B32%5D\Les Rivi= =C3=A8res Pourpres 720x304\The Crimson Rivers.mkv][The Crimson Rivers.mkv]] `---- gives: ,---- | The Crimson Rivers.mkv `---- Regards, -- David [1] To find out your version simply execute "org-version" (M-x org-version RET) and "emacs-version" (M-x emacs-version RET) and switch to the buffer called "*Messages*" to see the version strings of Emacs and Orgmode. --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... maus.david@gmail.com --pgp-sign-Multipart_Tue_Feb__2_21:38:17_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAktojT0ACgkQma24O1pEeOZLlQD+PcXCeMFF/V02hhabt6dJAoGm Y/w1vSkxK5OI9U4PReQBAJmfvknCeoV+TJz0V1QdDWjT/SDWmGG7vVbc+f5Bl4LZ =yfD4 -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Feb__2_21:38:17_2010-1-- --===============0213154800== 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 --===============0213154800==--