From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id hk0GJoTocGGI2AAAgWs5BA (envelope-from ) for ; Thu, 21 Oct 2021 06:11:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IOsFIYTocGH7fQAAbx9fmQ (envelope-from ) for ; Thu, 21 Oct 2021 04:11:48 +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 A47BEA11D for ; Thu, 21 Oct 2021 06:11:47 +0200 (CEST) Received: from localhost ([::1]:48992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPQg-000135-Qn for larch@yhetil.org; Thu, 21 Oct 2021 00:11:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPP1-000105-C8 for emacs-orgmode@gnu.org; Thu, 21 Oct 2021 00:10:03 -0400 Received: from mail-oln040092067091.outbound.protection.outlook.com ([40.92.67.91]:52110 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 1mdPOx-0002Az-NH for emacs-orgmode@gnu.org; Thu, 21 Oct 2021 00:10:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JqVC+yU/AwJpqEvJEBivZCd4eW2T45fbSwfzu5+uc3PD/+0FyFPX6a8/C2Ov9rkDQjF7uzUPHiNO2t8bvH90KF058BA29RKqRz51Wfb4UKPWZTebJuBK0U0FP1pK4LBXqpKZM693b375ZDcuxWk8Jhv9goshd0zdH1KyIzzjXWR7buaJbqM+1CkhUJLq07LrvFmOEj5zukeWbmW8GfAgTg6j5/YeFKXHD2GYHtj6iHYcuje4q4riUYjRbfhIEqJtZUmm8TNbQS4l484ZHyAzvzwwqFeZfsK4z9hD1a1/0qdt2nxiaVhafWHgMAQ2IdjCWjnQIjVT3ZD26cJFozlRLA== 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=WnyD3VSL2yOSz19mXHITiSzDWMteUUwgPojxp58RfTo=; b=nKphESzyfOZdWJ1F/2PTOIAqObHaoxlX7j1Y8mCZL7Fi9K48qSq0r6CrLMh6kMWhspAV6AfSOfoLI8fh8zVZAPeEXUJl1TOXTLa2pY8IJ6UyUaLpF3nbbqZGWFEHrK8VfcCzVONjsVlm2coRGdhYvW+1SCLoUwz6ZCob1+uSm4Xz0Hx2/IN/Fr8sHOe1znPYjl4MrA5QzwWy4kQJbV1olxKqvuOdhnVq3V+cjuNiCSvIGmPwfvlNePA4Ma4+JzWwSYIvpG3+TrqRQU1VgwERTUnNoI3o6on8Yt8s1aezosdBiy7d+8g1+VfuGxWNEB56Y36Z6F+/hP/Jsa98Cb2OdQ== 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=WnyD3VSL2yOSz19mXHITiSzDWMteUUwgPojxp58RfTo=; b=jb9Vl6IqwjoGVcLhlLX20mr38oikC49iTwEULs67ObClmoM8Ps0ldBFzPYtoMsl/FiJOaSm6h4CCCNsSoVenqPD+5tZU8P/oGejzLjd1iQ7fGh/SAPNgyH3uOYNTGviQAqzbclnP06y7YVz8+EPHtS2QF4dirskLaEGMmgA8dMCvyoVVj+SXzhEIuPHin7ndj/US5KP1yvNYufnlq/zxU7Bc8A0WI+K/tTXCvkLBOyf2Wngxk+MIfqy277NkWJsmDsyrTb26NFvTpydOvY0zybD7vSTi5p6uqUJt1HuYY9xKnUpLStV6zEvxAZ8jkOv3nRD2BPsZmC/tw4LKZCepqA== Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) by PA4PR08MB5966.eurprd08.prod.outlook.com (2603:10a6:102:ee::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Thu, 21 Oct 2021 04:09:57 +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.018; Thu, 21 Oct 2021 04:09:57 +0000 References: User-agent: mu4e 1.7.0; emacs 28.0.60 From: "Christopher M. Miles" To: Max Nikulin Subject: Re: [PATCH] {the CORRECT patch} Date: Thu, 21 Oct 2021 12:07:44 +0800 In-reply-to: Message-ID: Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [a4hNCoiMsIV0WKJ7UjVZcE8LYvbnvntykVHpa6SJknA=] X-ClientProxiedBy: HK2PR0302CA0001.apcprd03.prod.outlook.com (2603:1096:202::11) 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 HK2PR0302CA0001.apcprd03.prod.outlook.com (2603:1096:202::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.9 via Frontend Transport; Thu, 21 Oct 2021 04:09:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 44ce6049-5488-4799-6f48-08d99448a3f5 X-MS-TrafficTypeDiagnostic: PA4PR08MB5966: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A0dNActfghz72NFCXdpl7Z920E1/agFJYgkoHLW+h++3r6E39q+sHgYBDDnqsDMMyBhHkNxN5vu8m6cXqc6dzH+CvF4o8M3dWEILo9Ngn9kNmX4fJGTZ/BNEKp38Y0P3JGaM2DhnSStg0f7KOILYAjuJ4jw8zCj/IlmjGCUexWg6TWjvAlQiGxHIaOqQ92gTQESReOcRfYIwSWrZ4n+41BXhLZJ4lpYkO6gGFbBA1W4z1mkvcibrNNoT6qQxuphAL0mmPuk9nLgsPAbaR32ZC97OMp32Kv5W1ERk+fLjrqSGgjmma0cHjWAft3KV9EHZd7MwLk+Q55cEK+3FpL2j4c52GeOlzWY5OTYZxKxJVZU5GDRJciJDdF9cU0DsDilpeBATgAjF93eYdFTe1J1ECFITXoSBW6J2AUs2OF4TJNp5eqrLJmqu6E/H3wdbAIHlC3xmcULUUT9KpuaNvuhK8EAT6We6ssHFAFKXT3ZYms9g9kY3lhmYty3hkUGlmxMhy9IFwRy7lotgTQq0vR2vWGRqXIWoeyDdPjpOgl+oQGWM29LXeCLgK7Pca6Cn8dH7mZdjpb47/1Cc4LV/cEQbSA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gq8CiEBqidfAWp8sgclIK4S4a7Mwm2IfSAmH78C67fzOaG6+Zo7y+tbGrbcxx+4m59tU5iyGsvtQnwNfXqgZAr9smitPx0ve7f4iZvtllQ85ji4NQcJhlSUdptLIryXO7F+yVSMGR+u92UwymPMZ597HpKCZDsrZOBI3XpPvfmPBAuGelNAGbDwoM2OUfStUENNQxkEzXdSMxkSeQdpwAArb9u4AZKDTiFiKl62ERAeEWsQ4tekoysrIEuj6uv3Ngv8ZsWwa1gw50OMeB1ZkT1KrWMmkkKHOuphpVAEfUXkjpIRov4bactxIa7apUSKQiG+/CX/5fz9mllba7vqPzQNyQGAM7yfjDA3Yx3mzpWqIf+PMPHAI6Z3EnBs+xWSLucaD3X9JfyJHBWdRbpZv1TKuuDlliothwJnLX4axl7jvIgvBmOTi7r4dLdCbotvxWFsGj6K5dNqcdDp/USnUx5ddqQrjyiO9i7Mo+MNAs00nUYbBlDpPv9yEAq6OWmxZRjYITH1gJkEVOePrsLDJKWF9Jk4Phwpv8x9g9Zv1s9n09PHfkvF4Y6eJBBikKfHRvlURfbv35XogBms3foQIc2muOVOCaUePiNeGKmuRx0EBXU8wm3/SGkdqjnB3D4+vbo76wsChc6Jav1er1gtUNySnL9D26KRnaGrYd9B9VrrTH/G0InhMPggqvw3dNV099efJDeGOMANOh5DWLiHjG8pT7mzLs/ESYDez+k+A7DhhpUEkBe90V0uu3DlyRG4XzT7B1q2ttFhzB1nzLqYY+cSQRvq8ElDw0u7ShzC5do0MGF7n/9hoMxVKFjH0iO+nVL35YridFB6+rOluZuGebA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44ce6049-5488-4799-6f48-08d99448a3f5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 04:09:57.0591 (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: PA4PR08MB5966 Received-SPF: pass client-ip=40.92.67.91; 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.249, HTML_MESSAGE=0.001, 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=1634789507; h=from:from:sender:sender:reply-to: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=WnyD3VSL2yOSz19mXHITiSzDWMteUUwgPojxp58RfTo=; b=aRLSdFYHVCMt7ENyp0jOvCZKnxMsTYPU7OHXrZoj1tOpeJD4gHL4RoM00kQb52oFJJp3bw XpGxeGaY0WusoPXBTVnCGNRzgFrQ/qAdiqtm4XdC/IIL6ZcvtNs9bqr2FpwGJkIAYbttZm Zw2zYI4ClQLpkb/9Ffv9yZDJfzojjdKEzb2qB5IXT/gZkT3PYTtKqhqXpK8KYRNkEMkxuZ vAO8G21/XFbAbgPwWWWkqLdOuM2oR6cZhia/e7jbopGKdteljv8oYsJqr+WUgDNNu9Pc2y BTc5a5h+QPj7tp3kbEBxK0pGFFoUoZA+VyfK8Z6HCrt46xXOvT2RFNZLEY+pAw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1634789507; a=rsa-sha256; cv=pass; b=G2YYZGjVGLP3WCsGAdX074l4Zd7KTZ8XZPIYGouhFAq5Rq4fP4nIc6CR9jnI8TmqnKq7Ro 9DAte0l1T2d6VIIky1pkpHVCZKwTki9N5C9Cd4oFrBCW8o6BJijWSDhDEEOf4wVt0KX6xB h++TZAgoLC+CwwCCRsV2td8LjwiYIKhQhHF/uhEoavwiJ8v857LBlEEiw5WqBEOxcyqFXf 8TBSyqUBKad3f+9JlOGH6SCGdWIC62WnRxcQmq4TxqrN7XOV4P8+rTi0qXF4LfZFLxFCJG zoVGXIpNCSBae6uH9c28pVeXsK+8gs//MtlsaW0UWH375grg2RLK7qEM4njPug== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=jb9Vl6Iq; 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: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=jb9Vl6Iq; 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: A47BEA11D X-Spam-Score: -3.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: OvUIrHBgE5hX --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Max Nikulin writes: > On 20/10/2021 16:58, Christopher M. Miles wrote: >> 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. >> [5. text/x-patch; >> 0001-org-attach.el-add-a-new-command-to-archive-web-page.patch]=E2= =80=A6=20 > > Christopher, the patch you attached is related to org-attach and e.g. han= dling of monolith links. > Does it really solve some notification problem? > > Bastien committed your earlier patch for notification through applescript= (that does not protect > backslashes in notification text): > > b80b0a517de7be94c70d3d6537899a94ac046fab > org-clock.el: Make org-notify support macOS notification > > I would expect that dbus-related options has lower priority than applescr= ipt. Sorry, I misplaced the patch attachment file. I will attach the correct one= . Sorry about this. Because org-contrib has separated from org-mode. So I go into wrong directo= ry. This is a patch for org-contrib/lisp/org-notify.el. Thanks for reviewing. --==-=-= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Max Nikulin <manikulin@gmail.com> writes:

On 20/10/2021 16:58, Christopher M. Miles wrote:
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. [5. text/x-patch; 0001-org-attach.el-add-a-new-command-to-archive-web-page.patch]=E2=80=A6=20

Christopher, the patch you attached is related to org-attach and e.g. = handling of monolith links. Does it really solve some notification problem?

Bastien committed your earlier patch for notification through applescr= ipt (that does not protect backslashes in notification text):

b80b0a517de7be94c70d3d6537899a94ac046fab org-clock.el: Make org-notify support macOS notification

I would expect that dbus-related options has lower priority than apple= script.

Sorry, I misplaced the patch attachment file. I will attach the correct one= . Sorry about this. Because org-contrib has separated from org-mode. So I go into wrong directo= ry.

This is a patch for org-contrib/lisp/org-notify.el. Thanks for reviewing.

--==-=-=-- --=-=-= Content-Type: text/plain <#secure method=pgpmime mode=sign> --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-notify.el-Make-org-notify-action-notify-support-.patch >From 132a802d38c71569d6112ba933310af5318448b9 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Wed, 20 Oct 2021 17:19:14 +0800 Subject: [PATCH] org-notify.el: Make org-notify-action-notify support macOS without DBus * lisp/org-notify.el (org-notify-action-notify): Use Emacs to invoke AppleScript code to send notification when DBus not available under macOS. --- lisp/org-notify.el | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/lisp/org-notify.el b/lisp/org-notify.el index 7f9a814..e8f8cf6 100644 --- a/lisp/org-notify.el +++ b/lisp/org-notify.el @@ -379,16 +379,27 @@ org-notify window. Mostly copied from `appt-select-lowest-window'." (defun org-notify-action-notify (plist) "Pop up a notification window." (require 'notifications) - (let* ((duration (plist-get plist :duration)) - (id (notifications-notify - :title (plist-get plist :heading) - :body (org-notify-body-text plist) - :timeout (if duration (* duration 1000)) - :urgency (plist-get plist :urgency) - :actions org-notify-actions - :on-action 'org-notify-on-action-notify))) - (setq org-notify-on-action-map - (plist-put org-notify-on-action-map id plist)))) + (cond ((and (featurep 'dbus) (boundp 'dbusbind)) + (let* ((duration (plist-get plist :duration)) + (id (notifications-notify + :title (plist-get plist :heading) + :body (org-notify-body-text plist) + :timeout (if duration (* duration 1000)) + :urgency (plist-get plist :urgency) + :actions org-notify-actions + :on-action 'org-notify-on-action-notify))) + (setq org-notify-on-action-map + (plist-put org-notify-on-action-map id plist)))) + ((fboundp 'ns-do-applescript) + (ns-do-applescript + (format "display notification \"%s\" with title \"%s\" sound name \"Frog\"" + (replace-regexp-in-string "\"" "#" (org-notify-body-text plist)) + (replace-regexp-in-string "\"" "#" (plist-get plist :heading)))) + (when org-notify-audible + ;; TODO make audio speaking async. By default `ns-do-applescript' will block Emacs. + (ns-do-applescript + (format "say \"%s\"" + (replace-regexp-in-string "\"" "#" (plist-get plist :heading)))))))) (defun org-notify-action-notify/window (plist) "For a graphics display, pop up a notification window, for a text @@ -398,8 +409,7 @@ terminal an emacs window." (org-notify-action-window plist))) ;;; Provide a minimal default setup. -(org-notify-add 'default '(:time "1h" :actions -notify/window - :period "2m" :duration 60)) +(org-notify-add 'default '(:time "1h" :actions -notify/window :period "2m" :duration 60)) (provide 'org-notify) -- 2.30.1 (Apple Git-130) --=-=-= 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 --=-=-=--