From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Suppress linkification of external links possible? Date: Tue, 17 Feb 2009 22:27:22 +0100 Message-ID: References: <498334.41451.qm@web28308.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v930.3) 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 1LZXTU-0005CW-IP for emacs-orgmode@gnu.org; Tue, 17 Feb 2009 16:27:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZXTT-0005C8-9R for emacs-orgmode@gnu.org; Tue, 17 Feb 2009 16:27:27 -0500 Received: from [199.232.76.173] (port=44081 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZXTT-0005C5-2c for emacs-orgmode@gnu.org; Tue, 17 Feb 2009 16:27:27 -0500 Received: from nf-out-0910.google.com ([64.233.182.187]:62510) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZXTS-0006ca-LS for emacs-orgmode@gnu.org; Tue, 17 Feb 2009 16:27:26 -0500 Received: by nf-out-0910.google.com with SMTP id d3so355038nfc.26 for ; Tue, 17 Feb 2009 13:27:25 -0800 (PST) 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: Ulf Stegemann Cc: emacs-orgmode@gnu.org On Feb 17, 2009, at 2:05 PM, Ulf Stegemann wrote: > Thank you for all the quick responses :) > > Unfortunately, none of the proposed solutions really applies to the > problem I have (That's however entirely my fault, I should have made > things a bit clearer.). > > The workarounds (except for one) concentrate on making a link caused > by a > literal invalid address to become a valid link. However, what I like > to > achieve is some sort of escaping that prevents org-mode from > generating > a link at all (especially for HTML exporting). > > Giovanni Ridolfi wrote: > >> You can write: >> >> 1. [[ ][http://gateway.example.org]] >> ^^^ please note the space here >> when converted it should refer to >> http://your-server/yourfile# > > Works, but still creates a link. > >> 2. use valid addresses ;-) > > Unfortunately, this isn't an option. > > > Sebastian Rose wrote: > >> a dirty hackish aproach: >> >> (defun sr-no-link (href) >> "Links, that are no links" >> "#") >> >> (setq org-link-abbrev-alist >> '(("man" . "http://localhost/devel/man.php?q=man&what= >> %s") >> ;; ... many more ... >> ("dummy" . sr-no-link)) >> >> [[dummy:][http://gateway.example.org]] >> >> It's still displayed as link then, but the browsers do nothing ;-) > > Goes in the same direction: a link is still created. > > > Matthew Lundin wrote: > >> You can customize the variable org-activate-links and remove "plain" >> from the list. > > This would work (I guess), but is AFAIK to be set globally, thus > resulting in the loss of all other plain text links. > > What I was originally looking for was some sort of escape > character/special markup that would prevent creating links at all, > like > \http://...\ . This would also allow us to use other markups on plain > text links, something that - AFAIK - is currently not possible (like > =\http:...\=). Indeed, something like =http://a.com= should work, this is a bug. I have just fixed it. Using "=" does have a specified markup, but you can change it or add a new markup by customizing `org-emphasis-alist'. For example, you could make it look like this: (("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("=" org-code "" "" verbatim) ("~" org-verbatim "" "" verbatim) (";" org-verbatim "" "" verbatim)) where I have added the last line, so that ;http://google.com; will be interpreted verbatim, and typeset in italic. HTH - Carsten