aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 37f0e7e813f..6731e5c729a 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -235,17 +235,6 @@ DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0,
235 return (region_limit (0)); 235 return (region_limit (0));
236} 236}
237 237
238#if 0 /* now in lisp code */
239DEFUN ("mark", Fmark, Smark, 0, 0, 0,
240 "Return this buffer's mark value as integer, or nil if no mark.\n\
241If you are using this in an editing command, you are most likely making\n\
242a mistake; see the documentation of `set-mark'.")
243 ()
244{
245 return Fmarker_position (current_buffer->mark);
246}
247#endif /* commented out code */
248
249DEFUN ("mark-marker", Fmark_marker, Smark_marker, 0, 0, 0, 238DEFUN ("mark-marker", Fmark_marker, Smark_marker, 0, 0, 0,
250 "Return this buffer's mark, as a marker object.\n\ 239 "Return this buffer's mark, as a marker object.\n\
251Watch out! Moving this marker changes the mark position.\n\ 240Watch out! Moving this marker changes the mark position.\n\
@@ -255,41 +244,6 @@ If you set the marker not to point anywhere, the buffer will have no mark.")
255 return current_buffer->mark; 244 return current_buffer->mark;
256} 245}
257 246
258#if 0 /* this is now in lisp code */
259DEFUN ("set-mark", Fset_mark, Sset_mark, 1, 1, 0,
260 "Set this buffer's mark to POS. Don't use this function!\n\
261That is to say, don't use this function unless you want\n\
262the user to see that the mark has moved, and you want the previous\n\
263mark position to be lost.\n\
264\n\
265Normally, when a new mark is set, the old one should go on the stack.\n\
266This is why most applications should use push-mark, not set-mark.\n\
267\n\
268Novice programmers often try to use the mark for the wrong purposes.\n\
269The mark saves a location for the user's convenience.\n\
270Most editing commands should not alter the mark.\n\
271To remember a location for internal use in the Lisp program,\n\
272store it in a Lisp variable. Example:\n\
273\n\
274 (let ((beg (point))) (forward-line 1) (delete-region beg (point))).")
275 (pos)
276 Lisp_Object pos;
277{
278 if (NILP (pos))
279 {
280 current_buffer->mark = Qnil;
281 return Qnil;
282 }
283 CHECK_NUMBER_COERCE_MARKER (pos, 0);
284
285 if (NILP (current_buffer->mark))
286 current_buffer->mark = Fmake_marker ();
287
288 Fset_marker (current_buffer->mark, pos, Qnil);
289 return pos;
290}
291#endif /* commented-out code */
292
293Lisp_Object 247Lisp_Object
294save_excursion_save () 248save_excursion_save ()
295{ 249{