emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0c48469: Fix typos in a recent change


From: Eli Zaretskii
Subject: master 0c48469: Fix typos in a recent change
Date: Mon, 19 Jul 2021 12:47:18 -0400 (EDT)

branch: master
commit 0c48469ac11ea0120d050b79072a6dcb1798d2e0
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix typos in a recent change
    
    * 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 | 2 +-
 src/buffer.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 02bbc67..55e9d00 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -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
diff --git a/src/buffer.c b/src/buffer.c
index 18c4734..d3a5ffd 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]