From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-insert-link with HTML title as default description Date: Sat, 29 Sep 2012 22:53:47 +0200 Message-ID: <874nmgh7ok.fsf@bzg.ath.cx> References: <87r4pklwkb.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI42i-0000wd-PV for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 16:53:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TI42h-0000sp-RN for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 16:53:44 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:47397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI42h-0000sk-Ky for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 16:53:43 -0400 Received: by weyu3 with SMTP id u3so2336180wey.0 for ; Sat, 29 Sep 2012 13:53:42 -0700 (PDT) In-Reply-To: (Sylvain Rousseau's message of "Sat, 29 Sep 2012 17:09:15 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sylvain Rousseau Cc: emacs-orgmode@gnu.org, Miro Bezjak 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: 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