bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65864: [PATCH] Add option to save a buffer without running save hook


From: Daniel Martín
Subject: bug#65864: [PATCH] Add option to save a buffer without running save hooks
Date: Mon, 11 Sep 2023 12:24:40 +0200

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.

Attachment: 0001-Add-option-to-save-a-buffer-without-running-save-hoo.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]