GNU bug report logs - #65864
[PATCH] Add option to save a buffer without running save hooks

Previous Next

Package: emacs;

Reported by: Daniel Martín <mardani29 <at> yahoo.es>

Date: Mon, 11 Sep 2023 10:28:02 UTC

Severity: wishlist

Tags: patch

Full log


View this message in rfc822 format

From: Daniel Martín <mardani29 <at> yahoo.es>
To: 65864 <at> debbugs.gnu.org
Subject: bug#65864: [PATCH] Add option to save a buffer without running save hooks
Date: Mon, 11 Sep 2023 12:24:40 +0200
[Message part 1 (text/plain, inline)]
Tags: patch


Users can customize `before-save-hook' to add things like
`delete-trailing-whitespace' or `copyright-update'.  However, there are
cases where you want to save a buffer without running any save hooks
without changing your configuration and then changing it back.

I've attached a patch to make `save-buffer', when invoked with a
negative argument (C-u - C-x C-s), temporarily avoid running any save
hooks.

[0001-Add-option-to-save-a-buffer-without-running-save-hoo.patch (text/patch, attachment)]

This bug report was last modified 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.