aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 11:54:19 +0000
committerKarl Heuer1994-10-04 11:54:19 +0000
commit67180c6ae04cd84ff453cf98e971e47229ba442f (patch)
treef5044bdbb0fe4697757af1d218c9e367cc4807e1 /src/buffer.c
parent45d12a8970f72ff6904df7a7776b8b341dc828a9 (diff)
downloademacs-67180c6ae04cd84ff453cf98e971e47229ba442f.tar.gz
emacs-67180c6ae04cd84ff453cf98e971e47229ba442f.zip
(Fget_buffer_create, Frename_buffer, Fbuffer_disable_undo,
Fbuffer_enable_undo, Fcurrent_buffer, Fbury_buffer, Fmake_overlay, init_buffer_once): Use new accessor macros instead of calling XSET directly.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0e0ca213907..0470c89baa1 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -264,7 +264,7 @@ The value is never nil.")
264 reset_buffer_local_variables (b); 264 reset_buffer_local_variables (b);
265 265
266 /* Put this in the alist of all live buffers. */ 266 /* Put this in the alist of all live buffers. */
267 XSET (buf, Lisp_Buffer, b); 267 XSETBUFFER (buf, b);
268 Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); 268 Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil));
269 269
270 b->mark = Fmake_marker (); 270 b->mark = Fmake_marker ();
@@ -611,7 +611,7 @@ This does not change the name of the visited file (if any).")
611 any windows displaying current_buffer will stay unchanged. */ 611 any windows displaying current_buffer will stay unchanged. */
612 update_mode_lines++; 612 update_mode_lines++;
613 613
614 XSET (buf, Lisp_Buffer, current_buffer); 614 XSETBUFFER (buf, current_buffer);
615 Fsetcar (Frassq (buf, Vbuffer_alist), name); 615 Fsetcar (Frassq (buf, Vbuffer_alist), name);
616 if (NILP (current_buffer->filename) 616 if (NILP (current_buffer->filename)
617 && !NILP (current_buffer->auto_save_file_name)) 617 && !NILP (current_buffer->auto_save_file_name))
@@ -663,7 +663,7 @@ No argument or nil as argument means do this for the current buffer.")
663 Lisp_Object real_buffer; 663 Lisp_Object real_buffer;
664 664
665 if (NILP (buffer)) 665 if (NILP (buffer))
666 XSET (real_buffer, Lisp_Buffer, current_buffer); 666 XSETBUFFER (real_buffer, current_buffer);
667 else 667 else
668 { 668 {
669 real_buffer = Fget_buffer (buffer); 669 real_buffer = Fget_buffer (buffer);
@@ -686,7 +686,7 @@ No argument or nil as argument means do this for the current buffer.")
686 Lisp_Object real_buffer; 686 Lisp_Object real_buffer;
687 687
688 if (NILP (buffer)) 688 if (NILP (buffer))
689 XSET (real_buffer, Lisp_Buffer, current_buffer); 689 XSETBUFFER (real_buffer, current_buffer);
690 else 690 else
691 { 691 {
692 real_buffer = Fget_buffer (buffer); 692 real_buffer = Fget_buffer (buffer);
@@ -934,7 +934,7 @@ DEFUN ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0,
934 () 934 ()
935{ 935{
936 register Lisp_Object buf; 936 register Lisp_Object buf;
937 XSET (buf, Lisp_Buffer, current_buffer); 937 XSETBUFFER (buf, current_buffer);
938 return buf; 938 return buf;
939} 939}
940 940
@@ -1031,7 +1031,7 @@ selected window if it is displayed there.")
1031 /* Figure out what buffer we're going to bury. */ 1031 /* Figure out what buffer we're going to bury. */
1032 if (NILP (buf)) 1032 if (NILP (buf))
1033 { 1033 {
1034 XSET (buf, Lisp_Buffer, current_buffer); 1034 XSETBUFFER (buf, current_buffer);
1035 1035
1036 /* If we're burying the current buffer, unshow it. */ 1036 /* If we're burying the current buffer, unshow it. */
1037 Fswitch_to_buffer (Fother_buffer (buf, Qnil), Qnil); 1037 Fswitch_to_buffer (Fother_buffer (buf, Qnil), Qnil);
@@ -1782,7 +1782,7 @@ BEG and END may be integers or markers.")
1782 struct buffer *b; 1782 struct buffer *b;
1783 1783
1784 if (NILP (buffer)) 1784 if (NILP (buffer))
1785 XSET (buffer, Lisp_Buffer, current_buffer); 1785 XSETBUFFER (buffer, current_buffer);
1786 else 1786 else
1787 CHECK_BUFFER (buffer, 2); 1787 CHECK_BUFFER (buffer, 2);
1788 if (MARKERP (beg) 1788 if (MARKERP (beg)
@@ -1841,7 +1841,7 @@ buffer.")
1841 if (NILP (buffer)) 1841 if (NILP (buffer))
1842 buffer = Fmarker_buffer (OVERLAY_START (overlay)); 1842 buffer = Fmarker_buffer (OVERLAY_START (overlay));
1843 if (NILP (buffer)) 1843 if (NILP (buffer))
1844 XSET (buffer, Lisp_Buffer, current_buffer); 1844 XSETBUFFER (buffer, current_buffer);
1845 CHECK_BUFFER (buffer, 3); 1845 CHECK_BUFFER (buffer, 3);
1846 1846
1847 if (MARKERP (beg) 1847 if (MARKERP (beg)
@@ -2445,8 +2445,8 @@ init_buffer_once ()
2445 reset_buffer_local_variables (&buffer_defaults); 2445 reset_buffer_local_variables (&buffer_defaults);
2446 reset_buffer (&buffer_local_symbols); 2446 reset_buffer (&buffer_local_symbols);
2447 reset_buffer_local_variables (&buffer_local_symbols); 2447 reset_buffer_local_variables (&buffer_local_symbols);
2448 XSET (Vbuffer_defaults, Lisp_Buffer, &buffer_defaults); 2448 XSETBUFFER (Vbuffer_defaults, &buffer_defaults);
2449 XSET (Vbuffer_local_symbols, Lisp_Buffer, &buffer_local_symbols); 2449 XSETBUFFER (Vbuffer_local_symbols, &buffer_local_symbols);
2450 2450
2451 /* Set up the default values of various buffer slots. */ 2451 /* Set up the default values of various buffer slots. */
2452 /* Must do these before making the first buffer! */ 2452 /* Must do these before making the first buffer! */