diff options
| author | Richard M. Stallman | 1995-08-27 18:17:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-27 18:17:01 +0000 |
| commit | ecb2a4680fbfebaf7b076126ba2eeb1b459702cd (patch) | |
| tree | b3e2ae9562c4078cc651d59405cbe6fb3732974b /src | |
| parent | 66770f42511aa1bd108af7e138dd01e423ea107c (diff) | |
| download | emacs-ecb2a4680fbfebaf7b076126ba2eeb1b459702cd.tar.gz emacs-ecb2a4680fbfebaf7b076126ba2eeb1b459702cd.zip | |
Delete some #if 0'd functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 46 |
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 */ | ||
| 239 | DEFUN ("mark", Fmark, Smark, 0, 0, 0, | ||
| 240 | "Return this buffer's mark value as integer, or nil if no mark.\n\ | ||
| 241 | If you are using this in an editing command, you are most likely making\n\ | ||
| 242 | a mistake; see the documentation of `set-mark'.") | ||
| 243 | () | ||
| 244 | { | ||
| 245 | return Fmarker_position (current_buffer->mark); | ||
| 246 | } | ||
| 247 | #endif /* commented out code */ | ||
| 248 | |||
| 249 | DEFUN ("mark-marker", Fmark_marker, Smark_marker, 0, 0, 0, | 238 | DEFUN ("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\ |
| 251 | Watch out! Moving this marker changes the mark position.\n\ | 240 | Watch 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 */ | ||
| 259 | DEFUN ("set-mark", Fset_mark, Sset_mark, 1, 1, 0, | ||
| 260 | "Set this buffer's mark to POS. Don't use this function!\n\ | ||
| 261 | That is to say, don't use this function unless you want\n\ | ||
| 262 | the user to see that the mark has moved, and you want the previous\n\ | ||
| 263 | mark position to be lost.\n\ | ||
| 264 | \n\ | ||
| 265 | Normally, when a new mark is set, the old one should go on the stack.\n\ | ||
| 266 | This is why most applications should use push-mark, not set-mark.\n\ | ||
| 267 | \n\ | ||
| 268 | Novice programmers often try to use the mark for the wrong purposes.\n\ | ||
| 269 | The mark saves a location for the user's convenience.\n\ | ||
| 270 | Most editing commands should not alter the mark.\n\ | ||
| 271 | To remember a location for internal use in the Lisp program,\n\ | ||
| 272 | store 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 | |||
| 293 | Lisp_Object | 247 | Lisp_Object |
| 294 | save_excursion_save () | 248 | save_excursion_save () |
| 295 | { | 249 | { |