From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [DISCUSSION] Possible inclusion of org-capture.el into Emacs core (was: [ELPA] New package: jami-bot and org-jami-bot) Date: Mon, 01 Jan 2024 14:05:16 +0000 Message-ID: <87jzotm9nn.fsf@localhost> References: <875y0i7e43.fsf@hoowl.se> <87bka7c2e0.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: hanno@hoowl.se, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 01 15:02:57 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rKIsb-0004Kd-5e for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Jan 2024 15:02:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKIrw-0001xN-U8; Mon, 01 Jan 2024 09:02:16 -0500 Original-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 1rKIrv-0001wH-BG for emacs-devel@gnu.org; Mon, 01 Jan 2024 09:02:15 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKIro-0004Ec-B7 for emacs-devel@gnu.org; Mon, 01 Jan 2024 09:02:14 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0CE07240101 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== Original-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) In-Reply-To: Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314417 gmane.emacs.orgmode:158821 Archived-At: 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