From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: Help with hooks Date: Fri, 15 Sep 2023 23:09:14 -0400 Message-ID: <87o7i2ervp.fsf@gmail.com> References: <988fce74-dd23-b32f-cf7d-c48ac2783777@gmail.com> <87v8cpes6f.fsf@gmail.com> <9a1233e3-d710-c1b5-5ec5-ecc3958a279a@gmail.com> <871qf5lhwz.fsf@gmail.com> <9e56b755-2540-d31b-68aa-c2500cb9fce1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15763"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Maske Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 16 05:10:05 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qhLh6-0003yk-IQ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 05:10:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhLgP-0002kz-5U; Fri, 15 Sep 2023 23:09:21 -0400 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 1qhLgO-0002kp-Ag for help-gnu-emacs@gnu.org; Fri, 15 Sep 2023 23:09:20 -0400 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhLgL-0003GN-FZ for help-gnu-emacs@gnu.org; Fri, 15 Sep 2023 23:09:20 -0400 Original-Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-6562395dfcfso11846886d6.0 for ; Fri, 15 Sep 2023 20:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694833756; x=1695438556; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Fr6gb6F9uon7orevKisFOk+oNiGF4bwY3PXD+4G6DW8=; b=bT3qFMH9aFcIPEKAhG9XOZzqyyykPI0+vfecEonx2polHaTNloSOpGJdVHhmVHdfYe huiEHgQOAB43YvqBEayNxGh+h0QtWvD23fg5Zj4JvPhOwosD2w2WQm+GwvMnIa6apx97 zeMHkWHc2C7WvQI7DGqQz4Iti4PGJLqTKtC+L2B9DIxeg9S8J0gokIwSpYEJIm7Biwj4 miK66z4zikRWG8WgwH/5Avm9kDclXhokTYFbm4hlCbPm8jE5UmFUICTVNNXR1eCX3R8j AqbwFqAxrUZWn46sLLz6W5AYfKvj2GF6wUahhPaF47uEHzRHSURPPF7tECyq8PYkt8dh AWIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694833756; x=1695438556; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Fr6gb6F9uon7orevKisFOk+oNiGF4bwY3PXD+4G6DW8=; b=VxBHuI0tCBvWoOqirGP0Bnno89eQSj+MJaaT3lSsUnNEdzOJwwDOxPTmeObcaLdrtM xkv4uC+0TcforuyBou/hys1Y3l4RmZ6eWrjnbj7z+D0eKPpjimfHPGreLcwUi5PYm/to mzQ76F1CO6zrHwpsH/yH1jgyucu/DPQW078mN+vYj7cIGxhFsnI5rBi2qOkzOX/Kj/13 zvSNLyuTguyiueqZt0FptKJCrZBcUmMMYDjfJ64/iuAEATJ1xCwvxzMa2+2OKDW+EUZ4 8FSM7mJ5qc8T6ElsJjgNHDHLiDm750ykCp4+DAX6MjIkgSv48d0PQ17DMnthid/3fYb4 iNVw== X-Gm-Message-State: AOJu0YyoUBN51eIX58wHtJjJlP9d1nkStz7hLgGGBDk32uNW8aQWSuEs kqiJNsmfQKv+SndbyZw0RdE= X-Google-Smtp-Source: AGHT+IGwX4ykQW2ekhT9cIann6EbH1nD8Xeiit1XerSciFedRoktuxwaKyTNkiUzEvYOxswnzwhzPQ== X-Received: by 2002:a0c:b284:0:b0:656:3c00:dc92 with SMTP id r4-20020a0cb284000000b006563c00dc92mr2482929qve.31.1694833756097; Fri, 15 Sep 2023 20:09:16 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::354f]) by smtp.gmail.com with ESMTPSA id j28-20020a05620a001c00b00767f00a9c67sm1636999qki.95.2023.09.15.20.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 20:09:15 -0700 (PDT) In-Reply-To: <9e56b755-2540-d31b-68aa-c2500cb9fce1@gmail.com> (Maske's message of "Fri, 15 Sep 2023 15:46:29 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=tpeplt@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145132 Archived-At: Maske writes: > > I think version 20220318.1618 is newer than 2.1.0. It's from MELPA. > Do you think I should go for the older version? > It doesn=E2=80=99t hurt to try the other version since you can always rever= t. > I can hear the sounds related to org-pomodoro start and finishing. > Something simple to try: 1. Remove (comment out) the three forms that add values to =E2=80=98org-pomodoro-started-hook=E2=80=99. 2. Add the following: (defun my-simple-proc () "A procedure to add to a hook variable." (message "running my hook...")) (add-hook 'org-pomodoro-started-hook 'my-simple-proc) 3. Test the pomodoro feature. After you hear the sounds, you should view your *Messages* buffer (type C-h e). It should contain the message "running my hook...". If it does, then you are using =E2=80=98org-pomodoro=E2=80=99 properly, and= you will need to investigate how to use the toggle functions that you want to activate. --