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

2012-02-05 Thread François Pinard
pin...@iro.umontreal.ca (François Pinard) writes: >>> I sometimes want to turn [[POINTER][COMMENT]] into COMMENT. >> [...] you should write a separate function that unlinks the link. > OK, should easily be done on my side. Just in case useful to others, I did it this way: (defun fp-org-kill-l

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

2012-02-05 Thread François Pinard
Nick Dokos writes: > François Pinard wrote: >> I sometimes want to turn [[POINTER][COMMENT]] into COMMENT. > 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 [`C-c C-l' given an empty link]

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

2012-02-04 Thread Nick Dokos
François Pinard 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 rea

[O] Turning a link into a non-link

2012-02-04 Thread François Pinard
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 mini