]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/buffer.c (Fget_buffer_create): Apply booleans's eta-reduction
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 6 Apr 2019 22:54:31 +0000 (18:54 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 6 Apr 2019 22:54:31 +0000 (18:54 -0400)
src/buffer.c

index c5d8ee2629109a3c427f1f30d36e0650e1dc4387..ab477481912066a0a5bf0a1792ccba1003d279ff 100644 (file)
@@ -584,12 +584,10 @@ even if it is dead.  The return value is never nil.  */)
   set_string_intervals (name, NULL);
   bset_name (b, name);
 
-  if (STRINGP (Vcode_conversion_workbuf_name)
-      && strncmp (SSDATA (name), SSDATA (Vcode_conversion_workbuf_name),
-                 SBYTES (Vcode_conversion_workbuf_name)) == 0)
-    b->inhibit_buffer_hooks = true;
-  else
-    b->inhibit_buffer_hooks = false;
+  b->inhibit_buffer_hooks
+    = (STRINGP (Vcode_conversion_workbuf_name)
+       && strncmp (SSDATA (name), SSDATA (Vcode_conversion_workbuf_name),
+                  SBYTES (Vcode_conversion_workbuf_name)) == 0);
 
   bset_undo_list (b, SREF (name, 0) != ' ' ? Qnil : Qt);