From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uAs1GE7jb2EzIQEAgWs5BA (envelope-from ) for ; Wed, 20 Oct 2021 11:37:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kKhoE07jb2EMDAAA1q6Kng (envelope-from ) for ; Wed, 20 Oct 2021 09:37:18 +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 9AABEA403 for ; Wed, 20 Oct 2021 11:37:17 +0200 (CEST) Received: from localhost ([::1]:37728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md828-0003sA-Kv for larch@yhetil.org; Wed, 20 Oct 2021 05:37:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md81K-0003q0-4R for emacs-orgmode@gnu.org; Wed, 20 Oct 2021 05:36:26 -0400 Received: from mail-am5eur02olkn0817.outbound.protection.outlook.com ([2a01:111:f400:fe07::817]:6783 helo=EUR02-AM5-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 1md81G-00010M-W4 for emacs-orgmode@gnu.org; Wed, 20 Oct 2021 05:36:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XfDenLGTI3xFAMfd0MRh+fiA1W/enoexE2x6NSv+8h1cgZi+b1v1YSBaKShbU22N+z4uXp47M8q5fqfzxMivAifZMeO6QDCOKCtBVh2ydRJ/7gyCJAR7JShjveDUwRGa2/zXvRY58FyeyJBzJ2vvA8kOMQpfMvARHSKZWCio9bT58eswaZ9x8XgL+TkTY/PRw/Y9wVt+FO3gGAu4EE7LIcx9xMz4SwTCunAk7VyiNNSS0fS2d00DDd64BeeqNId7URCSqigl+Hi0a5K1aCPWgOgttON5S/UeHMSPmaeCGtDu1XHHGOoqtIAzErol9yQcc+srJTNdFkZ4jP2zk8gVtQ== 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=9LiV2PWdghTypVCg5Kxa6PI9T5hyyPJtxUC8YJ3xbUY=; b=elCWuZjTUjSvJS9UiPk6cEa0A1F9H+QOWtbBH9a1UNCnoTFLwKg3I4xELu2q7Kh9T3yY8T90C/lZs7xfMjouryJm2dfg9eykabFb0CO5ffq+iTFXAdzwrrmX2RjecYWvEkbs/udczdgxq2Al6KGGUCo8pLOCipKdWrpRhFJr3GmuV9ziqOpUb4553rc/BhH9CKmOOcEOJRn8Y7VMWP0JiBvDUBNNYBq4AL3RGTHcGIRu7tBr+pk3atqAk/U+68jLxIE7A1ekq93ZGyk3kF40nTX31UH16sr40PhTjUsa/iEICIMEdt9Ar32hAHNliqBXwkZoQ7a12WPGU7+5FNJ9SA== 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=9LiV2PWdghTypVCg5Kxa6PI9T5hyyPJtxUC8YJ3xbUY=; b=EQDzzxKPTLBLvTsupaMud7cGqz+m4/IMiemp3zM82TFNAApUJcruA9+FT4CL8NXLwLPK7vx4ooM/2UyCnU8hf+sAEDu+ehdQK4YlILm7xzGL9xRU14JgbTTT2vf8Ca1en3m84BDgySWUArkt/xXTtadpyGN/osfPGMYTkqBXt/NGchh3JcgJl8eQxVmOTQiFTu9q7ZoLBoIwDESb7//rNJy0bAfifL/mCuD+byosMbr2JFYlm5F93LsSS8jNVy/JNlq0JXNUtz/OPu+flYNnQGRALGDUn/1m+uBbQ2/3RY7z8vO5eAFW8I6fyLE/Zx58yhjM4pwNdiFdiE/oI/+Kiw== Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) by PAXPR08MB6941.eurprd08.prod.outlook.com (2603:10a6:102:135::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 09:31:18 +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:31:18 +0000 User-agent: mu4e 1.7.0; emacs 28.0.60 From: "Christopher M. Miles" To: emacs-orgmode list Subject: Make org-notify support macOS without DBus Date: Wed, 20 Oct 2021 17:27:30 +0800 Message-ID: Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [zu3cNUhzS3tmPIGcw+v2K3YqelsyXGYiCv8x7SBZZWM=] X-ClientProxiedBy: HK2PR03CA0045.apcprd03.prod.outlook.com (2603:1096:202:17::15) 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 (183.246.144.211) by HK2PR03CA0045.apcprd03.prod.outlook.com (2603:1096:202:17::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.11 via Frontend Transport; Wed, 20 Oct 2021 09:31:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 89b30941-985f-46dc-fefb-08d993ac5e44 X-MS-TrafficTypeDiagnostic: PAXPR08MB6941: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QKumZrdY85UL+rVwZxj6Gp+sOgm8N1OOwv+OXXjjg75pUQUKyRwmWPpSz4mt4MxQnsvdVCJ/j2MHiLLjAuO0pTujBsD2bl1VNWveGIiEH6Drt2aJEd0+3aHfqojqx0jfzpKZh34GfCH/6zAFk8pfZip6kGEGyUyFwMTZD6DSYmfryJBxtQg6QySnoe3dtzNp8UclS9HiADGph1Z2I5BesYdhl6e1HrER1CivovEjcWkAwWZoNlZUdyqA10iOZ+m+H053VPEtcOQb1FKbwCfMYD0JytW5adBspXjirDUOuIu/iPdPM/qE3iYonBYyNhXj2+fSNUBA7+xJO+kTexpEJvU46UrCzU3eVOl7r4vA4sw1zhi6zc+eS3C5lKODaVWbyjNF81u/bBfWdvcUL3PGKA4m8GM2ZkIALUI9z51BTu+P7m9kg9+zoMKnzLBiBQMk7QPfRpKVJQ4XtHqULhoSLpR4i2Tm9x8ABNC81o5IBvZcsMgoBnSg5WQCJw80GXeFPFyDGshgB6nv3MDpdilZICvgTTcvHt/cdTmYRxwgzTwO83rK/FZoZGc3Va772UkD0rdrNxpOB0cAdaoRQKKrZw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KA3U2phURfNVUudIvqGpFXxt5vXSk9l4VkFknH4ekkjlo/ixUeKL6SAwNAcB+2xh6nWV/wO2FdAqEfFZ+8KRxRhh2kC2cVBX5gI/ypWucOT2PwPICTwTWusEofw5SQhAEc+RgKcz5TqOZpRojyhT4Rgvl3iQJT6jb7xfJAlAPrOvaKMUpJZUQ15TUcFBYw7Gpv8XHMCOTGalVqMN/qkz5Aq4Y09xT4i6w6WNGcTqs+he1h1ih0YpBrvie9xUkBwDpg5woMWxAYh/1vCXo/sUvVWeMr63H8hcADEEXHNFFKFtumr8z3LVuICIDbb2a9KNewmilztdxqCqX1vhz9ISb9z5ia91uOLRou+99Q+fuhVsy0Zf6BgEn1yluxKYSGUO/C0RKFYRC2F0GaVfhIE9BEc2UMAKlKe5z9WjuR2DupKB4Ml/oPriD3oMtM2nhMJ9cP8+jNQI+60XUnnYujn5njrqsN6hKbiX91eT5pwkc0d2/iCWtWp6JRQX3rjWDuoPFhxwXapv4CGx/CPaWIDYskv8f7+Ad1jXFugFrupe6/6vX+5dbPk5CL68+TooFgf0yW9RyzRF9OaZlZn6OkzRnFGZ9CXfV+Mj2svbxqFhuWZZzL2PUjZA3rTTGIh0Tg041AGpqqaZbfka7AecvXoQYWNP26uOHv0bAfaL9PGjvocr6fGfVf3+/sCaXbxOJcHaQdfvQAFaE7U5ImTyfRkU5ijesRlfYVyE7qSjoab1mIKQeIV7y8AeZqMeiz1QygURxwVafiAe/Es0GB/ALQuOpGL8p/EevbUq6asqhcaDN7vBn76pTt0gKpakRL3Sw5FM870QhPbh6GwmlemWs2DmPg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89b30941-985f-46dc-fefb-08d993ac5e44 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:31:18.1723 (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: PAXPR08MB6941 Received-SPF: pass client-ip=2a01:111:f400:fe07::817; envelope-from=stardiviner@outlook.com; helo=EUR02-AM5-obe.outbound.protection.outlook.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.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, MSGID_FROM_MTA_HEADER=0.001, NML_ADSP_CUSTOM_MED=0.9, 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 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=1634722637; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9LiV2PWdghTypVCg5Kxa6PI9T5hyyPJtxUC8YJ3xbUY=; b=fTd2KJQAmZ6zKmEVOEoIXTPrtZLx9sqW0/FOCzUztvJQcSHYgqJ4QKQqcP66eq+m/ATzPt yt6xaZbCUSOvv5zI4dqW8DuAvrbxhGnId1491Y9R4660A2AKx2Q4TKsCmFmBs12M9/8ZaY Rs3QElXjC8qGbWLrlRSRoxg799do0KrsmKST60lIkhemQG8fZkG1Sczhd5s1+0ETExRrWl iRZYEenGRQmcll4ZjtLJnX3kUZ4cL7YBCN08ZfJEPL+jIEBf0UexdykWXSNI1QdTH5RVu5 X73M9O7Ptlhyx49dxldLwirq+njvFOGYp7dUbNiY40YVOMUUR02mk9zkDDo7aQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1634722637; a=rsa-sha256; cv=pass; b=HvCgL68Md7goMiYNjiYlvGLP3kRcKcxA9qtiIchOlZ+ApxVGjz4BNK1Qii6iUKNdJA8vhi ZDHHkuQpC0ghxKNCFaEkmtbsAjEIgwdg5LcPigMQqFLO/r/sWySEKCyIgNCMOb7OMbJJTa xI1ZVMgNYYJoQe3GiZ6Qkl07OCzkY+hwhX+YPnnEUIlUtzsU4F48yCQhijTNy48B6NTQa5 3nJbM2sKT9AW7sH3M8XkPzXU5grOTnEcLaeTAYUbOja3zyzNM3Sk/U3s3tsw/Bb6oSrG3V W20gRTfHsgzNhyLPBPzX2C3m/RYmNTBb9cVs3U0EEUTCT3SpAWGA7kaINWJwUw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=EQDzzxKP; 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-Spam-Score: -4.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=EQDzzxKP; 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: 9AABEA403 X-Spam-Score: -4.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: Y+0Y1aPR4x+y --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain 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. --==-=-= Content-Type: text/html

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.

--==-=-=-- --=-=-= 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 --=-=-=--