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: Mon, 04 Sep 2023 13:58:48 -0400 Message-ID: <87v8cpes6f.fsf@gmail.com> References: <988fce74-dd23-b32f-cf7d-c48ac2783777@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="3852"; 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 Cancel-Lock: sha1:2dual0ovcssx5vgvD8ID8MLGQFA= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 04 19:59:36 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 1qdDrL-0000oh-GV for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Sep 2023 19:59:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdDql-00038o-Ht; Mon, 04 Sep 2023 13:58:59 -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 1qdDqj-00035Q-Pm for help-gnu-emacs@gnu.org; Mon, 04 Sep 2023 13:58:57 -0400 Original-Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdDqh-0004as-Mk for help-gnu-emacs@gnu.org; Mon, 04 Sep 2023 13:58:57 -0400 Original-Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-64f3ad95ec0so10409216d6.1 for ; Mon, 04 Sep 2023 10:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693850334; x=1694455134; darn=gnu.org; h=posted-to:content-transfer-encoding:mime-version:in-reply-to :cancel-lock:user-agent:message-id:date:references:subject:cc:to :newsgroups:from:from:to:cc:subject:date:message-id:reply-to; bh=JQABsCExo9q/YXumQelNj/RijNipRN+jgkysd/RLrVo=; b=rzQB13ClnnchiSVGgGBayCdKlp+ieDoOsEoS4Z8NPAqVbAnbFdUeVnLTbE5jb26Cu7 FQsOVh/LetUvX5Oa3gMwYi/4CFdSkEwqgsyTjv88QR4P9ExT3EcLeLBYCItANOL+GKje pr6Ux3fZ1a/NSzXYASP38rBlRzN/O1jHYBYEQ5u/X2/OOxA/vWNoJPontNBTBuvw4AA0 MIJLACf6J2tSbs4CGiRw8zUrGTiixv5ZH5bB52l3/Ka0iawXECkE4p/IpcgClESPTkqo ezX1T0+vQWWgKo3AEBl+AKTXXaRAGJU+TNyppfGl0bDhm59LRsQXTRQTf7i3gDk75N/d 7kag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693850334; x=1694455134; h=posted-to:content-transfer-encoding:mime-version:in-reply-to :cancel-lock:user-agent:message-id:date:references:subject:cc:to :newsgroups:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JQABsCExo9q/YXumQelNj/RijNipRN+jgkysd/RLrVo=; b=V+BhqcHulV+tjivwk0T3D8WyHO7TIulMcSlfHXH+VUDfM8JOdLfwhgihLljdYvAPNP Ic3S/R0NuBl4YyRNk/g75g22Wdqzt7kBjDME5aytUEO4kwG/YBUITjy6ls7+biRZDiy1 i5dM4AkreXYlg+HzWN4cIqTp3gjqOdIJy4fHhZvWPO9ArK+UDWxQA2/1abBjaXhqyQqQ KQm1QM9s9tSBPOLROAS5+PyQgHJzq/XrF+JGaHww52V1TzJko/GehkYPNQWJvrF0of8B bgQMXN4bkD7si0qzujRSQMxIp2NnczsYSJK2ADbt6/+9991mMoQhyXUZdD6r9riUIDLv 3QVQ== X-Gm-Message-State: AOJu0Yw+87ctDlmBDeG0Pg0RqKjYD4/0f1koiWncetQfKAoKViJfANN7 W7/R9C1YNEvxT3yfL1vwAA8= X-Google-Smtp-Source: AGHT+IGWgmjHEnDc8R3QnZhXwvhX9iC/7ilvEK9Hb1HQkJ4DfMjBlsnOLGo7Ih8yCa4/F5o1YkKxJg== X-Received: by 2002:a0c:d810:0:b0:651:75f2:dfb7 with SMTP id h16-20020a0cd810000000b0065175f2dfb7mr10270840qvj.59.1693850333924; Mon, 04 Sep 2023 10:58:53 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::a271]) by smtp.gmail.com with ESMTPSA id z3-20020a0cda83000000b0064f70c57531sm3748660qvj.57.2023.09.04.10.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 10:58:53 -0700 (PDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: <988fce74-dd23-b32f-cf7d-c48ac2783777@gmail.com> (Maske's message of "Sun, 3 Sep 2023 19:05:27 +0200") Posted-To: gnu.emacs.help Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=tpeplt@gmail.com; helo=mail-qv1-xf2d.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:145073 Archived-At: The following message is a courtesy copy of an article that has been posted to gnu.emacs.help as well. Maske writes: > > I am having constantly troubles with hooks (basically, I don't know > how them work). > > For example, this has no effect, is it possible to know why? > > (add-hook 'org-pomodoro-started-hook 'toggle-tool-bar-mode-from-frame) > (add-hook 'org-pomodoro-started-hook 'toggle-menu-bar-mode-from-frame) > (add-hook 'org-pomodoro-started-hook 'toggle-tab-bar-mode-from-frame) > Some information that might help in diagnosing your problem: 1. Type C-h v org-pomodoro-started-hook and then paste that description (from the *Help* buffer) into a message to this group. 2. Type C-h f toggle-tool-bar-mode-from-frame and then paste that description into the same message. It is possible, for example, that the Emacs Lisp code that reads the =E2=80=98org-pomodoro-started-hook=E2=80=99 variable is not running, for so= me reason. Also, if possible, provide whatever other code or documentation about the package that you are using that specified setting the =E2=80=98org-pomodoro-started-hook=E2=80=99 variable. --