* How to inspect hook variables with byte compilation
@ 2023-09-27 17:33 Ross Vandegrift
2023-09-28 8:02 ` Robert Pluim
0 siblings, 1 reply; 4+ messages in thread
From: Ross Vandegrift @ 2023-09-27 17:33 UTC (permalink / raw)
To: help-gnu-emacs
Hi folks,
I'm using emacs 28.2 from Debian. I'm trying to troubleshoot an issue
with my org-mode setup. So I inspect org-mode-hook with C-h v.
The value is a byte-compiled function, and clicking on the bytecode
gives me a disassemly. How do I get human-readable output?
Output:
org-mode-hook is a variable defined in ‘org.el’.
Its value is shown below.
Mode hook for Org mode, run after the mode was turned on.
This variable may be risky if used as a file-local variable.
You can customize this variable.
Value:
(#f(compiled-function
()
#<bytecode -0x1356c8e47eb756a0>)
#f(compiled-function
()
#<bytecode -0x1356c8e6dc1bfaa0>)
org-babel-result-hide-spec org-babel-hide-all-hashes)
Original value was nil
[back]
Thanks,
Ross
Please CC me, I'm not subscribed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to inspect hook variables with byte compilation
2023-09-27 17:33 How to inspect hook variables with byte compilation Ross Vandegrift
@ 2023-09-28 8:02 ` Robert Pluim
2023-09-28 15:43 ` Ross Vandegrift
0 siblings, 1 reply; 4+ messages in thread
From: Robert Pluim @ 2023-09-28 8:02 UTC (permalink / raw)
To: Ross Vandegrift; +Cc: help-gnu-emacs
>>>>> On Wed, 27 Sep 2023 10:33:28 -0700, Ross Vandegrift <ross@kallisti.us> said:
Ross> Hi folks,
Ross> I'm using emacs 28.2 from Debian. I'm trying to troubleshoot an issue
Ross> with my org-mode setup. So I inspect org-mode-hook with C-h v.
Ross> The value is a byte-compiled function, and clicking on the bytecode
Ross> gives me a disassemly. How do I get human-readable output?
Ross> Output:
Ross> org-mode-hook is a variable defined in ‘org.el’.
Ross> Its value is shown below.
Ross> Mode hook for Org mode, run after the mode was turned on.
Ross> This variable may be risky if used as a file-local variable.
Ross> You can customize this variable.
Ross> Value:
Ross> (#f(compiled-function
Ross> ()
Ross> #<bytecode -0x1356c8e47eb756a0>)
Ross> #f(compiled-function
Ross> ()
Ross> #<bytecode -0x1356c8e6dc1bfaa0>)
Ross> org-babel-result-hide-spec org-babel-hide-all-hashes)
Ross> Original value was nil
Find out which file is setting the org-mode-hook, and temporarily move
its .elc version out of the way.
Robert
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to inspect hook variables with byte compilation
2023-09-28 8:02 ` Robert Pluim
@ 2023-09-28 15:43 ` Ross Vandegrift
2023-10-04 14:25 ` Robert Pluim
0 siblings, 1 reply; 4+ messages in thread
From: Ross Vandegrift @ 2023-09-28 15:43 UTC (permalink / raw)
To: Robert Pluim; +Cc: help-gnu-emacs
Hi Robert,
On Thu, Sep 28, 2023 at 10:02:21AM +0200, Robert Pluim wrote:
> Ross> Output:
>
> Ross> org-mode-hook is a variable defined in ‘org.el’.
>
> Ross> Its value is shown below.
>
> Ross> Mode hook for Org mode, run after the mode was turned on.
>
> Ross> This variable may be risky if used as a file-local variable.
> Ross> You can customize this variable.
>
> Ross> Value:
> Ross> (#f(compiled-function
> Ross> ()
> Ross> #<bytecode -0x1356c8e47eb756a0>)
> Ross> #f(compiled-function
> Ross> ()
> Ross> #<bytecode -0x1356c8e6dc1bfaa0>)
> Ross> org-babel-result-hide-spec org-babel-hide-all-hashes)
> Ross> Original value was nil
>
> Find out which file is setting the org-mode-hook, and temporarily move
> its .elc version out of the way.
That's a bit of a puzzler too - the only place my config modifies it is
in ~/.emacs.d/init.el. AFAIK, init.el isn't byte-compiled? At least I
can't find any init elc files:
$ find ~/.emacs.d -name 'init*.elc'
$
I tried moving all of the binary eln files which matched `org-mode-hook`
out of the way, but it didn't help.
Thanks,
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to inspect hook variables with byte compilation
2023-09-28 15:43 ` Ross Vandegrift
@ 2023-10-04 14:25 ` Robert Pluim
0 siblings, 0 replies; 4+ messages in thread
From: Robert Pluim @ 2023-10-04 14:25 UTC (permalink / raw)
To: Ross Vandegrift; +Cc: help-gnu-emacs
>>>>> On Thu, 28 Sep 2023 08:43:47 -0700, Ross Vandegrift <ross@kallisti.us> said:
Ross> Hi Robert,
Ross> On Thu, Sep 28, 2023 at 10:02:21AM +0200, Robert Pluim wrote:
Ross> Output:
>>
Ross> org-mode-hook is a variable defined in ‘org.el’.
>>
Ross> Its value is shown below.
>>
Ross> Mode hook for Org mode, run after the mode was turned on.
>>
Ross> This variable may be risky if used as a file-local variable.
Ross> You can customize this variable.
>>
Ross> Value:
Ross> (#f(compiled-function
Ross> ()
Ross> #<bytecode -0x1356c8e47eb756a0>)
Ross> #f(compiled-function
Ross> ()
Ross> #<bytecode -0x1356c8e6dc1bfaa0>)
Ross> org-babel-result-hide-spec org-babel-hide-all-hashes)
Ross> Original value was nil
>>
>> Find out which file is setting the org-mode-hook, and temporarily move
>> its .elc version out of the way.
Ross> That's a bit of a puzzler too - the only place my config modifies it is
Ross> in ~/.emacs.d/init.el. AFAIK, init.el isn't byte-compiled? At least I
Ross> can't find any init elc files:
Ross> $ find ~/.emacs.d -name 'init*.elc'
Ross> $
Ross> I tried moving all of the binary eln files which matched `org-mode-hook`
Ross> out of the way, but it didn't help.
Then thereʼs something in org thatʼs setting it. Try
(add-variable-watcher 'org-mode-hook (lambda (s n o w)
(debug)))
which will give you a backtrace when something changes it.
Robert
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-04 14:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-27 17:33 How to inspect hook variables with byte compilation Ross Vandegrift
2023-09-28 8:02 ` Robert Pluim
2023-09-28 15:43 ` Ross Vandegrift
2023-10-04 14:25 ` Robert Pluim
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.