From: Bastien <bzg@altern.org>
To: Sylvain Rousseau <thisirs@gmail.com>
Cc: emacs-orgmode@gnu.org, Miro Bezjak <bezjak.miro@gmail.com>
Subject: Re: org-insert-link with HTML title as default description
Date: Sat, 29 Sep 2012 22:53:47 +0200 [thread overview]
Message-ID: <874nmgh7ok.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CAJ8n830FbuEWrv=xSBsaO3Fx1ZxAhKwNrsSf=_hABLBOfFyd8Q@mail.gmail.com> (Sylvain Rousseau's message of "Sat, 29 Sep 2012 17:09:15 +0200")
Hi Sylvain,
Sylvain Rousseau <thisirs@gmail.com> 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:
Thanks for pointing at this -- I implemented a different fallback
that interactively prompt for a description when the adhoc function
fails (I also prevented an error in this function to stop the
insertion of a link.)
Let me know if this is okay for you.
Best,
--
Bastien
next prev parent reply other threads:[~2012-09-29 20:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-29 12:23 org-insert-link with HTML title as default description Miro Bezjak
2012-09-29 14:42 ` Bastien
2012-09-29 15:09 ` Sylvain Rousseau
2012-09-29 18:43 ` Miro Bezjak
2012-09-29 20:53 ` Bastien [this message]
2012-09-29 23:00 ` Sylvain Rousseau
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=874nmgh7ok.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=bezjak.miro@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=thisirs@gmail.com \
/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.