emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Turning a link into a non-link


From: Nick Dokos
Subject: Re: [O] Turning a link into a non-link
Date: Sun, 05 Feb 2012 02:28:46 -0500

François Pinard <address@hidden> wrote:

> Hi, Org mode people.
> 
> I sometimes want to turn [[POINTER][COMMENT]] into COMMENT.  That is, I
> want to remove the clickability, but retain the text.
> 
> To do so, I try `C-c C-l', empty the pointer, type RET, leave the
> comment as it is, and type RET.  Org mode reacts by writing "Empty link"
> in the minibuffer, and removing the COMMENT from the text.
> 

This is done by org-make-link-string: it considers an empty link to
be an error. If you toggle-debug-on-error, you will get a backtrace.

> Could it keep COMMENT in the text, instead of deleting it?
> 

IMO, that'd be bad programming practice: you should write a separate
function that unlinks the link.

Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]