From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: How to set org-make-link-description-function Date: Thu, 12 Apr 2018 17:54:41 -0700 Message-ID: <87bmeo53ji.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6n1s-0003Cw-GX for emacs-orgmode@gnu.org; Thu, 12 Apr 2018 20:57:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6n1p-0004kP-Av for emacs-orgmode@gnu.org; Thu, 12 Apr 2018 20:57:28 -0400 Received: from [195.159.176.226] (port=55139 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6n1p-0004jz-3m for emacs-orgmode@gnu.org; Thu, 12 Apr 2018 20:57:25 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f6mzg-0004XK-BU for emacs-orgmode@gnu.org; Fri, 13 Apr 2018 02:55:12 +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" To: emacs-orgmode@gnu.org I've coded Org link support for EBDB, a contact management package, where the :complete key looks like: (lambda () (format "ebdb:uuid/%s" (ebdb-record-uuid (ebdb-prompt-for-record (ebdb-records))))) Which prompts for a record based on the contact name, then inserts the contact's UUID as the link. The problem is that Org then prompts for a link description. I'd like to provide the contact name as a default description (the user has just typed it in, after all), but haven't figured out how to do that. Clearly `org-make-link-description-function' is meant to play this role, and it would work perfectly, but I don't know to set it. I can't set it globally, but also don't know how to let-bind it locally. How am I supposed to use it? Thanks, Eric