]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typos in a recent change
authorEli Zaretskii <eliz@gnu.org>
Mon, 19 Jul 2021 16:46:43 +0000 (19:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 19 Jul 2021 16:46:43 +0000 (19:46 +0300)
* src/buffer.c (Fmake_indirect_buffer): Fix a typo in a recent
change.

* doc/lispref/buffers.texi (Indirect Buffers): Fix punctuation.

doc/lispref/buffers.texi
src/buffer.c

index 02bbc67c5d125e7ef243ca96c3707ded78429a3b..55e9d00d8bfb14ea2c7b6c313f2c1d6893fde83c 100644 (file)
@@ -1200,7 +1200,7 @@ the base for the new buffer.  If, in addition, @var{clone} is
 non-@code{nil}, the initial state is copied from the actual base
 buffer, not from @var{base-buffer}.
 
-@xref{Creating Buffers} for the meaning of @var{inhibit-buffer-hooks}.
+@xref{Creating Buffers}, for the meaning of @var{inhibit-buffer-hooks}.
 @end deffn
 
 @deffn Command clone-indirect-buffer newname display-flag &optional norecord
index 18c473490686aaef11e563452418bb1c2253ce90..d3a5ffd1491e85e6eb7b0d475d47edbdc87aedd1 100644 (file)
@@ -841,7 +841,7 @@ does not run the hooks `kill-buffer-hook',
   b->pt_byte = b->base_buffer->pt_byte;
   b->begv_byte = b->base_buffer->begv_byte;
   b->zv_byte = b->base_buffer->zv_byte;
-  b->inhibit_buffer_hooks = inhibit_buffer_hooks;
+  b->inhibit_buffer_hooks = !NILP (inhibit_buffer_hooks);
 
   b->newline_cache = 0;
   b->width_run_cache = 0;