diff options
| author | Paul Eggert | 2011-12-10 16:56:50 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-12-10 16:56:50 -0800 |
| commit | 8f50130c565eaf0ad7c49e4ad044c3291ecdfa71 (patch) | |
| tree | c8129448cbbf387fe82667ccac02983592c688f1 /src/buffer.c | |
| parent | 85a83e2e2585a1906dec5168ed96ad521b5849ed (diff) | |
| parent | 7b9d523a07395ecea505be88f45c33d73aea7038 (diff) | |
| download | emacs-8f50130c565eaf0ad7c49e4ad044c3291ecdfa71.tar.gz emacs-8f50130c565eaf0ad7c49e4ad044c3291ecdfa71.zip | |
Merge from trunk.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index f1ce9f4ec47..afa7e915429 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1526,7 +1526,13 @@ with SIGHUP. */) | |||
| 1526 | UNGCPRO; | 1526 | UNGCPRO; |
| 1527 | } | 1527 | } |
| 1528 | 1528 | ||
| 1529 | /* Make this buffer not be current. | 1529 | /* Run replace_buffer_in_windows before making another buffer current |
| 1530 | since set-window-buffer-start-and-point will refuse to make another | ||
| 1531 | buffer current if the selected window does not show the current | ||
| 1532 | buffer. (Bug#10114) */ | ||
| 1533 | replace_buffer_in_windows (buffer); | ||
| 1534 | |||
| 1535 | /* Make this buffer not be current. | ||
| 1530 | In the process, notice if this is the sole visible buffer | 1536 | In the process, notice if this is the sole visible buffer |
| 1531 | and give up if so. */ | 1537 | and give up if so. */ |
| 1532 | if (b == current_buffer) | 1538 | if (b == current_buffer) |
| @@ -1566,7 +1572,6 @@ with SIGHUP. */) | |||
| 1566 | 1572 | ||
| 1567 | /* These may run Lisp code and into infinite loops (if someone | 1573 | /* These may run Lisp code and into infinite loops (if someone |
| 1568 | insisted on circular lists) so allow quitting here. */ | 1574 | insisted on circular lists) so allow quitting here. */ |
| 1569 | replace_buffer_in_windows (buffer); | ||
| 1570 | frames_discard_buffer (buffer); | 1575 | frames_discard_buffer (buffer); |
| 1571 | 1576 | ||
| 1572 | clear_charpos_cache (b); | 1577 | clear_charpos_cache (b); |
| @@ -1626,7 +1631,7 @@ with SIGHUP. */) | |||
| 1626 | 1631 | ||
| 1627 | /* Reset the local variables, so that this buffer's local values | 1632 | /* Reset the local variables, so that this buffer's local values |
| 1628 | won't be protected from GC. They would be protected | 1633 | won't be protected from GC. They would be protected |
| 1629 | if they happened to remain encached in their symbols. | 1634 | if they happened to remain cached in their symbols. |
| 1630 | This gets rid of them for certain. */ | 1635 | This gets rid of them for certain. */ |
| 1631 | swap_out_buffer_local_variables (b); | 1636 | swap_out_buffer_local_variables (b); |
| 1632 | reset_buffer_local_variables (b, 1); | 1637 | reset_buffer_local_variables (b, 1); |
| @@ -2480,7 +2485,7 @@ swap_out_buffer_local_variables (struct buffer *b) | |||
| 2480 | Lisp_Object sym = XCAR (XCAR (alist)); | 2485 | Lisp_Object sym = XCAR (XCAR (alist)); |
| 2481 | eassert (XSYMBOL (sym)->redirect == SYMBOL_LOCALIZED); | 2486 | eassert (XSYMBOL (sym)->redirect == SYMBOL_LOCALIZED); |
| 2482 | /* Need not do anything if some other buffer's binding is | 2487 | /* Need not do anything if some other buffer's binding is |
| 2483 | now encached. */ | 2488 | now cached. */ |
| 2484 | if (EQ (SYMBOL_BLV (XSYMBOL (sym))->where, buffer)) | 2489 | if (EQ (SYMBOL_BLV (XSYMBOL (sym))->where, buffer)) |
| 2485 | { | 2490 | { |
| 2486 | /* Symbol is set up for this buffer's old local value: | 2491 | /* Symbol is set up for this buffer's old local value: |
| @@ -4399,7 +4404,7 @@ static int mmap_fd_1; | |||
| 4399 | 4404 | ||
| 4400 | static int mmap_page_size; | 4405 | static int mmap_page_size; |
| 4401 | 4406 | ||
| 4402 | /* 1 means mmap has been intialized. */ | 4407 | /* 1 means mmap has been initialized. */ |
| 4403 | 4408 | ||
| 4404 | static int mmap_initialized_p; | 4409 | static int mmap_initialized_p; |
| 4405 | 4410 | ||
| @@ -4438,7 +4443,7 @@ static int mmap_initialized_p; | |||
| 4438 | #define MMAP_ALLOCATED_P(start, end) 1 | 4443 | #define MMAP_ALLOCATED_P(start, end) 1 |
| 4439 | #endif | 4444 | #endif |
| 4440 | 4445 | ||
| 4441 | /* Perform necessary intializations for the use of mmap. */ | 4446 | /* Perform necessary initializations for the use of mmap. */ |
| 4442 | 4447 | ||
| 4443 | static void | 4448 | static void |
| 4444 | mmap_init (void) | 4449 | mmap_init (void) |