diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/buffer.c b/src/buffer.c index bd059cdbe14..7030fea1002 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -139,7 +139,7 @@ static Lisp_Object Qoverlayp; | |||
| 139 | 139 | ||
| 140 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; | 140 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; |
| 141 | 141 | ||
| 142 | static Lisp_Object Qclone_number, Qevaporate; | 142 | static Lisp_Object Qevaporate; |
| 143 | 143 | ||
| 144 | Lisp_Object Qmodification_hooks; | 144 | Lisp_Object Qmodification_hooks; |
| 145 | Lisp_Object Qinsert_in_front_hooks; | 145 | Lisp_Object Qinsert_in_front_hooks; |
| @@ -1664,9 +1664,8 @@ with SIGHUP. */) | |||
| 1664 | void | 1664 | void |
| 1665 | record_buffer (Lisp_Object buffer) | 1665 | record_buffer (Lisp_Object buffer) |
| 1666 | { | 1666 | { |
| 1667 | Lisp_Object aelt, link, tem; | 1667 | Lisp_Object aelt, aelt_cons, tem; |
| 1668 | register struct frame *f = XFRAME (selected_frame); | 1668 | register struct frame *f = XFRAME (selected_frame); |
| 1669 | register struct window *w = XWINDOW (FRAME_SELECTED_WINDOW (f)); | ||
| 1670 | 1669 | ||
| 1671 | CHECK_BUFFER (buffer); | 1670 | CHECK_BUFFER (buffer); |
| 1672 | 1671 | ||
| @@ -1676,10 +1675,10 @@ record_buffer (Lisp_Object buffer) | |||
| 1676 | tem = Vinhibit_quit; | 1675 | tem = Vinhibit_quit; |
| 1677 | Vinhibit_quit = Qt; | 1676 | Vinhibit_quit = Qt; |
| 1678 | aelt = Frassq (buffer, Vbuffer_alist); | 1677 | aelt = Frassq (buffer, Vbuffer_alist); |
| 1679 | link = Fmemq (aelt, Vbuffer_alist); | 1678 | aelt_cons = Fmemq (aelt, Vbuffer_alist); |
| 1680 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); | 1679 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); |
| 1681 | XSETCDR (link, Vbuffer_alist); | 1680 | XSETCDR (aelt_cons, Vbuffer_alist); |
| 1682 | Vbuffer_alist = link; | 1681 | Vbuffer_alist = aelt_cons; |
| 1683 | Vinhibit_quit = tem; | 1682 | Vinhibit_quit = tem; |
| 1684 | 1683 | ||
| 1685 | /* Update buffer list of selected frame. */ | 1684 | /* Update buffer list of selected frame. */ |
| @@ -1714,7 +1713,7 @@ DEFUN ("unrecord-buffer", Funrecord_buffer, Sunrecord_buffer, 1, 1, 0, | |||
| 1714 | Return BUFFER. */) | 1713 | Return BUFFER. */) |
| 1715 | (Lisp_Object buffer) | 1714 | (Lisp_Object buffer) |
| 1716 | { | 1715 | { |
| 1717 | Lisp_Object aelt, link, tem; | 1716 | Lisp_Object aelt, aelt_cons, tem; |
| 1718 | register struct frame *f = XFRAME (selected_frame); | 1717 | register struct frame *f = XFRAME (selected_frame); |
| 1719 | 1718 | ||
| 1720 | CHECK_BUFFER (buffer); | 1719 | CHECK_BUFFER (buffer); |
| @@ -1725,10 +1724,10 @@ Return BUFFER. */) | |||
| 1725 | tem = Vinhibit_quit; | 1724 | tem = Vinhibit_quit; |
| 1726 | Vinhibit_quit = Qt; | 1725 | Vinhibit_quit = Qt; |
| 1727 | aelt = Frassq (buffer, Vbuffer_alist); | 1726 | aelt = Frassq (buffer, Vbuffer_alist); |
| 1728 | link = Fmemq (aelt, Vbuffer_alist); | 1727 | aelt_cons = Fmemq (aelt, Vbuffer_alist); |
| 1729 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); | 1728 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); |
| 1730 | XSETCDR (link, Qnil); | 1729 | XSETCDR (aelt_cons, Qnil); |
| 1731 | Vbuffer_alist = nconc2 (Vbuffer_alist, link); | 1730 | Vbuffer_alist = nconc2 (Vbuffer_alist, aelt_cons); |
| 1732 | Vinhibit_quit = tem; | 1731 | Vinhibit_quit = tem; |
| 1733 | 1732 | ||
| 1734 | /* Update buffer lists of selected frame. */ | 1733 | /* Update buffer lists of selected frame. */ |