diff options
| author | Joakim Verona | 2015-01-25 21:19:27 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-25 21:19:27 +0100 |
| commit | d522fd8ca73e668bfafd0419bc5f71f2751cca24 (patch) | |
| tree | 4b57a4d2d26e578035801f1c895dcfda5895e09d /src/buffer.c | |
| parent | e5087278b9bcab5847ce63d80c0d74c27f50e719 (diff) | |
| parent | a3689d3c661fe36df971c875760f8d500b5ae994 (diff) | |
| download | emacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.tar.gz emacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.zip | |
Merge branch 'master' into xwidget
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6bff57fe12e..223683db6f3 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -390,7 +390,6 @@ followed by the rest of the buffers. */) | |||
| 390 | if (FRAMEP (frame)) | 390 | if (FRAMEP (frame)) |
| 391 | { | 391 | { |
| 392 | Lisp_Object framelist, prevlist, tail; | 392 | Lisp_Object framelist, prevlist, tail; |
| 393 | Lisp_Object args[3]; | ||
| 394 | 393 | ||
| 395 | framelist = Fcopy_sequence (XFRAME (frame)->buffer_list); | 394 | framelist = Fcopy_sequence (XFRAME (frame)->buffer_list); |
| 396 | prevlist = Fnreverse (Fcopy_sequence | 395 | prevlist = Fnreverse (Fcopy_sequence |
| @@ -411,10 +410,7 @@ followed by the rest of the buffers. */) | |||
| 411 | tail = XCDR (tail); | 410 | tail = XCDR (tail); |
| 412 | } | 411 | } |
| 413 | 412 | ||
| 414 | args[0] = framelist; | 413 | return CALLN (Fnconc, framelist, general, prevlist); |
| 415 | args[1] = general; | ||
| 416 | args[2] = prevlist; | ||
| 417 | return Fnconc (3, args); | ||
| 418 | } | 414 | } |
| 419 | else | 415 | else |
| 420 | return general; | 416 | return general; |
| @@ -1657,15 +1653,14 @@ cleaning up all windows currently displaying the buffer to be killed. */) | |||
| 1657 | /* Run hooks with the buffer to be killed the current buffer. */ | 1653 | /* Run hooks with the buffer to be killed the current buffer. */ |
| 1658 | { | 1654 | { |
| 1659 | ptrdiff_t count = SPECPDL_INDEX (); | 1655 | ptrdiff_t count = SPECPDL_INDEX (); |
| 1660 | Lisp_Object arglist[1]; | ||
| 1661 | 1656 | ||
| 1662 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 1657 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
| 1663 | set_buffer_internal (b); | 1658 | set_buffer_internal (b); |
| 1664 | 1659 | ||
| 1665 | /* First run the query functions; if any query is answered no, | 1660 | /* First run the query functions; if any query is answered no, |
| 1666 | don't kill the buffer. */ | 1661 | don't kill the buffer. */ |
| 1667 | arglist[0] = Qkill_buffer_query_functions; | 1662 | tem = CALLN (Frun_hook_with_args_until_failure, |
| 1668 | tem = Frun_hook_with_args_until_failure (1, arglist); | 1663 | Qkill_buffer_query_functions); |
| 1669 | if (NILP (tem)) | 1664 | if (NILP (tem)) |
| 1670 | return unbind_to (count, Qnil); | 1665 | return unbind_to (count, Qnil); |
| 1671 | 1666 | ||