From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uDLYD/nob2HGMAEAgWs5BA (envelope-from ) for ; Wed, 20 Oct 2021 12:01:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CN53C/nob2GTIQAAbx9fmQ (envelope-from ) for ; Wed, 20 Oct 2021 10:01:29 +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 6A1061B38 for ; Wed, 20 Oct 2021 12:01:28 +0200 (CEST) Received: from localhost ([::1]:43450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md8PW-00020B-S7 for larch@yhetil.org; Wed, 20 Oct 2021 06:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md8Nn-0001wq-3b for emacs-orgmode@gnu.org; Wed, 20 Oct 2021 05:59:39 -0400 Received: from mail-oln040092065095.outbound.protection.outlook.com ([40.92.65.95]:54773 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md8Nj-0003rz-6P for emacs-orgmode@gnu.org; Wed, 20 Oct 2021 05:59:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fc3CLqhUgRSVmPrlglrqmqX/5/21M3TAFAoG1Ec2SVr/iCBiBM9BoKzfpmOlkFjS8nIKOJVMozExW/7Hjr8GdJ4jhV44Y/3Fwd2qvzWrQvhfkM8xmfLdaQDhnvLCxg+cNKZeWH/p/aqLVWBfMC+QvXofOm6DB/1EriSc5FRUBgop+rhuZOkWZry4DqJaM45jk1Sa5rJPwhLUT48nfEsEL7apPm/37/VpmerjvrVDR/opyfq8w2hGlwLIsRl3mVOD8PuTrK2CU99FdY1YCKh0Fix7Qrn38fEu+aw2IDj80MLM97yPv3jJlxKUhs0kTFeZ1b6JrYj828bDd0JhgqgTOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dLpc20bMXTZ9Ny08p9C0BmcbgGrPHr7gPJDFCph8umw=; b=WGU/ExWWwAVNqXIWB+iR/c+08vouXaOM7o2rroafrYFRgHOcRCfl1oPXbr/56O/dc8sbVkklEJqdI2nTKGTtfioVtYoCYlRs/Z7eWH9FcIqIatFu9tanhGNFslD0rewGWX2Xq3epXIq0AngaP0TcHb4TUavU86lIs+ZJEupeaCQs9YmHP/b5tlFzGYZHqTuWk/VOcHNTvhcJ73fPBGXz31aDbQeeW+JooIT3GRXVq/F/vH7RVjCCSoXfO8V8TZJUSIW+4riJ3M0aZVpkMcdZ/z571QummJjB+/sH8GkmlehO4JirJ9AAxPFWl7VPL3/J/UOBCZgocnGJy7oXKuL3Ng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dLpc20bMXTZ9Ny08p9C0BmcbgGrPHr7gPJDFCph8umw=; b=J/OIPwAGspjeMmAtJg5IYxe9gB4AUkYBZSwXU1lh+XXjv0nS5N8RxLzGSkua6O+q4DV9cw/ghkEYJFYpE3BFoJd/SXDAGS3qy/um3qD04npT1KF5kTOdytla9SvQ7c+1OqhS+n19GY2R+k6f8jHK2jqGNzEI/uUzkO3nX4QT8Dj8vor+PD6cwKO7IjfeAXNYCQXTsXaHeCrOllR7QJ9J1OypzvbInMwhWJdgfQWjTom0eG5erZORFkpp/9AqMUE6NJt/h9B+p14BROZkmPsqsu2yt/KlklNJz2Ey/y6HZBPxi6+KqWDIGvuwZx7rbR1UCKqnNT+e3OWLICfeC+w6dA== Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) by PAXPR08MB6349.eurprd08.prod.outlook.com (2603:10a6:102:15b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Wed, 20 Oct 2021 09:59:31 +0000 Received: from PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::2d89:b86a:b634:48b6]) by PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::2d89:b86a:b634:48b6%3]) with mapi id 15.20.4628.016; Wed, 20 Oct 2021 09:59:31 +0000 References: User-agent: mu4e 1.7.0; emacs 28.0.60 From: "Christopher M. Miles" Subject: [PATCH] Re: Make org-notify support macOS without DBus Date: Wed, 20 Oct 2021 17:58:37 +0800 In-reply-to: Message-ID: Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [llrsZDBLHZ81wRVPjnq5sEB9CsF8DmIZ] X-ClientProxiedBy: HK2PR04CA0085.apcprd04.prod.outlook.com (2603:1096:202:15::29) To PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 Received: from Mac-mini.local (115.231.16.205) by HK2PR04CA0085.apcprd04.prod.outlook.com (2603:1096:202:15::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.15 via Frontend Transport; Wed, 20 Oct 2021 09:59:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67a96cbb-11c7-4964-e4ee-08d993b04fba X-MS-TrafficTypeDiagnostic: PAXPR08MB6349: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: upurdttU1XPTOGrxE3wP8QM8eVC+O/MGlcE8+IA3EzqLWwO5EygnrX6l4v4lO2/WyAX8zglTw4vrzKHUo1J50wrYEHVivlQsvQa3VuZCP5sevyZHt0bP03sORAC2edge9ftgNTe03YBXwI21eer87gfTAEdgOggKfpmCPQKBjedyfw3BKOKiV9dQJiICSgFf6BXqX2HbHKqRKpzJCQA6IscoQF2pmxA+QQ+rdT1KX9DCWbDqKaEA0XpPmBMdZW24ik+awF83lK/vX24qDWduh6hQj9pbIGdPZZPTSnIFRmlZe7WwgMbXj5QdGP9R2QHL+CmcvMGspLNI9yAPyjI0wRu7dSI+owHP7T/m0kx5NvgibsTUiTsB5ubAIPTSOI4oXf/2DpZDOtJeF41oE2iyFYAcqtdBO6QoqF92Ja5/oSqF240VO5n5weh8i82vHSZfMlFxW8tFyqRMgwlWM8Se23jZLBis8uZDO/InVvgqgUjUpbpS1ErhoflEVbwiFZI7k90ACWzuSwYrXIdeS6SUCtCnJiebFdm+DxrFcV+D74JkkGMjr6cFG9oOGRCyXf0ysEeovcsTZaP01KlYqiZ9Bg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dZYZFJZIDsye8CEar323M0esdxjYtpCdMRNuzReqKFB+1sioeuuTRkwthecyZA0H+7V+4f+kMD/v4OcOFNL6uCob62nCWC2C7Ll9SiOicR2nIZxW49tbFQnaVNNHIH10+0cYF586antoVLNxDYMP+FL+vli4aL+m6elZhHQo9P2yoc1QKEOcRc8sIA9Ms232y7ggOXXSk43TXPdBwIMuJfyDWDSfT7W6za/GqimF5X+7EU9BUyqJuolWoz9tURz1oQwQV76wemYnnZFa0BzV+rP9Tvwg71U1bbjLFX8PaUET7sqw8QSuhRqAvX0YIAwsNz4IKuy0QPZn8C04xa3XM/TL55VpuC67nQQOzavb3cPlH1Mjxq7+vZIuUrVoRHKFoMM/EI1sxGe8Y6zaP43wN2K5m+/3h9bCcU7q6i189amaphnhw17KWfVHzy9N4aGA7r5LpzFsUUOJRTQNWDhHs6b5mJdy7Ua6s/plaSDrnXEak8EKzDhIPAaNuSdouuZkF0g7BE0+ktXEdTz23Gws1PjdcHOWWfUR88nf1GjtErPQY0Nj0aNQ0+K9tES5v1M/FvW/j4wG+XRvx8UXh16W11gQipjSsuJrAnOk42Y/HU5EiOx4FjBX+63Yq4IjklHLmdB2YhG/VpBfUXKSbXQR3uCYQFj8ymxrx16g59HTnW7nspIdddhhtfzh7tQtCNux03FRs9lAp2DS7rwWjTGbqQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67a96cbb-11c7-4964-e4ee-08d993b04fba X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 09:59:31.3300 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-UserPrincipalName: stardiviner@outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6349 Received-SPF: pass client-ip=40.92.65.95; envelope-from=stardiviner@outlook.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, MSGID_FROM_MTA_HEADER=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Reply-To: numbchild@gmail.com Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634724088; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id: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=dLpc20bMXTZ9Ny08p9C0BmcbgGrPHr7gPJDFCph8umw=; b=uQEqklBPWIag+RINvk4TyfsdD38QYQt6k4t6LId6XmiIbj7ciRpfhGEmp17Urlu+2oTv1b zKG4bKL1GYD8zR98EBzDwEV79vT27BnaVv0ug2jabC/pHoDmCaswtGlZ4aljB3SYjmddYW hmQEbh3yCjhtb1jmvRPWgu018ogNA2cw6U25E75gjr1GlZb1UCSHOJpqlux64FXuctFLg7 a4uvvOU9v6E0qebBkM2ZkMIKe3OJtnQxpNO6NNJDUKFucYoXfPnky32/xGYyU8BFAzd/dL erOIYlgH8rRFcPOW5tB3id0NNbIb5JrZW/zJ95xIJd3KA4CVaKB/31BrJGF56A== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1634724088; a=rsa-sha256; cv=pass; b=OIEQuM8SQc7v66GV1uRt+d6neZnEd4TWfdqqGYvzwykF7gbgcHdVIumjwq92vdfGC78ZIA hEg3wfLh5W5xz4iWbS8Y9tFCHR7QSHyhBaZiQoXANs5vo8WLCNEzv0dPMHlUoHq9vlankc yuS3QS6cT4XD7Tu7CY13AeNJB9XOrlVQi0cvG9rs1zY69tNIX2rFnJHhwK0cbe/+Lj8Svs imJ7AxA2ZNdL8AbDspIfbB7cTUSdAX/bfFm5KM96nFN+ZeZYwrawtJGy8m5oxTDQ/WfL73 tbZsZIWYD54EexXPxh4TezRbh49tP2rBRd2pkIphE4AcLuzCLyZdOtKzWza1ig== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="J/OIPwAG"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="J/OIPwAG"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=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: 6A1061B38 X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: QEBBGzlAg5Aq --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain Just update the email subject contains [PATCH] "Christopher M. Miles" writes: > Mostly Emacs versions under macOS does not have compiled with DBus. Or still don't work even compiled with DBus even > macOS installed dbus with homebrew. I'm under this situation and problem. Spend lot of time have not solution to solve > this problem. So I give up on Emacs DBus support under macOS to make "notifications.el" work. > > I added patch on org-notify.el to make it invoke AppleScript command to display notifications. Hope it help some macOS > users. > > > <#secure method=pgpmime mode=sign> > > [5. text/x-patch; 0001-org-attach.el-add-a-new-command-to-archive-web-page.patch]... --==-=-= Content-Type: text/html

Just update the email subject contains [PATCH]

"Christopher M. Miles" <numbchild@gmail.com> writes:

Mostly Emacs versions under macOS does not have compiled with DBus. Or still don't work even compiled with DBus even macOS installed dbus with homebrew. I'm under this situation and problem. Spend lot of time have not solution to solve this problem. So I give up on Emacs DBus support under macOS to make "notifications.el" work.

I added patch on org-notify.el to make it invoke AppleScript command to display notifications. Hope it help some macOS users.

<#!secure method=pgpmime mode=sign>

[5. text/x-patch; 0001-org-attach.el-add-a-new-command-to-archive-web-page.patch]…

--==-=-=-- --=-=-= Content-Type: text/plain <#secure method=pgpmime mode=sign> --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-attach.el-add-a-new-command-to-archive-web-page.patch >From 6c667461b45e93059c6f801e485f7da4bfc3606c Mon Sep 17 00:00:00 2001 From: stardiviner Date: Fri, 29 May 2020 09:46:15 +0800 Subject: [PATCH] * org-attach.el: add a new command to archive web page * lisp/org-attach.el (org-attach-url-archive): A new org-attach dispatcher command to archive web page to a single file. * lisp/org-agenda.el (org-attach-url-archive-command): A customize option to specify external command for archiving web page. * lisp/org-attach.el (org-attach-url-archive-page): A command invoke external command to offline archive save web page. --- lisp/org-attach.el | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 57d1360fc..80855d147 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -204,6 +204,8 @@ (defcustom org-attach-commands "Attach a file using symbolic-link method.") ((?u ?\C-u) org-attach-url "Attach a file from URL (downloading it).") + ((?U) org-attach-url-archive + "Attach an offline version of web page URL.") ((?b) org-attach-buffer "Select a buffer and attach its contents to the task.") ((?n ?\C-n) org-attach-new @@ -467,6 +469,31 @@ (defun org-attach-url (url) (let ((org-attach-method 'url)) (org-attach-attach url))) +(defun org-attach-url-archive (url) + (interactive "MURL of the web page be archived to attach: \n") + (let ((org-attach-method 'archive)) + (org-attach-attach url))) + +(defcustom org-attach-url-archive-command + (file-name-nondirectory (executable-find "monolith")) + "The command used to offline archive web page. +monolith can be found here: https://github.com/Y2Z/monolith." + :type 'string + :safe #'stringp + :group 'org-attach) + +(defun org-attach-url-archive-page (url target-file) + "Save an offline archive of web page." + (pcase org-attach-url-archive-command + ("monolith" + (make-process + :name "org-attach-offline" + :command (list org-attach-url-archive-command url "-o" target-file) + :sentinel (lambda (proc event) (message "org-attach-offline finished!")) + :buffer "*org-attach-url-archive*")) + (nil (warn "You must have a command availble for offline save web page! +Set variable `org-attach-url-archive-command'.")))) + (defun org-attach-buffer (buffer-name) "Attach BUFFER-NAME's contents to current outline node. BUFFER-NAME is a string. Signals a `file-already-exists' error @@ -504,7 +531,8 @@ (defun org-attach-attach (file &optional visit-dir method) ((eq method 'cp) (copy-file file attach-file)) ((eq method 'ln) (add-name-to-file file attach-file)) ((eq method 'lns) (make-symbolic-link file attach-file)) - ((eq method 'url) (url-copy-file file attach-file))) + ((eq method 'url) (url-copy-file file attach-file)) + ((eq method 'archive) (org-attach-url-archive-page file attach-file))) (run-hook-with-args 'org-attach-after-change-hook attach-dir) (org-attach-tag) (cond ((eq org-attach-store-link-p 'attached) -- 2.26.2 --=-=-= Content-Type: text/plain -- [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-=--