From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: is the after-save-hook changed? Date: Thu, 11 Jan 2024 08:43:34 +0200 Message-ID: <83a5pcmktl.fsf@gnu.org> References: <87wmsh53t0.fsf@mat.ucm.es> 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="15244"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 11 07:44:19 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rNonb-0003jZ-Bc for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jan 2024 07:44:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNonD-0005QA-Kh; Thu, 11 Jan 2024 01:43:55 -0500 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 1rNonB-0005Pj-Te for emacs-devel@gnu.org; Thu, 11 Jan 2024 01:43:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNon9-00089K-PH; Thu, 11 Jan 2024 01:43:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=OSzGDuwIPCCxJyjvhnWDQ+WjyYWpM8NXRUimEj7u2i8=; b=nWzNpUcErL1iA3HlYZWa 4ja1KoQ+O+eIjDLSXOTGO8Es3MIseXUxDe0kw0TkS56oJ8K2VbJYE6egTKEX/K3E9yQ1yz3tdvhbi 7+bQum5wrFpdfOlslhuNjxNjfgklK61gpQkbn0HZqGrANu6iHaL78c7EGyeOMnFN0K+DO0yNfEuem F+57Tr9xqyHGBRXHSOgGiMZqmwLDBtZlbxyBEoUda/WPCMUWdOZkIXx8GFyvdphRgmVY9Jkt5kbMi bDGQdKgZCEWZ0Me+eK2ckDPAQb+EhV9/L2io1b69ByAdXbxRzKsYrp7yEh/+gURsWsnw6VRyMMopi I1WPoCJ+eEBrDw==; In-Reply-To: <87wmsh53t0.fsf@mat.ucm.es> (emacs-devel@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314836 Archived-At: > Date: Wed, 10 Jan 2024 21:30:51 +0100 > From: Uwe Brauer via "Emacs development discussions." > > I have used backup-each-save some years ago quite extensively. > > Now I wanted, at least for some files, to use it again. > > So I again started to use > (require 'backup-each-save) > and locally in LaTeX file > > --8<---------------cut here---------------start------------->8--- > %%% Local Variables: > %%% mode: latex > %%% TeX-master: t > %%% vc-make-backup-files: t > %%% eval: (add-hook (make-local-variable 'after-save-hook) 'backup-each-save) > %%% End: > --8<---------------cut here---------------end--------------->8--- > > > > > > However describe variable after-save-hook shows me in this file > > ,---- > | > | after-save-hook is a variable defined in ‘files.el’. > | > | Its value is (diff-hl-update t) > | Original value was nil > | Local in buffer test.tex; global value is (backup-each-save) > `---- > > > So who is the culprit here? If you want a local hook setting, use the LOCAL argument of add-hook.