Re: [O] org-insert-link with HTML title as default description

2012-09-29 Thread Sylvain Rousseau
This is definitely better! Your version is actually more faithful to the original one as it ignores `default-description' when `org-make-link-description-function' is set (and succeed). Cheers, Sylvain.

Re: [O] org-insert-link with HTML title as default description

2012-09-29 Thread Bastien
Hi Sylvain, Sylvain Rousseau writes: > This can be done by setting the function > `org-make-link-description-function'. However when set, the function > is supposed to handle all type of links and return a string no matter > what. There is no fallback mechanism. Here is a patch that fixes it: T

Re: [O] org-insert-link with HTML title as default description

2012-09-29 Thread Miro Bezjak
Hi Sylvain, Bastien, I have indeed noticed `org-make-link-description-function'. Though, from its documentation I've somehow concluded that it makes the final (and not default) description. By rereading documentation and source code for `org-insert-link', it appears that with addition of Sylvain's

Re: [O] org-insert-link with HTML title as default description

2012-09-29 Thread Sylvain Rousseau
Hi Miro and Bastien, This can be done by setting the function `org-make-link-description-function'. However when set, the function is supposed to handle all type of links and return a string no matter what. There is no fallback mechanism. Here is a patch that fixes it: diff --git a/lisp/org.el b

Re: [O] org-insert-link with HTML title as default description

2012-09-29 Thread Bastien
Hi Miro, Miro Bezjak writes: > That having been said, I've hacked together two functions that are > useful to me. I was wondering what are your thoughts on including > their idea (but with a better implementation) to org-mode? Nice. I'm not really in favor of including this command because it

[O] org-insert-link with HTML title as default description

2012-09-29 Thread Miro Bezjak
Hi all. I'm new to the whole emacs/elisp/org-mode thing and I have to say I'm amazed by it. Thank you for all the hard work. That having been said, I've hacked together two functions that are useful to me. I was wondering what are your thoughts on including their idea (but with a better implement