From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ekstrand Subject: Undesired behavior in `org-insert-link' when link contians "File:" Date: Mon, 17 Nov 2008 22:56:55 -0600 Message-ID: <87ej19k4x4.fsf@elehack.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1343733078==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2Ife-000485-8h for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 23:58:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2Ifa-00047h-KT for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 23:58:36 -0500 Received: from [199.232.76.173] (port=58018 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2Ifa-00047e-G0 for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 23:58:34 -0500 Received: from main.gmane.org ([80.91.229.2]:34203 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 1L2Ifa-0000iF-3y for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 23:58:34 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L2IfV-000535-HI for emacs-orgmode@gnu.org; Tue, 18 Nov 2008 04:58:29 +0000 Received: from elehack.net ([216.243.177.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2008 04:58:29 +0000 Received: from michael by elehack.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2008 04:58:29 +0000 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 --===============1343733078== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable I've been trying to work with links to man pages in Org (using org-man.el). When I try to create a link to a Perl module in the File package namespace, however, `org-insert-link' tries to do its same-file link detection and winds up breaking the link. The result is that the link man:File::MimeInfo gets rewritten to file::MimeInfo Naturally, this isn't what I want. Looking at `org-insert-link', it seems that the problem may be that its same-file link detection is matching 'file:' at beginning-of-word, which it is in this case. In the general case for which 'file:' detection is being used, is there a reason to match against `\<' rather than `^' or `^[[:space:]]*'? Changing to one of the latter two expressions would, I believe, keep it From=20rewriting these links I am trying to create. Other solutions/workarounds are welcome, of course. BTW, this is in org-mode 6.12a from Emacs CVS. =2D Michael =2D-=20 mouse, n: A device for pointing at the xterm in which you want to type. Confused by the strange files? I cryptographically sign my messages. For more information see . --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkiSxcACgkQJMBfXHjb5YU8CwCeO/hSOceUsBVe4zPUQYGURCdf +loAnREKA8QlqZxWVuWf8edKdx9RF23o =70AA -----END PGP SIGNATURE----- --=-=-=-- --===============1343733078== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1343733078==--