aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-13 22:04:02 -0700
committerPaul Eggert2011-04-13 22:04:02 -0700
commita7ca3326c4740ed3ed118b794d35d235de49f346 (patch)
tree5d38e0eac8e839c84a4ccb6e8a07c3c7858fff54 /src/buffer.c
parente87b6180b08c60a256dd8557945321ce2354a3a9 (diff)
downloademacs-a7ca3326c4740ed3ed118b794d35d235de49f346.tar.gz
emacs-a7ca3326c4740ed3ed118b794d35d235de49f346.zip
Undo the DEFUN->DEFUE change.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4e690f42934..7b543b80a25 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -160,7 +160,7 @@ nsberror (Lisp_Object spec)
160 error ("Invalid buffer argument"); 160 error ("Invalid buffer argument");
161} 161}
162 162
163DEFUE ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0, 163DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0,
164 doc: /* Return non-nil if OBJECT is a buffer which has not been killed. 164 doc: /* Return non-nil if OBJECT is a buffer which has not been killed.
165Value is nil if OBJECT is not a buffer or if it has been killed. */) 165Value is nil if OBJECT is not a buffer or if it has been killed. */)
166 (Lisp_Object object) 166 (Lisp_Object object)
@@ -232,7 +232,7 @@ assoc_ignore_text_properties (register Lisp_Object key, Lisp_Object list)
232 return Qnil; 232 return Qnil;
233} 233}
234 234
235DEFUE ("get-buffer", Fget_buffer, Sget_buffer, 1, 1, 0, 235DEFUN ("get-buffer", Fget_buffer, Sget_buffer, 1, 1, 0,
236 doc: /* Return the buffer named BUFFER-OR-NAME. 236 doc: /* Return the buffer named BUFFER-OR-NAME.
237BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME 237BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME
238is a string and there is no buffer with that name, return nil. If 238is a string and there is no buffer with that name, return nil. If
@@ -294,7 +294,7 @@ get_truename_buffer (register Lisp_Object filename)
294 return Qnil; 294 return Qnil;
295} 295}
296 296
297DEFUE ("get-buffer-create", Fget_buffer_create, Sget_buffer_create, 1, 1, 0, 297DEFUN ("get-buffer-create", Fget_buffer_create, Sget_buffer_create, 1, 1, 0,
298 doc: /* Return the buffer specified by BUFFER-OR-NAME, creating a new one if needed. 298 doc: /* Return the buffer specified by BUFFER-OR-NAME, creating a new one if needed.
299If BUFFER-OR-NAME is a string and a live buffer with that name exists, 299If BUFFER-OR-NAME is a string and a live buffer with that name exists,
300return that buffer. If no such buffer exists, create a new buffer with 300return that buffer. If no such buffer exists, create a new buffer with
@@ -830,7 +830,7 @@ reset_buffer_local_variables (register struct buffer *b, int permanent_too)
830 and set-visited-file-name ought to be able to use this to really 830 and set-visited-file-name ought to be able to use this to really
831 rename the buffer properly. */ 831 rename the buffer properly. */
832 832
833DEFUE ("generate-new-buffer-name", Fgenerate_new_buffer_name, 833DEFUN ("generate-new-buffer-name", Fgenerate_new_buffer_name,
834 Sgenerate_new_buffer_name, 1, 2, 0, 834 Sgenerate_new_buffer_name, 1, 2, 0,
835 doc: /* Return a string that is the name of no existing buffer based on NAME. 835 doc: /* Return a string that is the name of no existing buffer based on NAME.
836If there is no live buffer named NAME, then return NAME. 836If there is no live buffer named NAME, then return NAME.
@@ -868,7 +868,7 @@ it is in the sequence to be tried) even if a buffer with that name exists. */)
868} 868}
869 869
870 870
871DEFUE ("buffer-name", Fbuffer_name, Sbuffer_name, 0, 1, 0, 871DEFUN ("buffer-name", Fbuffer_name, Sbuffer_name, 0, 1, 0,
872 doc: /* Return the name of BUFFER, as a string. 872 doc: /* Return the name of BUFFER, as a string.
873BUFFER defaults to the current buffer. 873BUFFER defaults to the current buffer.
874Return nil if BUFFER has been killed. */) 874Return nil if BUFFER has been killed. */)
@@ -880,7 +880,7 @@ Return nil if BUFFER has been killed. */)
880 return BVAR (XBUFFER (buffer), name); 880 return BVAR (XBUFFER (buffer), name);
881} 881}
882 882
883DEFUE ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0, 883DEFUN ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0,
884 doc: /* Return name of file BUFFER is visiting, or nil if none. 884 doc: /* Return name of file BUFFER is visiting, or nil if none.
885No argument or nil as argument means use the current buffer. */) 885No argument or nil as argument means use the current buffer. */)
886 (register Lisp_Object buffer) 886 (register Lisp_Object buffer)
@@ -915,7 +915,7 @@ BUFFER defaults to the current buffer. */)
915 return base_buffer; 915 return base_buffer;
916} 916}
917 917
918DEFUE ("buffer-local-value", Fbuffer_local_value, 918DEFUN ("buffer-local-value", Fbuffer_local_value,
919 Sbuffer_local_value, 2, 2, 0, 919 Sbuffer_local_value, 2, 2, 0,
920 doc: /* Return the value of VARIABLE in BUFFER. 920 doc: /* Return the value of VARIABLE in BUFFER.
921If VARIABLE does not have a buffer-local binding in BUFFER, the value 921If VARIABLE does not have a buffer-local binding in BUFFER, the value
@@ -1056,7 +1056,7 @@ No argument or nil as argument means use current buffer as BUFFER. */)
1056 return result; 1056 return result;
1057} 1057}
1058 1058
1059DEFUE ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p, 1059DEFUN ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p,
1060 0, 1, 0, 1060 0, 1, 0,
1061 doc: /* Return t if BUFFER was modified since its file was last read or saved. 1061 doc: /* Return t if BUFFER was modified since its file was last read or saved.
1062No argument or nil as argument means use current buffer as BUFFER. */) 1062No argument or nil as argument means use current buffer as BUFFER. */)
@@ -1074,7 +1074,7 @@ No argument or nil as argument means use current buffer as BUFFER. */)
1074 return BUF_SAVE_MODIFF (buf) < BUF_MODIFF (buf) ? Qt : Qnil; 1074 return BUF_SAVE_MODIFF (buf) < BUF_MODIFF (buf) ? Qt : Qnil;
1075} 1075}
1076 1076
1077DEFUE ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, 1077DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p,
1078 1, 1, 0, 1078 1, 1, 0,
1079 doc: /* Mark current buffer as modified or unmodified according to FLAG. 1079 doc: /* Mark current buffer as modified or unmodified according to FLAG.
1080A non-nil FLAG means mark the buffer modified. */) 1080A non-nil FLAG means mark the buffer modified. */)
@@ -1266,7 +1266,7 @@ This does not change the name of the visited file (if any). */)
1266 return BVAR (current_buffer, name); 1266 return BVAR (current_buffer, name);
1267} 1267}
1268 1268
1269DEFUE ("other-buffer", Fother_buffer, Sother_buffer, 0, 3, 0, 1269DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 3, 0,
1270 doc: /* Return most recently selected buffer other than BUFFER. 1270 doc: /* Return most recently selected buffer other than BUFFER.
1271Buffers not visible in windows are preferred to visible buffers, 1271Buffers not visible in windows are preferred to visible buffers,
1272unless optional second argument VISIBLE-OK is non-nil. 1272unless optional second argument VISIBLE-OK is non-nil.
@@ -1340,7 +1340,7 @@ If BUFFER is omitted or nil, some interesting buffer is returned. */)
1340 return buf; 1340 return buf;
1341} 1341}
1342 1342
1343DEFUE ("buffer-enable-undo", Fbuffer_enable_undo, Sbuffer_enable_undo, 1343DEFUN ("buffer-enable-undo", Fbuffer_enable_undo, Sbuffer_enable_undo,
1344 0, 1, "", 1344 0, 1, "",
1345 doc: /* Start keeping undo information for buffer BUFFER. 1345 doc: /* Start keeping undo information for buffer BUFFER.
1346No argument or nil as argument means do this for the current buffer. */) 1346No argument or nil as argument means do this for the current buffer. */)
@@ -1369,7 +1369,7 @@ Hook to be run (by `run-hooks', which see) when a buffer is killed.\n\
1369The buffer being killed will be current while the hook is running.\n\ 1369The buffer being killed will be current while the hook is running.\n\
1370See `kill-buffer'." 1370See `kill-buffer'."
1371 */ 1371 */
1372DEFUE ("kill-buffer", Fkill_buffer, Skill_buffer, 0, 1, "bKill buffer: ", 1372DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 0, 1, "bKill buffer: ",
1373 doc: /* Kill buffer BUFFER-OR-NAME. 1373 doc: /* Kill buffer BUFFER-OR-NAME.
1374The argument may be a buffer or the name of an existing buffer. 1374The argument may be a buffer or the name of an existing buffer.
1375Argument nil or omitted means kill the current buffer. Return t if the 1375Argument nil or omitted means kill the current buffer. Return t if the
@@ -1788,7 +1788,7 @@ messing with the window-buffer correspondences. */)
1788 return switch_to_buffer_1 (buffer_or_name, norecord); 1788 return switch_to_buffer_1 (buffer_or_name, norecord);
1789} 1789}
1790 1790
1791DEFUE ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0, 1791DEFUN ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0,
1792 doc: /* Return the current buffer as a Lisp object. */) 1792 doc: /* Return the current buffer as a Lisp object. */)
1793 (void) 1793 (void)
1794{ 1794{
@@ -1898,7 +1898,7 @@ set_buffer_temp (struct buffer *b)
1898 fetch_buffer_markers (b); 1898 fetch_buffer_markers (b);
1899} 1899}
1900 1900
1901DEFUE ("set-buffer", Fset_buffer, Sset_buffer, 1, 1, 0, 1901DEFUN ("set-buffer", Fset_buffer, Sset_buffer, 1, 1, 0,
1902 doc: /* Make buffer BUFFER-OR-NAME current for editing operations. 1902 doc: /* Make buffer BUFFER-OR-NAME current for editing operations.
1903BUFFER-OR-NAME may be a buffer or the name of an existing buffer. See 1903BUFFER-OR-NAME may be a buffer or the name of an existing buffer. See
1904also `save-excursion' when you want to make a buffer current 1904also `save-excursion' when you want to make a buffer current
@@ -1927,7 +1927,7 @@ set_buffer_if_live (Lisp_Object buffer)
1927 return Qnil; 1927 return Qnil;
1928} 1928}
1929 1929
1930DEFUE ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only, 1930DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only,
1931 Sbarf_if_buffer_read_only, 0, 0, 0, 1931 Sbarf_if_buffer_read_only, 0, 0, 0,
1932 doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */) 1932 doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */)
1933 (void) 1933 (void)
@@ -2000,7 +2000,7 @@ its frame, iconify that frame. */)
2000 return Qnil; 2000 return Qnil;
2001} 2001}
2002 2002
2003DEFUE ("erase-buffer", Ferase_buffer, Serase_buffer, 0, 0, "*", 2003DEFUN ("erase-buffer", Ferase_buffer, Serase_buffer, 0, 0, "*",
2004 doc: /* Delete the entire contents of the current buffer. 2004 doc: /* Delete the entire contents of the current buffer.
2005Any narrowing restriction in effect (see `narrow-to-region') is removed, 2005Any narrowing restriction in effect (see `narrow-to-region') is removed,
2006so the buffer is truly empty after this. */) 2006so the buffer is truly empty after this. */)
@@ -2211,7 +2211,7 @@ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
2211 return Qnil; 2211 return Qnil;
2212} 2212}
2213 2213
2214DEFUE ("set-buffer-multibyte", Fset_buffer_multibyte, Sset_buffer_multibyte, 2214DEFUN ("set-buffer-multibyte", Fset_buffer_multibyte, Sset_buffer_multibyte,
2215 1, 1, 0, 2215 1, 1, 0,
2216 doc: /* Set the multibyte flag of the current buffer to FLAG. 2216 doc: /* Set the multibyte flag of the current buffer to FLAG.
2217If FLAG is t, this makes the buffer a multibyte buffer. 2217If FLAG is t, this makes the buffer a multibyte buffer.
@@ -2500,7 +2500,7 @@ current buffer is cleared. */)
2500 return flag; 2500 return flag;
2501} 2501}
2502 2502
2503DEFUE ("kill-all-local-variables", Fkill_all_local_variables, 2503DEFUN ("kill-all-local-variables", Fkill_all_local_variables,
2504 Skill_all_local_variables, 0, 0, 0, 2504 Skill_all_local_variables, 0, 0, 0,
2505 doc: /* Switch to Fundamental mode by killing current buffer's local variables. 2505 doc: /* Switch to Fundamental mode by killing current buffer's local variables.
2506Most local variable bindings are eliminated so that the default values 2506Most local variable bindings are eliminated so that the default values
@@ -3899,7 +3899,7 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0,
3899 3899
3900/* Overlay dissection functions. */ 3900/* Overlay dissection functions. */
3901 3901
3902DEFUE ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0, 3902DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
3903 doc: /* Return the position at which OVERLAY starts. */) 3903 doc: /* Return the position at which OVERLAY starts. */)
3904 (Lisp_Object overlay) 3904 (Lisp_Object overlay)
3905{ 3905{
@@ -3908,7 +3908,7 @@ DEFUE ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
3908 return (Fmarker_position (OVERLAY_START (overlay))); 3908 return (Fmarker_position (OVERLAY_START (overlay)));
3909} 3909}
3910 3910
3911DEFUE ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0, 3911DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0,
3912 doc: /* Return the position at which OVERLAY ends. */) 3912 doc: /* Return the position at which OVERLAY ends. */)
3913 (Lisp_Object overlay) 3913 (Lisp_Object overlay)
3914{ 3914{
@@ -3998,7 +3998,7 @@ end of the buffer. */)
3998 return result; 3998 return result;
3999} 3999}
4000 4000
4001DEFUE ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change, 4001DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change,
4002 1, 1, 0, 4002 1, 1, 0,
4003 doc: /* Return the next position after POS where an overlay starts or ends. 4003 doc: /* Return the next position after POS where an overlay starts or ends.
4004If there are no overlay boundaries from POS to (point-max), 4004If there are no overlay boundaries from POS to (point-max),
@@ -4039,7 +4039,7 @@ the value is (point-max). */)
4039 return make_number (endpos); 4039 return make_number (endpos);
4040} 4040}
4041 4041
4042DEFUE ("previous-overlay-change", Fprevious_overlay_change, 4042DEFUN ("previous-overlay-change", Fprevious_overlay_change,
4043 Sprevious_overlay_change, 1, 1, 0, 4043 Sprevious_overlay_change, 1, 1, 0,
4044 doc: /* Return the previous position before POS where an overlay starts or ends. 4044 doc: /* Return the previous position before POS where an overlay starts or ends.
4045If there are no overlay boundaries from (point-min) to POS, 4045If there are no overlay boundaries from (point-min) to POS,
@@ -4108,7 +4108,7 @@ for positions far away from POS). */)
4108 return Qnil; 4108 return Qnil;
4109} 4109}
4110 4110
4111DEFUE ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0, 4111DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0,
4112 doc: /* Get the property of overlay OVERLAY with property name PROP. */) 4112 doc: /* Get the property of overlay OVERLAY with property name PROP. */)
4113 (Lisp_Object overlay, Lisp_Object prop) 4113 (Lisp_Object overlay, Lisp_Object prop)
4114{ 4114{