|
From: | Maske |
Subject: | Re: Help with hooks |
Date: | Sun, 10 Sep 2023 14:03:52 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 |
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. --
[Prev in Thread] | Current Thread | [Next in Thread] |