From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gK1fNsCwuF89RAAA0tVLHw (envelope-from ) for ; Sat, 21 Nov 2020 06:16:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yNovMsCwuF//QQAA1q6Kng (envelope-from ) for ; Sat, 21 Nov 2020 06:16:32 +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 74E3C9403CD for ; Sat, 21 Nov 2020 06:16:32 +0000 (UTC) Received: from localhost ([::1]:37600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgMCF-0002y6-GO for larch@yhetil.org; Sat, 21 Nov 2020 01:16:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg9F5-0008Fz-K9 for emacs-orgmode@gnu.org; Fri, 20 Nov 2020 11:26:35 -0500 Received: from srv01.robewald.de ([116.203.116.97]:34358) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kg9F3-0006Tj-60 for emacs-orgmode@gnu.org; Fri, 20 Nov 2020 11:26:35 -0500 Received: from roberts-mbp-2.dyn.robewald.de (31.92-220-167.customer.lyse.net [92.220.167.31]) by srv01.robewald.de (Postfix) with ESMTPSA id 2BB451F411; Fri, 20 Nov 2020 17:26:30 +0100 (CET) From: Robert Content-Type: multipart/mixed; boundary="Apple-Mail=_612EDD6C-6559-4FA8-ABD9-93748D7463B4" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: [PATCH] org-protocol: Make org protocol defaults work on windows Message-Id: Date: Fri, 20 Nov 2020 17:26:29 +0100 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3445.104.14) Received-SPF: pass client-ip=116.203.116.97; envelope-from=robert@robewald.de; helo=srv01.robewald.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 21 Nov 2020 01:13:27 -0500 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: , Cc: Robert Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; 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.51 X-TUID: S8ubJ7gdUXeL --Apple-Mail=_612EDD6C-6559-4FA8-ABD9-93748D7463B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hei, Attached a little patch to make the default org-protocol handlers work = on windows. Tested with Windows 10 and emacs 27.1 Best Regards Robert --Apple-Mail=_612EDD6C-6559-4FA8-ABD9-93748D7463B4 Content-Disposition: attachment; filename=0001-org-protocol-Make-org-protocol-defaults-work-on-wind.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-org-protocol-Make-org-protocol-defaults-work-on-wind.patch" Content-Transfer-Encoding: quoted-printable =46rom=2040257be885a73bc055195c52d2acd354ce2ba0f9=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Robert=20Ewald=20=0ADate:=20Fri,=20= 20=20Nov=202020=2015:52:00=20+0100=0ASubject:=20[PATCH]=20org-protocol:=20= Make=20org=20protocol=20defaults=20work=20on=20windows=0A=0A*=20= org-protocol=20(org-protocol-protocol-alist-default):=20Make=20default=20= org-protocol=0Ahandlers=20work=20on=20windows=0A=0AWindows=20inserts=20a=20= slash=20in=20the=20protocol=20handler.=20By=20defining=20these=0A= protocols=20with=20a=20trailing=20slash=20we=20are=20able=20to=20handle=20= this=20case.=0A=0ATINYCHANGE=0A---=0A=20lisp/org-protocol.el=20|=2011=20= ++++++++---=0A=201=20file=20changed,=208=20insertions(+),=203=20= deletions(-)=0A=0Adiff=20--git=20a/lisp/org-protocol.el=20= b/lisp/org-protocol.el=0Aindex=204bc7cee31..5b6862b78=20100644=0A---=20= a/lisp/org-protocol.el=0A+++=20b/lisp/org-protocol.el=0A@@=20-138,10=20= +138,15=20@@=20for=20`org-protocol-the-protocol'=20and=20sub-protocols=20= defined=20in=0A=20=0A=20;;;=20Variables:=0A=20=0A+;;=20Windows=20inserts=20= a=20slash=20in=20the=20protocol=20handler.=20Handle=20this=20case=20with=20= the=20constants=0A+=0A=20(defconst=20org-protocol-protocol-alist-default=0A= -=20=20'(("org-capture"=20=20=20=20=20:protocol=20"capture"=20=20=20=20=20= :function=20org-protocol-capture=20=20:kill-client=20t)=0A-=20=20=20=20= ("org-store-link"=20=20:protocol=20"store-link"=20=20:function=20= org-protocol-store-link)=0A-=20=20=20=20("org-open-source"=20:protocol=20= "open-source"=20:function=20org-protocol-open-source))=0A+=20=20= '(("org-capture"=20=20=20=20=20:protocol=20"capture/"=20=20=20=20=20= :function=20org-protocol-capture=20=20:kill-client=20t)=0A+=20=20=20=20= ("org-capture"=20=20=20=20=20:protocol=20"capture"=20=20=20=20=20=20= :function=20org-protocol-capture=20=20:kill-client=20t)=0A+=20=20=20=20= ("org-store-link"=20=20:protocol=20"store-link/"=20=20:function=20= org-protocol-store-link)=0A+=20=20=20=20("org-store-link"=20=20:protocol=20= "store-link"=20=20=20:function=20org-protocol-store-link)=0A+=20=20=20=20= ("org-open-source"=20:protocol=20"open-source/"=20:function=20= org-protocol-open-source)=0A+=20=20=20=20("org-open-source"=20:protocol=20= "open-source"=20=20:function=20org-protocol-open-source))=0A=20=20=20= "Default=20protocols=20to=20use.=0A=20See=20= `org-protocol-protocol-alist'=20for=20a=20description=20of=20this=20= variable.")=0A=20=0A--=20=0A2.29.2=0A=0A= --Apple-Mail=_612EDD6C-6559-4FA8-ABD9-93748D7463B4--