From: Stefan Monnier Date: Sat, 6 Apr 2019 22:54:31 +0000 (-0400) Subject: * src/buffer.c (Fget_buffer_create): Apply booleans's eta-reduction X-Git-Tag: emacs-27.0.90~3261^2~89 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=43f4c7ddd2077b2e786d069bbb9e2de32f23ffb2;p=emacs.git * src/buffer.c (Fget_buffer_create): Apply booleans's eta-reduction --- diff --git a/src/buffer.c b/src/buffer.c index c5d8ee26291..ab477481912 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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);