From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yhbpB3VsfWCtHgEAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 13:41:41 +0200 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 QM+tAXVsfWACQAAA1q6Kng (envelope-from ) for ; Mon, 19 Apr 2021 11:41:41 +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 4B0D924FC2 for ; Mon, 19 Apr 2021 13:41:40 +0200 (CEST) Received: from localhost ([::1]:40862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYSHa-0003zb-FV for larch@yhetil.org; Mon, 19 Apr 2021 07:41:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYRX4-0004wI-4W for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 06:53:34 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:35567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYRX0-00029h-7S for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 06:53:33 -0400 Received: by mail-ej1-x62b.google.com with SMTP id u17so52218479ejk.2 for ; Mon, 19 Apr 2021 03:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bina-me.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/2B4/ZGJFsZ5/ZtLUEu6r8f1Tqu8b0k8q1qbAHi82yU=; b=pfPH1P27+BR0TF9Bl8hJ5kb811210zRjgZTTVXOf+9dH8jJrh7SqECex3KfgMki/cg +HLZQ9XC/s7ncZ5IraK5noTpfK89FZreXT6jx5iHs3GC4ToDpTMCztSV8gM5J/fNIf+3 dc1PDaz3QH3oqybxCHuoquOSCVRTTjzuY24vunehS+kTRX6kkD4rZohltak4H/t5pEYn LsOurheyyhVxjzeX2C+LBJdTUMpSz5VYGw3Btgu61CwCs8/0jWWhtWhAXXhTZhq06fA2 7OS7b0GY+fQ0R6pxbbgdjqCWRJ6A/8uHfTnJnkXgmVu0vZLwrSF23pKTfwLFP9HHk49o GZYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/2B4/ZGJFsZ5/ZtLUEu6r8f1Tqu8b0k8q1qbAHi82yU=; b=D64wmQ8iuIIqkSo77tO2VFTzz78i2h73quUEd3ZMjaO+St5yUqRsINLaa8s/Bqpgmy dDuoigxd9tI9VWCKlTv+KAmjzxR/pd5Oe/yva5AP4QFpeQ7XZO1/J4h9fvTmeyizUw1y aEs18Rl+T4BWWfsZyAoyQpjX3as94yslINPgYnoAn3WXdN6GmflDq1GF1ssJwpl3NdIJ 2ZE6PUxCbIVO1CUgy7FRfJQM43FNdVA5S+lAvWzLMHEa5R6KSKuZ09QuKEpWIYkCsN9J 5FtwbdoD9UU373PQZe+Oy2lhM15byMUDMQojbKlHUpmrBJM+FUwuxwR0esQwXkNF1bfI l1KA== X-Gm-Message-State: AOAM530iVHWMuYdB7+/kLZO8B2+dUgwlilv7OQinl6mnBUOPn8DxjOWr /G2bh0hoKc7bazm95cWvwkoDaDVhgdqXeg== X-Google-Smtp-Source: ABdhPJzpPG8aNiQ7OW/rWZK8AHSGuWIQ9wuMdXM+qzYAxdX3kK/dMRNzrulSQFHV6ZopP/hfJs5QDQ== X-Received: by 2002:a17:907:961d:: with SMTP id gb29mr15436661ejc.381.1618829608081; Mon, 19 Apr 2021 03:53:28 -0700 (PDT) Received: from localhost (dynamic-089-014-146-144.89.14.pool.telefonica.de. [89.14.146.144]) by smtp.gmail.com with ESMTPSA id q6sm10304748ejt.51.2021.04.19.03.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 03:53:27 -0700 (PDT) From: David Asabina To: emacs-orgmode@gnu.org Subject: [PATCH] org-protocol: Fix missing '+' in js snippet Date: Mon, 19 Apr 2021 12:53:16 +0200 Message-Id: <20210419105316.10227-1-vid@bina.me> X-Mailer: git-send-email 2.29.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2a00:1450:4864:20::62b; envelope-from=vid@bina.me; helo=mail-ej1-x62b.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 19 Apr 2021 07:40:43 -0400 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: David Asabina Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618832500; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/2B4/ZGJFsZ5/ZtLUEu6r8f1Tqu8b0k8q1qbAHi82yU=; b=VFUzDpoRxHBv+RCONHrTN0LhU0I3IEUSNhv4MMHcMBW9l1RcdCsueauYfn63iGh9L0Qor9 840qgrdj28VymhQqi1RFhMFq7ThdMvxjHETH43ndcXDPaRbzKKd1+Q4mPpMcYUDo1J+3zi 13q+BJBeveExGBu7OgMGKRFGmYYlLuPTUymx3REj7aI9vSr56eMmzceWHFPUuZgj/ZspZs 4YYxD3jNGdaW9Gx/1IgODeoNlhZdjNKT04eZ42pYtAoggkkY3fbsuPvgqI6VO2OQWMPDnj BnQySsJKO/zAWJScG8Ny+q4sxCvRsZxwxOXQ5GZ5KxYK7M8Xcp9jp948TlV4Qw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618832500; a=rsa-sha256; cv=none; b=Qe/XNNMx5B0oZaZW6IGjumnGNHR/G/4CZXsZ9FjtUJjRcjmvcZigxv+nEoIv6E6I8EmiDK ia4e1nyB6Vi30IDSkicoQ8ANuLLQo0oQITqqQeovYlwpBz+XaBZdxtJItTpFgE1b5VPFZp hz2IP7ZlQVYowVOUmAfAEBnxZEsi8sU7wciwAi5EjjDe6XEIzE2iTFOIlWKlIsHqpvgA7U M57k/OW02qPJ4YC2xjd/dCcAfq42vGpPpLOMP+iU8PRbX945f23CSS/K9rENfycAxYoHJE 7GVZ6NlBMus1mAHUBT4Tiexzh5y/oTIN3DXQaCTfd1b39JPLl2Z7svbQi7xQ8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bina-me.20150623.gappssmtp.com header.s=20150623 header.b=pfPH1P27; 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-Migadu-Spam-Score: 2.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bina-me.20150623.gappssmtp.com header.s=20150623 header.b=pfPH1P27; 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-Migadu-Queue-Id: 4B0D924FC2 X-Spam-Score: 2.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: KDlwJwz7LL1J * org-protocol (org-protocol-capture): Add missing plus-sign to javascript snippet to allow readers of the doc string to use example snippet with minimal edits. TINYCHANGE --- lisp/org-protocol.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 731f51e19..7e9f3b26a 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -464,7 +464,7 @@ This function detects an URL, title and optional text, separated by `/'. The location for a browser's bookmark looks like this: javascript:location.href = \\='org-protocol://capture?url=\\='+ \\ - encodeURIComponent(location.href) + \\='&title=\\=' \\ + encodeURIComponent(location.href) + \\='&title=\\=' + \\ encodeURIComponent(document.title) + \\='&body=\\=' + \\ encodeURIComponent(window.getSelection()) -- 2.29.3