From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#65864: [PATCH] Add option to save a buffer without running save hooks Date: Wed, 13 Sep 2023 10:17:02 -0700 Message-ID: References: <83h6o0ri8c.fsf@gnu.org> <86zg1qrsxi.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, monnier@iro.umontreal.ca, mardani29@yahoo.es To: Juri Linkov , 65864@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 19:18:23 2023 Return-path: Envelope-to: geb-bug-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 1qgTVO-0006hM-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 19:18:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgTV0-0008Uk-Tg; Wed, 13 Sep 2023 13:17:58 -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 1qgTUz-0008Ua-P8 for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 13:17:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgTUz-0002Yv-Gx for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 13:17:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgTV3-0005aB-Vy for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65864-submit@debbugs.gnu.org id=B65864.169462544021411 (code B ref 65864); Wed, 13 Sep 2023 17:18:01 +0000 Original-Received: (at 65864) by debbugs.gnu.org; 13 Sep 2023 17:17:20 +0000 Original-Received: from localhost ([127.0.0.1]:35884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTUN-0005ZF-M9 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 13:17:19 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:59449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTUJ-0005Z0-5Y for 65864@debbugs.gnu.org; Wed, 13 Sep 2023 13:17:18 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-500913779f5so12260910e87.2 for <65864@debbugs.gnu.org>; Wed, 13 Sep 2023 10:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694625424; x=1695230224; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=fiKrm0ruy8M/Ye3H7+stMoWAJSBeaqctgtf2E/f6vDQ=; b=OVTVoNYi1GnDjbDsKCPG4o7mPOpV/LreTmlD/u1h3n63yWSl0qtsrGwGmaDq/ADbH/ VEWnXtnCNIlpfY8UGvhw+vTCShlbSnVONDs2XzNfcZt9IeHuAqdy4t0z6F78dh+o5DJg cWbuzj/ENwEWa8FrteYBZePzcdPV+saP/7LS2J1+Ix/pZD0xucfvaR4tAYpfq5MUJ7K/ k5QKtk030gdqBSVKGXX4zu65Ev2jyWTK4Xj9UGmGU/en0w659vc8zWLSkpjrmc/iTZXH BWHla6WKCM7Zn8VJNymP/Kfkvp3Ugyf/KOw5iSF2elwHjapUjYLtPYZUL+YdDF72A1ng QmOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694625424; x=1695230224; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fiKrm0ruy8M/Ye3H7+stMoWAJSBeaqctgtf2E/f6vDQ=; b=aZi7U8pdTHceIuLSHNSBZKhne11kh4Hhi5LYh773jga2uABgSzdiM5kfD4mKXZ3SNI uZuNdbLa8GQ0nDZc/75SbD+CmUMCcEcmJlI36jE1TwYkqPs+BT9eCqezPSA2qfDd9Lnk qGRR5ghOr/SYP/iZokI/GVMjuGLqpKEAAJJv67AeDATdKDdvBnQYbz7L4ySdP2iRAsWP pdaAuHgCRIokZi6t5I2x9Xw68OpmC2MM0n3liFvXu5aR9pRwrTBv3DfuVCFpQP48ajum lgQp0UduWqD0D1PZqTV/n2v0ZOCftQF+d6WacZh/emV+xRb5IniCMuEttai+F2p8dPQm MowA== X-Gm-Message-State: AOJu0YznBvrHZYnZRxB9pQ/aNLoY90s1wXzrrpOMF435gBp1tAttAXt3 TG7aiqC+S/yYoDy9cKMtQxX+ETeVygAsAT/489A= X-Google-Smtp-Source: AGHT+IGCK92uGKrx2esbLwU4FC75vV05qx30EqiWqUb/xCzbGDo4mg8DbvB9v23vcnbZBxx0HnU3LePohNFeUEbq09M= X-Received: by 2002:ac2:4c3c:0:b0:500:8146:9ebc with SMTP id u28-20020ac24c3c000000b0050081469ebcmr2471936lfq.47.1694625423534; Wed, 13 Sep 2023 10:17:03 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 13 Sep 2023 10:17:03 -0700 In-Reply-To: <86zg1qrsxi.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270340 Archived-At: Juri Linkov writes: > I confirm that 'C-u - C-x C-s' will save me from trouble that I have with > > (add-hook 'before-save-hook 'time-stamp nil t) > > because often I don't need to update the timestamp for a small fix. > It takes too much time to revisit the file with M-x find-file-literally, > then manually restore the previous timestamp (to not commit unnecessary change), > and save the file again. Your patch will help substantially, thanks for this. Same here, FWIW.