]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/subr.el (with-silent-modifications): Minor simplification
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Jun 2024 14:57:11 +0000 (10:57 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 12:58:53 +0000 (14:58 +0200)
(cherry picked from commit 24082fc3c3c779dc9ac9e27135feb0fe1166f796)

lisp/subr.el

index 8dfcacb61454503fc34f0f66c533c6e20df10db1..ab5db81c8fc1831a0dd1767ea4f1ac57effd671b 100644 (file)
@@ -5086,8 +5086,7 @@ of that nature."
        (unwind-protect
            (progn
              ,@body)
-         (when (or (not ,modified)
-                   (eq ,modified 'autosaved))
+         (when (memq ,modified '(nil autosaved))
            (restore-buffer-modified-p ,modified))))))
 
 (defmacro with-output-to-string (&rest body)