From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8GW0JzLGkmW4MgEAkFu2QA (envelope-from ) for ; Mon, 01 Jan 2024 15:03:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id ABvrITLGkmWzFQEAqHPOHw (envelope-from ) for ; Mon, 01 Jan 2024 15:03:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cdaeAZjv; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704117810; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bNgjuYSnRNqiCS89CgCXMCtCienParGFNf1+yGUH6oo=; b=PgIJmEb0Z/yctrE66GMTh/GKqBRAkUXG/6yKIfW4bzJar3iFcfldsitYGaRNBf+pf6ONUG DnEu5m38qhiEe2A7R2xui6pQbIPNsnlbBlp9r/DfivNmRcd73RvLAGsJ6rcTUIgM/kTvSf hjWpQtN3sR+R8aXMqKprL54u9y+0+pzmYIt9L8/2aTu9bBYbLtWKkDYeRS4vjOk9r3QLPh t6utLJ/oiaiWFLlySl1ZM+66EkZPQZ1Jj56Q+59WTFpL3WozpLfu+tuQ51FfEhubjnT+O2 F/9Y9YNa+gRTe2czgI6mCjomFzVR6Tf2kNs7ACVFE//P8qA71hbaA7d8oGjdDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cdaeAZjv; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704117810; a=rsa-sha256; cv=none; b=aP78XbfhrT8WyQFRs9OL6ODtdFcLv+H7lhYnZsiLIL+eH9ODxZKbiOZRkulE0uItzllJLE mKtrQwLrUvDUqZqnMRFX/QBVK2+pSiKFUHoBeLjs1sxexeFrWdnEL9fYX61VV4IfUa/dE7 yFWsDv1sbfk+GAKzx/K3IHqigB3CkEzSxPU/mR0CNKsOQLYNJvvxzwfc66Qvy8w9i/jWql U2Dj9YoQKaiJc0vy+9crfMBWOMRiUqYEpLDIL3a/rriPqbzSsRZSMyE6thGc89lDQiKxjy UwKRM3ID7WOnQdIEpBBpJWC6Vf9HfODIpoNNzzXZhiCE66htXkZ9+52PVJ86qg== 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 DE17231BF6 for ; Mon, 1 Jan 2024 15:03:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKIrw-0001wm-Ap; Mon, 01 Jan 2024 09:02:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKIrt-0001v6-MF for emacs-orgmode@gnu.org; Mon, 01 Jan 2024 09:02:13 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKIro-0004Ed-Gb for emacs-orgmode@gnu.org; Mon, 01 Jan 2024 09:02:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2DEC2240028 for ; Mon, 1 Jan 2024 15:02:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704117726; bh=3B2hl/Wla5uTjCx/tFX6u6BJc5vWuzF9C5+ylgLndhc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=cdaeAZjvbYzseaOSIvuyXEy3jCi9yHn9Q2eIaBiqOKphqMzIKW25dzuE2D6CJT5rP nlHKDelR1GkLPcEX+I3fELCF3lxffbFzwm8+0RJqIpY0kvA2pqZsMv9TsKtIDx0eq6 Q4qfGgXt3sxh7gfe7SD54i9zHfvRd6uUgIyfq4cHPA0NY06CRpMdje47BopDHKsBDu nlUM56w1UEpv/evwqRH7jitzJrYaXdth3cTQQOttxvq46868nzHwnIYnhrhfTtrCTD 9kFthP65AwRFAmZuGiN2+AYNa6zxHFnJs85MWoyEpU2CA6eW7AkUSegwtz8tpVa4gc t6c8+FbY83s/Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T3d2j0SBxz6tyR; Mon, 1 Jan 2024 15:02:04 +0100 (CET) From: Ihor Radchenko To: rms@gnu.org Cc: hanno@hoowl.se, emacs-devel@gnu.org, emacs-orgmode@gnu.org Subject: Re: [DISCUSSION] Possible inclusion of org-capture.el into Emacs core (was: [ELPA] New package: jami-bot and org-jami-bot) In-Reply-To: References: <875y0i7e43.fsf@hoowl.se> <87bka7c2e0.fsf@localhost> Date: Mon, 01 Jan 2024 14:05:16 +0000 Message-ID: <87jzotm9nn.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.49 X-Spam-Score: -9.49 X-Migadu-Queue-Id: DE17231BF6 X-Migadu-Scanner: mx10.migadu.com X-TUID: E9pBl5ss8uwk Richard Stallman writes: > NOTE: Is it absolute;y necessary to cross post to emacs-devel and > emacs-orgmode? This branch of the discussion is also about Org mode development. And we discuss Org mode development in our mailing list. Not all Org mode users and contributors are subscribed to emacs-devel, so they would miss this thread if I did not cross-post. > Could you please explain in a few lines what sort of jobs org-protocol.el does? > The doc you sent > ... > > describes in a low-level way _how_ to use it, but in order to think > about that, the first thing I need to know is _what jobs it can do_. 1. Send web pages (urls, page title, text selection) from browser to Emacs buffers. This is often used to "bookmark" pages using Emacs. 2. Save web links from browser/command line into Org link kill ring. 3. Locate and open local source of web pages in Emacs. For example, when users have a local git clone of Org wiki pages (https://orgmode.org/worg/), they can open Org mode file corresponding to any Org wiki page opened in browser in Emacs. All the above can also be done from command line or by invoking system URI handler - from any application that knows how to open custom URI schema. (1) and (2) are specific to Org mode and will be left as a part of Org package. But the core framework and maybe (3) might be upstreamed. The above can also be achieved by invoking emacsclient --eval, but org-protocol (1) makes it safer as only pre-defined Elisp code will be evaluated, preventing security issues; (2) integrates with OS URI handlers. > > With org-protocol, one can also make Emacs receive data from browser and > > perform any action defined by custom handler function - all fully > > configurable and not necessarily related to Org mode. > > Could you state a few examples? In addition to the above 3 examples there are many possibilities. Say, one can take some proprietary web page like reddit, and make it open using Emacs reddit frontend. Or save a quick note right from terminal outside Emacs emacsclient "org-protocol://capture?title=A quick note for later" > Also, how is this related to Org mode? Why call it "org-protocol" rather > tham some other name? (1) is using org-capture library to put the received url/title/annotation into user-defined template and save the filled template into Org files. (2) is using `org-store-link' to save url/title as Org mode link. > > 17.16.3 The open-source protocol > > ... The open-source handler is designed to help with editing local > > sources when reading a document.. > > What document does that come from? Org mode manual. You can evaluate (info "(org)Protocols") to get there in Emacs. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at