From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aB40Inw512EtVgAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 19:48:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yFvRHnw512HuxAAAauVa8A (envelope-from ) for ; Thu, 06 Jan 2022 19:48:28 +0100 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 0DF87306E1 for ; Thu, 6 Jan 2022 19:48:28 +0100 (CET) Received: from localhost ([::1]:58150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5XcK-0001MF-2P for larch@yhetil.org; Thu, 06 Jan 2022 13:36:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XbI-0001Lw-Dy for emacs-orgmode@gnu.org; Thu, 06 Jan 2022 13:35:00 -0500 Received: from mail.sift.net ([50.249.120.161]:59546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XbG-0004iZ-NZ for emacs-orgmode@gnu.org; Thu, 06 Jan 2022 13:35:00 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.sift.net (Postfix) with ESMTP id 25E1E8116562 for ; Thu, 6 Jan 2022 12:34:44 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sift.net; h= content-type:content-type:mime-version:message-id:x-mailer:date :date:subject:subject:from:from:received:received; s=sift-net; t=1641494083; x=1642358084; bh=Hn/1TrnnQMVL2+NtU/Uvm0V9ytxeAP/9 VjRP9iSUkD4=; b=dxbj8Bb6fFpIfdsSEgRZGk6dINRPOuRYVTcoldAHLpAuUMZ3 8uPtz8zDcEZf/FL2YqmtMPJXMEz2URhig3KOqsTuIIrBa8UEs33sFKbJePnVilbJ DVecaxSm/S4RbukNNzHlk6XrFd6t177wPvu7vPgc2lZl/lxdNm9UcRgeLG93fgNf EdoDq1KeWLnpHJDolYRa5tbPL8l1wsBDjd/L3Ic4D8nb1UJfo2mGBpmyCrxu8diA TDb5rk+E+/cSxRGjlwGTxx42QG0KJk3hfSF5TsCA0iZilYMWCFdt+63f/1LKxx1M Q481RqCKclt4vkDBrcDD1G57zFfw81Cmq0hyVA== X-Virus-Scanned: Debian amavisd-new at sift.net Received: from mail.sift.net ([127.0.0.1]) by localhost (mail.sift.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YwRl025RjH0D for ; Thu, 6 Jan 2022 12:34:43 -0600 (CST) Received: from [192.168.86.27] (162-219-230-90.fttp.usinternet.com [162.219.230.90]) (Authenticated sender: rpg) by mail.sift.net (Postfix) with ESMTPSA id 3BEED80E8317 for ; Thu, 6 Jan 2022 12:34:43 -0600 (CST) From: "Robert Goldman" To: emacs-orgmode@gnu.org Subject: [PATCH] Fix FAQ entry about mailto links. Date: Thu, 06 Jan 2022 12:34:31 -0600 X-Mailer: MailMate (1.13.2r5673) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=50.249.120.161; envelope-from=rpgoldman@sift.net; helo=mail.sift.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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.29 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-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641494908; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2ILLjp9QIUYSjtzT3chXNdp1Y0O6qptBXAB6s4LGcDU=; b=HlPQ39juJRJ5zYbq1y1FNBUmhJKVKFHAB6io7xtwNp1dtjFzQlPghs8Y2SjSQkT1Lk7cRy B6e80UpynLlexArPZtGj1tEjEkYRdbHSu/3WYxRL6TcK426/G13smUvDZm+nLUJOdrOIrH Xl+kbLwiSbt0Bn7GUFX2aPZnvlZPmawMQEYtbvxx/gqAmLZ/nZ2PiDwNIpsBk3Jjp9Z94V jrZdg7EEfJC/p23Jz1RtQu4MlzGR9p+ZvVUK9CNgy2nBu35O6lfbtP8GEpulwlWSDM3IJG OTDM/nJLowk6+cCtZLBTegTRl9Tv7w34Jf7KNoO3FbeKGZAkmAzmOgO2GdqpYg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641494908; a=rsa-sha256; cv=none; b=Nz0/qLWBdgqoagKCTOvDjAOxXrZJQS8uVdXFDrw+4uH87CaJjHhk5W2iMMflCgf7l2+SW/ 6lCcH1dpHVGQ3Itr+sfW+exUCIBlhYMT9n2AiGkW0wSK9hL/mPu1XMx60+NU2l/Yz1PFtg HnrQiGy2GDx/aRZsZD7eV8/lMe7xRFZKOYAQMwmijBXY7eDg71YxtnQyli9LhoearXHELK Kd7iIqTKkQJHhzvxJZQ1/HcRfWYQnGodVY4Bz6Tueyp2Ea1Bmy85836fJoMiKhnMsffdD/ YEr222plHyEZID7HhprUhGPujn9/uin1qoKFWfYHeUjY2YAi6jLmYORAs/uJcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=sift.net header.s=sift-net header.b=dxbj8Bb6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=sift.net header.s=sift-net header.b=dxbj8Bb6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0DF87306E1 X-Spam-Score: -3.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: dZwB8mPVzTJ/ The old entry referred to the variable =org-link-mailto-program= which was removed from org-mode almost eight years ago! See org-mode commit b9f2e17f07faf01109fc6f7f1eb5a34e0f97eafb --- org-faq.org | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/org-faq.org b/org-faq.org index 4b34560c..cac8063e 100644 --- a/org-faq.org +++ b/org-faq.org @@ -1927,13 +1927,13 @@ For example: #+index: Link!Mailto You can customize the function org-mode uses to open mailto links by -setting the variable =org-link-mailto-program=: +changing the entry for =mailto:= links in =org-link-parameters=: -=M-x customize-variable org-link-mailto-program= +=M-x customize-variable org-link-parameters= The default function called is =browse-url=, which opens a mail composition buffer within Emacs. The type of buffer opened by -browse-url depends on the setting of the variable =mail-user-agent=. +=browse-url= depends on the setting of the variable =mail-user-agent=. Thus, if you want to ensure that mailto links use Gnus to open a message buffer, you could add the following to your =.emacs=: @@ -1941,6 +1941,18 @@ message buffer, you could add the following to your =.emacs=: (setq mail-user-agent 'gnus-user-agent) #+end_src +You can also change the function used to a different one. For +example, the following function (on MacOS) opens =mailto:= links in +the =MailMate= program: + +#+begin_src elisp +("mailto" :follow + (lambda + (path) + (shell-command + (format "open -a MailMate 'mailto:%s'" path)))) +#+end_src + ** Can I use CamelCase links? :PROPERTIES: :CUSTOM_ID: CamelCase-links -- 2.31.1