From: Maske <maske1foro@gmail.com>
To: tpeplt <tpeplt@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help with hooks
Date: Sun, 10 Sep 2023 14:03:52 +0200 [thread overview]
Message-ID: <9a1233e3-d710-c1b5-5ec5-ecc3958a279a@gmail.com> (raw)
In-Reply-To: <87v8cpes6f.fsf@gmail.com>
Hi tpeplt!
I suppose then, that I used correctly the hook, but there could be a bug
in the package?
I am yanking below what you asked for:
1. Type C-h v org-pomodoro-started-hook
org-pomodoro-started-hook is a variable defined in org-pomodoro.el.
Value
(toggle-tab-bar-mode-from-frame
toggle-menu-bar-mode-from-frame
toggle-tool-bar-mode-from-frame
delete-other-windows)
View as literal Set
Documentation
Hooks run when a pomodoro is started.
References
References in org-pomodoro.el:
(defvar org-pomodoro-started-hook ...) 1 reference
Find all references
Debugging
Forget
Source Code
;; Defined in ~/.emacs.d/elpa/org-pomodoro-20220318.1618/org-pomodoro.el
Symbol Properties
variable-documentation
"Hooks run when a pomodoro is started."
2. Type C-h f toggle-tool-bar-mode-from-frame
toggle-tool-bar-mode-from-frame is an autoloaded, interactive and
natively compiled function defined in tool-bar.el.
Signature
(toggle-tool-bar-mode-from-frame &optional ARG)
Documentation
Toggle tool bar on or off, based on the status of the current frame.
See tool-bar-mode for more information.
Key Bindings
This command is not in any keymaps.
References
toggle-tool-bar-mode-from-frame is unused in tool-bar.el.
Find all references Functions used by toggle-tool-bar-mode-from-frame
Debugging
Enable edebug Enable tracing
Disassemble Forget
Source Code
;; Defined in z:/emacs-i686/emacs-29.1/share/emacs/29.1/lisp/tool-bar.el
;;;###autoload
;; Used in the Show/Hide menu, to have the toggle reflect the current frame.
(defun toggle-tool-bar-mode-from-frame (&optional arg)
"Toggle tool bar on or off, based on the status of the current frame.
See `tool-bar-mode' for more information."
(interactive (list (or current-prefix-arg 'toggle)))
(if (eq arg 'toggle)
(tool-bar-mode (if (> (frame-parameter nil 'tool-bar-lines) 0) 0 1))
(tool-bar-mode arg)))
Symbol Properties
event-symbol-element-mask
(toggle-tool-bar-mode-from-frame 0)
event-symbol-elements
(toggle-tool-bar-mode-from-frame)
function-history
("tool-bar.elc"
(autoload "tool-bar"
("loaddefs.elc" . 1270775)
t nil))
modifier-cache
((0 . toggle-tool-bar-mode-from-frame))
El 04/09/2023 a las 19:58, tpeplt escribió:
> The following message is a courtesy copy of an article
> that has been posted to gnu.emacs.help as well.
>
> Maske<maske1foro@gmail.com> 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
> ‘org-pomodoro-started-hook’ variable is not running, for some reason.
>
> Also, if possible, provide whatever other code or documentation about
> the package that you are using that specified setting the
> ‘org-pomodoro-started-hook’ variable.
>
> --
next prev parent reply other threads:[~2023-09-10 12:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-03 17:05 Help with hooks Maske
2023-09-04 17:58 ` tpeplt
[not found] ` <87cyyxpzhp.fsf@dataswamp.org>
2023-09-09 10:41 ` Maske
2023-09-10 20:43 ` Emanuel Berg
2023-09-12 13:02 ` Mailing lists help [it was: Help with hooks] Maske
2023-09-12 13:16 ` Po Lu
2023-09-12 13:28 ` Maske
2023-09-12 13:39 ` Po Lu
2023-09-12 15:10 ` Eric S Fraga
2023-09-12 16:04 ` Emanuel Berg
2023-09-12 17:27 ` Maske
2023-09-10 12:03 ` Maske [this message]
2023-09-10 23:36 ` Help with hooks tpeplt
2023-09-11 13:00 ` tpeplt
2023-09-15 13:46 ` Maske
2023-09-16 3:09 ` tpeplt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a1233e3-d710-c1b5-5ec5-ecc3958a279a@gmail.com \
--to=maske1foro@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tpeplt@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).