From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: How to inspect hook variables with byte compilation Date: Wed, 04 Oct 2023 16:25:10 +0200 Message-ID: <871qea31o9.fsf@gmail.com> References: <20230927173328.3jgldv4cezo22p4d@vanvanmojo.kallisti.us> <87wmwa67zm.fsf@gmail.com> <20230928154347.rwps6pjijmeswovx@vanvanmojo.kallisti.us> 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="7871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Ross Vandegrift Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 04 16:26:01 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 1qo2p7-0001hd-H5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Oct 2023 16:26:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qo2oT-0007pV-2w; Wed, 04 Oct 2023 10:25: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 1qo2oP-0007pI-Bi for help-gnu-emacs@gnu.org; Wed, 04 Oct 2023 10:25:17 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qo2oN-0007yk-O6 for help-gnu-emacs@gnu.org; Wed, 04 Oct 2023 10:25:17 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3248e90f032so2154936f8f.1 for ; Wed, 04 Oct 2023 07:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696429513; x=1697034313; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=/Z7X060viVJQObrYTAWR1THOHf0tRo0hc0/fzgt64EM=; b=Z0ruqowsoAuImC/g4Bhbsf4r3RhF+h/XqZi22s2cLgpPShDwZuS0ZXLAHjD4rhGT6d 4H7A2wP4GnoStXymA8hbEf6Lju59ew9/aMNq8UGJRZvoD0FLiDiaoQxjWBQOkELhUR4h V3DnywVWs1zR8Ac0awF5X1bjiG3Zs6OOeZL98fTiIopjOawJAGzh91GsKqObv8MD6YjK w4su1saN/j5Zb+ipahkAZjRqD0vRXG1OajX81pCHWEfYge7uvgitZ7R6AbehDdxmf4/t pwtC8uL6GMoLiUuctj4mrna1kphOH+jrFiS1R0FlRE11fAs4Op249sQcEi0fmwL3aIM6 Bdpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696429513; x=1697034313; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/Z7X060viVJQObrYTAWR1THOHf0tRo0hc0/fzgt64EM=; b=W33A/rIptxV8imPJP+YhFcIQuU7pOo0vuS+ChAEOAjL9NeErvLEzE4FPhnP/sb1Y8C lIyCWeC2gKo4Jxu2jWKqYyXLdh9mLWWULkp4sGOo7g4KOyqrYXsGr6j4ti9QyY1KhGwj qpgzfJK0tYNvCxBZSHlvhtGn1je4n2Xvb7vWIrCVgT0VZ9pdSSwsvxLswzVvYOeNEgIB mVBy+P7PwyUUSuQDAZVBqL14XdsDUtKSOJKJRAtxkMH8x7Mn9RCwJXy3VdMufEI13riy K0d7s9cROV+S7aOHxYLEVXo3FnMrpMf/zlNxX8Xa9f2I8zUyUTo0QzGl+UIjOeXA4xiq CHkg== X-Gm-Message-State: AOJu0YzWz2sGVS/HTisK2PoHG+7rfQUElWwAoerMOPYvR4uLjVu6JYho E+GBFQiL82iwxOFzQlIxWW1mbtZ0zzhoDQ== X-Google-Smtp-Source: AGHT+IGPV1A8oJ5zhDaQCfYdj69qC3JK0/1d/t0a/XM65L78zKFKncAYLskwZjnFUQjzLYP07I+1aA== X-Received: by 2002:a5d:654d:0:b0:322:5251:d798 with SMTP id z13-20020a5d654d000000b003225251d798mr2024295wrv.70.1696429512368; Wed, 04 Oct 2023 07:25:12 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:da8:f225:6d90:a8df]) by smtp.gmail.com with ESMTPSA id bl40-20020adfe268000000b003233b554e6esm4180531wrb.85.2023.10.04.07.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:25:11 -0700 (PDT) In-Reply-To: <20230928154347.rwps6pjijmeswovx@vanvanmojo.kallisti.us> (Ross Vandegrift's message of "Thu, 28 Sep 2023 08:43:47 -0700") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42f.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:145206 Archived-At: >>>>> On Thu, 28 Sep 2023 08:43:47 -0700, Ross Vandegrift said: Ross> Hi Robert, Ross> On Thu, Sep 28, 2023 at 10:02:21AM +0200, Robert Pluim wrote: Ross> Output: >>=20 Ross> org-mode-hook is a variable defined in =E2=80=98org.el=E2=80=99. >>=20 Ross> Its value is shown below. >>=20 Ross> Mode hook for Org mode, run after the mode was turned on. >>=20 Ross> This variable may be risky if used as a file-local variable. Ross> You can customize this variable. >>=20 Ross> Value: Ross> (#f(compiled-function Ross> () Ross> #) Ross> #f(compiled-function Ross> () Ross> #) Ross> org-babel-result-hide-spec org-babel-hide-all-hashes) Ross> Original value was nil >>=20 >> Find out which file is setting the org-mode-hook, and temporarily mo= ve >> 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 l= east 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-mod= e-hook` Ross> out of the way, but it didn't help. Then there=CA=BCs something in org that=CA=BCs 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 --=20