aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-04 19:59:17 +0200
committerEli Zaretskii2016-12-04 19:59:17 +0200
commitde4624c99ea5bbe38ad5aff7b6461cc5c740d0be (patch)
tree1b57de9e769cdb695cb2cecf157b50f7dea9cfe5 /src/buffer.c
parenta486fabb41cdbaa5813c2687fd4008945297d71d (diff)
parente7bde34e939451d87fb42a36195086bdbe48b5e1 (diff)
downloademacs-de4624c99ea5bbe38ad5aff7b6461cc5c740d0be.tar.gz
emacs-de4624c99ea5bbe38ad5aff7b6461cc5c740d0be.zip
Merge branch 'concurrency'
Conflicts (resolved): configure.ac src/Makefile.in src/alloc.c src/bytecode.c src/emacs.c src/eval.c src/lisp.h src/process.c src/regex.c src/regex.h
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 6815aa7f7ed..cea1ddb5ab3 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -48,8 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
48#include "w32heap.h" /* for mmap_* */ 48#include "w32heap.h" /* for mmap_* */
49#endif 49#endif
50 50
51struct buffer *current_buffer; /* The current buffer. */
52
53/* First buffer in chain of all buffers (in reverse order of creation). 51/* First buffer in chain of all buffers (in reverse order of creation).
54 Threaded through ->header.next.buffer. */ 52 Threaded through ->header.next.buffer. */
55 53
@@ -1654,6 +1652,9 @@ cleaning up all windows currently displaying the buffer to be killed. */)
1654 if (!BUFFER_LIVE_P (b)) 1652 if (!BUFFER_LIVE_P (b))
1655 return Qnil; 1653 return Qnil;
1656 1654
1655 if (thread_check_current_buffer (b))
1656 return Qnil;
1657
1657 /* Run hooks with the buffer to be killed the current buffer. */ 1658 /* Run hooks with the buffer to be killed the current buffer. */
1658 { 1659 {
1659 ptrdiff_t count = SPECPDL_INDEX (); 1660 ptrdiff_t count = SPECPDL_INDEX ();