From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Temporarily suppress a hook? Date: Sun, 8 Jul 2018 22:43:41 -0600 Message-ID: <20180708224002383388073@bob.proulx.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1531111346 16391 195.159.176.226 (9 Jul 2018 04:42:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2018 04:42:26 +0000 (UTC) User-Agent: Mutt/1.5.23 (2014-03-12) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 06:42:22 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcO0A-00042x-C5 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 06:42:18 +0200 Original-Received: from localhost ([::1]:39229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcO2F-0003ZC-N0 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 00:44:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcO1a-0003YL-AT for help-gnu-emacs@gnu.org; Mon, 09 Jul 2018 00:43:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcO1X-0002He-3b for help-gnu-emacs@gnu.org; Mon, 09 Jul 2018 00:43:46 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:34959) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fcO1W-0002H4-U6 for help-gnu-emacs@gnu.org; Mon, 09 Jul 2018 00:43:43 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 9742920A0 for ; Sun, 8 Jul 2018 22:43:41 -0600 (MDT) Original-Received: by joseki.proulx.com (Postfix, from userid 1000) id 611012189F; Sun, 8 Jul 2018 22:43:41 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117392 Archived-At: Skip Montanaro wrote: > Is it possible to suppress the before-save-hook on a > per-file basis? I know this isn't quite what you are wanting but sometimes a crazy squirrel cage argument which is outside the normal box can still be useful... Could you suppress you entire .emacs so as to avoid all of your customization? emacs -q that-special-flie Or you would pick another user on your system that has a compatible file to you but without the hooks. Perhaps root? Perhaps another user? Use their .emacs file for that one file. emacs -u root that-special-flie I know that will be less desirable for many reasons. You won't get your normal configuration for other things. But if you can take a default configuration for just that moment then it would suppress your hooks as they would not be added then. Bob