aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-12-21 16:57:16 +0000
committerKarl Heuer1995-12-21 16:57:16 +0000
commite5443bab693a5b55359d08672eaecbee896fc736 (patch)
tree374fba4ccb8d08aa8e6fce245e72215626fbc2e7 /src
parent71eda2d573235b5b1a4a603eddbee12061a9070d (diff)
downloademacs-e5443bab693a5b55359d08672eaecbee896fc736.tar.gz
emacs-e5443bab693a5b55359d08672eaecbee896fc736.zip
(Fbackward_char, Fforward_char): Rename arg to ARG.
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 2a912368cb0..6fdf3f4b21c 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -42,21 +42,21 @@ extern Lisp_Object Qface;
42DEFUN ("forward-char", Fforward_char, Sforward_char, 0, 1, "p", 42DEFUN ("forward-char", Fforward_char, Sforward_char, 0, 1, "p",
43 "Move point right ARG characters (left if ARG negative).\n\ 43 "Move point right ARG characters (left if ARG negative).\n\
44On reaching end of buffer, stop and signal error.") 44On reaching end of buffer, stop and signal error.")
45 (n) 45 (arg)
46 Lisp_Object n; 46 Lisp_Object arg;
47{ 47{
48 if (NILP (n)) 48 if (NILP (arg))
49 XSETFASTINT (n, 1); 49 XSETFASTINT (arg, 1);
50 else 50 else
51 CHECK_NUMBER (n, 0); 51 CHECK_NUMBER (arg, 0);
52 52
53 /* This used to just set point to point + XINT (n), and then check 53 /* This used to just set point to point + XINT (arg), and then check
54 to see if it was within boundaries. But now that SET_PT can 54 to see if it was within boundaries. But now that SET_PT can
55 potentially do a lot of stuff (calling entering and exiting 55 potentially do a lot of stuff (calling entering and exiting
56 hooks, etcetera), that's not a good approach. So we validate the 56 hooks, etcetera), that's not a good approach. So we validate the
57 proposed position, then set point. */ 57 proposed position, then set point. */
58 { 58 {
59 int new_point = point + XINT (n); 59 int new_point = point + XINT (arg);
60 60
61 if (new_point < BEGV) 61 if (new_point < BEGV)
62 { 62 {
@@ -78,16 +78,16 @@ On reaching end of buffer, stop and signal error.")
78DEFUN ("backward-char", Fbackward_char, Sbackward_char, 0, 1, "p", 78DEFUN ("backward-char", Fbackward_char, Sbackward_char, 0, 1, "p",
79 "Move point left ARG characters (right if ARG negative).\n\ 79 "Move point left ARG characters (right if ARG negative).\n\
80On attempt to pass beginning or end of buffer, stop and signal error.") 80On attempt to pass beginning or end of buffer, stop and signal error.")
81 (n) 81 (arg)
82 Lisp_Object n; 82 Lisp_Object arg;
83{ 83{
84 if (NILP (n)) 84 if (NILP (arg))
85 XSETFASTINT (n, 1); 85 XSETFASTINT (arg, 1);
86 else 86 else
87 CHECK_NUMBER (n, 0); 87 CHECK_NUMBER (arg, 0);
88 88
89 XSETINT (n, - XINT (n)); 89 XSETINT (arg, - XINT (arg));
90 return Fforward_char (n); 90 return Fforward_char (arg);
91} 91}
92 92
93DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "p", 93DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "p",