aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2011-08-25 12:06:56 -0700
committerPaul Eggert2011-08-25 12:06:56 -0700
commita974cdce9b9121158e623a3fab6ad731ff5d48ec (patch)
tree689bdfe3830c42dea926a04079d9da9cfcbc9200 /src/buffer.c
parent011ba6eaacfa50cc9871d0cfea34e8f0a7a5bc43 (diff)
parente25be79236edca0e26a9fcd81b7f2a3746e8f9ef (diff)
downloademacs-a974cdce9b9121158e623a3fab6ad731ff5d48ec.tar.gz
emacs-a974cdce9b9121158e623a3fab6ad731ff5d48ec.zip
Merge from trunk.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c32
1 files changed, 10 insertions, 22 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5a6484e3105..37d2975c8c7 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1698,27 +1698,16 @@ record_buffer (Lisp_Object buffer)
1698 call1 (Vrun_hooks, Qbuffer_list_update_hook); 1698 call1 (Vrun_hooks, Qbuffer_list_update_hook);
1699} 1699}
1700 1700
1701DEFUN ("record-buffer", Frecord_buffer, Srecord_buffer, 1, 1, 0,
1702 doc: /* Move BUFFER to the front of the buffer list.
1703Return BUFFER. */)
1704 (Lisp_Object buffer)
1705{
1706 CHECK_BUFFER (buffer);
1707
1708 record_buffer (buffer);
1709
1710 return buffer;
1711}
1712 1701
1713 /* Move BUFFER to the end of the buffer (a)lists. Do nothing if the 1702/* Move BUFFER to the end of the buffer (a)lists. Do nothing if the
1714 buffer is killed. For the selected frame's buffer list this moves 1703 buffer is killed. For the selected frame's buffer list this moves
1715 BUFFER to its end even if it was never shown in that frame. If 1704 BUFFER to its end even if it was never shown in that frame. If
1716 this happens we have a feature, hence `unrecord-buffer' should be 1705 this happens we have a feature, hence `unrecord-buffer' should be
1717 called only when BUFFER was shown in the selected frame. */ 1706 called only when BUFFER was shown in the selected frame. */
1718 1707
1719DEFUN ("unrecord-buffer", Funrecord_buffer, Sunrecord_buffer, 1, 1, 0, 1708DEFUN ("bury-buffer-internal", Fbury_buffer_internal, Sbury_buffer_internal,
1720 doc: /* Move BUFFER to the end of the buffer list. 1709 1, 1, 0,
1721Return BUFFER. */) 1710 doc: /* Move BUFFER to the end of the buffer list. */)
1722 (Lisp_Object buffer) 1711 (Lisp_Object buffer)
1723{ 1712{
1724 Lisp_Object aelt, aelt_cons, tem; 1713 Lisp_Object aelt, aelt_cons, tem;
@@ -1746,7 +1735,7 @@ Return BUFFER. */)
1746 if (!NILP (Vrun_hooks)) 1735 if (!NILP (Vrun_hooks))
1747 call1 (Vrun_hooks, Qbuffer_list_update_hook); 1736 call1 (Vrun_hooks, Qbuffer_list_update_hook);
1748 1737
1749 return buffer; 1738 return Qnil;
1750} 1739}
1751 1740
1752DEFUN ("set-buffer-major-mode", Fset_buffer_major_mode, Sset_buffer_major_mode, 1, 1, 0, 1741DEFUN ("set-buffer-major-mode", Fset_buffer_major_mode, Sset_buffer_major_mode, 1, 1, 0,
@@ -6017,8 +6006,7 @@ Functions running this hook are `get-buffer-create',
6017 defsubr (&Sother_buffer); 6006 defsubr (&Sother_buffer);
6018 defsubr (&Sbuffer_enable_undo); 6007 defsubr (&Sbuffer_enable_undo);
6019 defsubr (&Skill_buffer); 6008 defsubr (&Skill_buffer);
6020 defsubr (&Srecord_buffer); 6009 defsubr (&Sbury_buffer_internal);
6021 defsubr (&Sunrecord_buffer);
6022 defsubr (&Sset_buffer_major_mode); 6010 defsubr (&Sset_buffer_major_mode);
6023 defsubr (&Scurrent_buffer); 6011 defsubr (&Scurrent_buffer);
6024 defsubr (&Sset_buffer); 6012 defsubr (&Sset_buffer);