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: [DISCUSSION] Possible inclusion of org-capture.el into Emacs core (was: [ELPA] New package: jami-bot and org-jami-bot) Date: Sat, 30 Dec 2023 12:15:35 +0000 Message-ID: <87bka7c2e0.fsf@localhost> References: <875y0i7e43.fsf@hoowl.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Hanno Perrey , emacs-devel@gnu.org, emacs-orgmode@gnu.org To: rms@gnu.org, Bastien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 30 13:13:34 2023 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 1rJYDd-0002YO-Vj for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Dec 2023 13:13:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJYCg-00069r-Sw; Sat, 30 Dec 2023 07:12:34 -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 1rJYCf-00068v-3Z for emacs-devel@gnu.org; Sat, 30 Dec 2023 07:12:33 -0500 Original-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 1rJYCb-0006Ap-T7 for emacs-devel@gnu.org; Sat, 30 Dec 2023 07:12:32 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6948C240028 for ; Sat, 30 Dec 2023 13:12:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1703938347; bh=IlcNfI93YBONPWZ5RE8Cx+jZp5f6xxZoC0CMMoJ+vzI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=cCXhSIBrZbGCof261wg5xHcho1CBIZntCKqwrie3TGc9gMVgxP8KxdX1E9hs3UOYH KZ1GNO21dn0WuGAQP7XaQTF4wBnabpxSeX7BCvSFIikNs3k/Wf+BTTnJ3qBoLX5AIH Vzx1xXTSv9EpFkvZFQUZuAXrxfixP397FB17GYjxWcnY3GlpFpoj36F41pxXt8+7ZQ O3xcGPLPsxgwy2IsBzeyNh50DDAqmX0pZNck0Qw0b8JOzHPiJy1gXQ8+8Fz8pnRWUI Onmd1TSLGpNEyL4qdPWJnagqH68qSs6s0pRdMyed1pAwZL3QeNUZrQtAAaRKHTR+Rz AcJCX6khd/jjw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T2Lj633W2z6tsb; Sat, 30 Dec 2023 13:12:25 +0100 (CET) In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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:314364 gmane.emacs.orgmode:158787 Archived-At: Richard Stallman writes: > Dependence of various features on Org mode causes problems in two ways: > > * It makes those features hard to use for those that don't use Org mode. > > * It adds the need to learn Org mode to the need to learn Emacs itself. > > Therefore, new features which make sense indepdently of Org mode > should be usable without Org mode. This reminds me of "Keep Org mode submodules in Emacs, please!" request: https://list.orgmode.org/E1kIPh1-0001Lu-Rg@fencepost.gnu.org/ Similar to jami-bot providing a dbus interface for Jami to interact with Emacs, Org mode has org-protocol.el providing command line and URL handler interface that is nearly independent of Org mode itself in its core function: ;; Usage: ;; ------ ;; ;; 1.) Add this to your init file (.emacs probably): ;; ;; (require 'org-protocol) ;; ;; 3.) Ensure emacs-server is up and running. ;; 4.) Try this from the command line (adjust the URL as needed): ;; ;; $ emacsclient \ ;; "org-protocol://store-link?url=http:%2F%2Flocalhost%2Findex.html&title=The%20title" ;; ;; 5.) Optionally add custom sub-protocols and handlers: ;; ;; (setq org-protocol-protocol-alist ;; '(("my-protocol" ;; :protocol "my-protocol" ;; :function my-protocol-handler-function))) ;; ;; A "sub-protocol" will be found in URLs like this: ;; ;; org-protocol://sub-protocol?key=val&key2=val2 ;; ;; If it works, you can now setup other applications for using this feature. 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. 17.16.3 The open-source protocol ... The open-source handler is designed to help with editing local sources when reading a document.. To that effect, you can use a bookmark with the following location: javascript:location.href='org-protocol://open-source?&url='+ encodeURIComponent(location.href) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at