From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ross Vandegrift Newsgroups: gmane.emacs.help Subject: Re: How to inspect hook variables with byte compilation Date: Thu, 28 Sep 2023 08:43:47 -0700 Message-ID: <20230928154347.rwps6pjijmeswovx@vanvanmojo.kallisti.us> References: <20230927173328.3jgldv4cezo22p4d@vanvanmojo.kallisti.us> <87wmwa67zm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18423"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 29 19:06:24 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 1qmGwa-0004Tx-01 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 29 Sep 2023 19:06:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmGwH-0003mD-74; Fri, 29 Sep 2023 13:06:05 -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 1qltBC-00038O-0C for help-gnu-emacs@gnu.org; Thu, 28 Sep 2023 11:43:54 -0400 Original-Received: from ravenhurst-smtp-tx.kallisti.us ([2600:3c03:e000:2e0::5] helo=ravenhurst.kallisti.us) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qltBA-00029o-I2 for help-gnu-emacs@gnu.org; Thu, 28 Sep 2023 11:43:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kallisti.us ; s=20220106; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+LXBjkbTehDRK1WNA3sa9HiDo+378cjZ2SDFrW8q5KY=; b=eGdTJI8h0791Euv3Q8hVJRrGYH /iD95+cocwbtwQIzM8FfA/ZdP5husZiGX4c9oTF+0ZgOSc+EpAlb9NIGkRJt9Z5MWNMzqMesgnuix 292O7umhdA9kSyw0m9VIyqGiS34jksZhw82iqhBKm/HOTf15wJNn87dtxBn3haTpFQmb/POmIEAJx IbQzZZGY4AFATCOT8FL5PV1edIylMnCCTSgR/gecwxoRyOZPGPBvUUrg4gQ+jbAjphD9Lqjkpp7aN mCxfbWvoKxEdc/wAgsNOGzv7Fi9911kQx+q3kVZCzuRSfUC7Cv8rfHMj9kREnC3X6WMahXWBMWEjB yPp7qyYw==; Original-Received: from [50.52.102.122] (helo=vanvanmojo.kallisti.us) by ravenhurst.kallisti.us with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qltB8-0057cC-Vx; Thu, 28 Sep 2023 11:43:51 -0400 Content-Disposition: inline In-Reply-To: <87wmwa67zm.fsf@gmail.com> Received-SPF: pass client-ip=2600:3c03:e000:2e0::5; envelope-from=ross@kallisti.us; helo=ravenhurst.kallisti.us 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 29 Sep 2023 13:05:59 -0400 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:145183 Archived-At: 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> #) > Ross> #f(compiled-function > Ross> () > Ross> #) > 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