From: Michael Ekstrand <michael@elehack.net>
To: emacs-orgmode@gnu.org
Subject: Undesired behavior in `org-insert-link' when link contians "File:"
Date: Mon, 17 Nov 2008 22:56:55 -0600 [thread overview]
Message-ID: <87ej19k4x4.fsf@elehack.net> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1159 bytes --]
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 rewriting 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.
- Michael
--
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 <http://www.elehack.net/resources/gpg>.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
reply other threads:[~2008-11-18 4:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej19k4x4.fsf@elehack.net \
--to=michael@elehack.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.