aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-01 06:47:25 +0000
committerRichard M. Stallman1998-01-01 06:47:25 +0000
commitdc33013920608a286554f6b48aa645532d589892 (patch)
treebf1ff15b70e4edeb7e02b7a44847051dc68ec209 /src
parentd8a2934ed2d860a369a860bc3bceabe2f688fe07 (diff)
downloademacs-dc33013920608a286554f6b48aa645532d589892.tar.gz
emacs-dc33013920608a286554f6b48aa645532d589892.zip
(Fcall_interactively) <'d', 'r'>: Use set_marker_both.
Diffstat (limited to 'src')
-rw-r--r--src/callint.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/callint.c b/src/callint.c
index 416ee1db45b..e947143ebe0 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -1,5 +1,5 @@
1/* Call a Lisp function interactively. 1/* Call a Lisp function interactively.
2 Copyright (C) 1985, 1986, 1993, 1994, 1995 Free Software Foundation, Inc. 2 Copyright (C) 1985, 86, 93, 94, 95, 1997 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -442,9 +442,9 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
442 corresponding to the Lisp strings in visargs. */ 442 corresponding to the Lisp strings in visargs. */
443 for (j = 1; j < i; j++) 443 for (j = 1; j < i; j++)
444 argstrings[j] 444 argstrings[j]
445 = EQ (visargs[j], Qnil) 445 = (EQ (visargs[j], Qnil)
446 ? (unsigned char *) "" 446 ? (unsigned char *) ""
447 : XSTRING (visargs[j])->data; 447 : XSTRING (visargs[j])->data);
448 448
449 /* Process the format-string in prompt1, putting the output 449 /* Process the format-string in prompt1, putting the output
450 into callint_message. Make callint_message bigger if necessary. 450 into callint_message. Make callint_message bigger if necessary.
@@ -454,7 +454,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
454 { 454 {
455 int nchars = doprnt (callint_message, callint_message_size, 455 int nchars = doprnt (callint_message, callint_message_size,
456 prompt1, (char *)0, 456 prompt1, (char *)0,
457 j - 1, argstrings + 1); 457 j - 1, (char **) argstrings + 1);
458 if (nchars < callint_message_size) 458 if (nchars < callint_message_size)
459 break; 459 break;
460 callint_message_size *= 2; 460 callint_message_size *= 2;
@@ -508,7 +508,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
508 break; 508 break;
509 509
510 case 'd': /* Value of point. Does not do I/O. */ 510 case 'd': /* Value of point. Does not do I/O. */
511 Fset_marker (point_marker, make_number (PT), Qnil); 511 set_marker_both (point_marker, Qnil, PT, PT_BYTE);
512 args[i] = point_marker; 512 args[i] = point_marker;
513 /* visargs[i] = Qnil; */ 513 /* visargs[i] = Qnil; */
514 varies[i] = 1; 514 varies[i] = 1;
@@ -631,7 +631,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
631 631
632 case 'r': /* Region, point and mark as 2 args. */ 632 case 'r': /* Region, point and mark as 2 args. */
633 check_mark (); 633 check_mark ();
634 Fset_marker (point_marker, make_number (PT), Qnil); 634 set_marker_both (point_marker, Qnil, PT, PT_BYTE);
635 /* visargs[i+1] = Qnil; */ 635 /* visargs[i+1] = Qnil; */
636 foo = marker_position (current_buffer->mark); 636 foo = marker_position (current_buffer->mark);
637 /* visargs[i] = Qnil; */ 637 /* visargs[i] = Qnil; */