From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uEKsCDKARl8AbgAA0tVLHw (envelope-from ) for ; Wed, 26 Aug 2020 15:30:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6DeGBDKARl/cJgAAbx9fmQ (envelope-from ) for ; Wed, 26 Aug 2020 15:30:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CC38F94050D for ; Wed, 26 Aug 2020 15:30:57 +0000 (UTC) Received: from localhost ([::1]:42570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAxO4-00070t-Nu for larch@yhetil.org; Wed, 26 Aug 2020 11:30:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAxNL-0006yo-Go for emacs-orgmode@gnu.org; Wed, 26 Aug 2020 11:30:11 -0400 Received: from server173-4.web-hosting.com ([68.65.122.210]:49217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAxNJ-0006Ff-1M for emacs-orgmode@gnu.org; Wed, 26 Aug 2020 11:30:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eYLUm1vTYnhH+F2GXE5C/DZWYH2yYE7/VOgfdLiotMQ=; b=WnWC+BxBs4tV2Jrxa6YqfWc9+q 8YWgN2CqlWZ8eljffxqpWI/OOZKoPWaDdHBtq0HUYnkcKEs/aM8pkROjSDr/EEFPXfg+LziyqjJ1A BKlWA6iq2jaaJV9oD8Q8WkfTAaFnUkKPagbX0Uw++ELeCMsRmz88f3hSdNqxhqgNWdr6/lvyhi17Z mQupUqSoNfHKJhQYWmdYNjZYXp5RlOgf1tEVt8eUYJYgk2r8kGj6cwPG9uStXrX0uk+iez3o+9Igk EzkZwa3aY3fwbA/3I9n/HT8cNXAwtsQGjYK8kSJaaNn4eoIbsbvmMndR/uGWrRxHC+XYepG/NjKqE lUwu7jAQ==; Received: from [::1] (port=39332 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1kAxMW-003vZ9-8p for emacs-orgmode@gnu.org; Wed, 26 Aug 2020 11:29:24 -0400 MIME-Version: 1.0 Date: Wed, 26 Aug 2020 11:29:20 -0400 From: TRS-80 To: emacs-orgmode@gnu.org Subject: org-link-set-parameters :complete how to prompt for description? Message-ID: <63e143a961c8eec498b0cfe234794df6@isnotmyreal.name> X-Sender: orgmode.trs-80@isnotmyreal.name User-Agent: Roundcube Webmail/1.3.13 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: trs-80@isnotmyreal.name X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: rewritten was: [orgmode.trs-80@isnotmyreal.name], actual sender does not match Received-SPF: pass client-ip=68.65.122.210; envelope-from=orgmode.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/26 11:29:25 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=isnotmyreal.name header.s=default header.b=WnWC+BxB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.99 X-TUID: cIGD3S3xWLbC Good day, everyone! I have been trying to create a new custom link type with org-link-set-parameters, which in turn calls functions for the various "methods" (for lack of a better term), like so: (org-link-set-parameters "zdlink" :complete #'my-zetteldeft-org-complete-link :follow #'my-zetteldeft-org-follow-link :help-echo #'my-zetteldeft-org-help-echo :store #'my-zetteldeft-org-store-link) The only one I seem to be having trouble with is :complete. I can get it to prompt me for completing-read, and it returns the link portion only, but how to get it to also prompt for a description? Here is my :complete function: (defun my-zetteldeft-org-complete-link () "Link completion for Org zdlink type links" (let* ((file (completing-read "File to link to: " (deft-find-all-files-no-prefix))) (link (zetteldeft--lift-id file))) (unless link (user-error "No file selected")) (concat "zdlink:" link))) I searched the Internet, this mailing list archives, etc. high and low, all to no avail. So I decide to join the mailing list today. Probably long overdue anyway. :) Any tips would be greatly appreciated. Cheers, TRS-80