Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9391b698
Commit
9391b698
authored
Jan 09, 1996
by
Erik Naggum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Feval_buffer, Feval_region, Fintern, Fintern_soft): Harmonize arguments
with documentation.
parent
88fe8140
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
src/lread.c
src/lread.c
+19
-19
No files found.
src/lread.c
View file @
9391b698
...
...
@@ -803,16 +803,16 @@ nil means discard it; anything else is stream for print.\n\
\n
\
If there is no error, point does not move. If there is an error,
\n
\
point remains at the end of the last character read from the buffer."
)
(
buf
name
,
printflag
)
Lisp_Object
buf
name
,
printflag
;
(
buf
fer
,
printflag
)
Lisp_Object
buf
fer
,
printflag
;
{
int
count
=
specpdl_ptr
-
specpdl
;
Lisp_Object
tem
,
buf
;
if
(
NILP
(
buf
name
))
if
(
NILP
(
buf
fer
))
buf
=
Fcurrent_buffer
();
else
buf
=
Fget_buffer
(
buf
name
);
buf
=
Fget_buffer
(
buf
fer
);
if
(
NILP
(
buf
))
error
(
"No such buffer."
);
...
...
@@ -867,8 +867,8 @@ nil means discard it; anything else is stream for printing it.\n\
\n
\
If there is no error, point does not move. If there is an error,
\n
\
point remains at the end of the last character read from the buffer."
)
(
b
,
e
,
printflag
)
Lisp_Object
b
,
e
,
printflag
;
(
start
,
e
nd
,
printflag
)
Lisp_Object
start
,
e
nd
,
printflag
;
{
int
count
=
specpdl_ptr
-
specpdl
;
Lisp_Object
tem
,
cbuf
;
...
...
@@ -885,9 +885,9 @@ point remains at the end of the last character read from the buffer.")
record_unwind_protect
(
save_excursion_restore
,
save_excursion_save
());
record_unwind_protect
(
save_restriction_restore
,
save_restriction_save
());
/* This both uses
b
and checks its type. */
Fgoto_char
(
b
);
Fnarrow_to_region
(
make_number
(
BEGV
),
e
);
/* This both uses
start
and checks its type. */
Fgoto_char
(
start
);
Fnarrow_to_region
(
make_number
(
BEGV
),
e
nd
);
readevalloop
(
cbuf
,
0
,
XBUFFER
(
cbuf
)
->
filename
,
Feval
,
!
NILP
(
printflag
));
return
unbind_to
(
count
,
Qnil
);
...
...
@@ -1835,23 +1835,23 @@ DEFUN ("intern", Fintern, Sintern, 1, 2, 0,
If there is none, one is created by this function and returned.
\n
\
A second optional argument specifies the obarray to use;
\n
\
it defaults to the value of `obarray'."
)
(
str
,
obarray
)
Lisp_Object
str
,
obarray
;
(
str
ing
,
obarray
)
Lisp_Object
str
ing
,
obarray
;
{
register
Lisp_Object
tem
,
sym
,
*
ptr
;
if
(
NILP
(
obarray
))
obarray
=
Vobarray
;
obarray
=
check_obarray
(
obarray
);
CHECK_STRING
(
str
,
0
);
CHECK_STRING
(
str
ing
,
0
);
tem
=
oblookup
(
obarray
,
XSTRING
(
str
)
->
data
,
XSTRING
(
str
)
->
size
);
tem
=
oblookup
(
obarray
,
XSTRING
(
str
ing
)
->
data
,
XSTRING
(
str
ing
)
->
size
);
if
(
!
INTEGERP
(
tem
))
return
tem
;
if
(
!
NILP
(
Vpurify_flag
))
str
=
Fpurecopy
(
str
);
sym
=
Fmake_symbol
(
str
);
str
ing
=
Fpurecopy
(
str
ing
);
sym
=
Fmake_symbol
(
str
ing
);
ptr
=
&
XVECTOR
(
obarray
)
->
contents
[
XINT
(
tem
)];
if
(
SYMBOLP
(
*
ptr
))
...
...
@@ -1866,17 +1866,17 @@ DEFUN ("intern-soft", Fintern_soft, Sintern_soft, 1, 2, 0,
"Return the canonical symbol whose name is STRING, or nil if none exists.
\n
\
A second optional argument specifies the obarray to use;
\n
\
it defaults to the value of `obarray'."
)
(
str
,
obarray
)
Lisp_Object
str
,
obarray
;
(
str
ing
,
obarray
)
Lisp_Object
str
ing
,
obarray
;
{
register
Lisp_Object
tem
;
if
(
NILP
(
obarray
))
obarray
=
Vobarray
;
obarray
=
check_obarray
(
obarray
);
CHECK_STRING
(
str
,
0
);
CHECK_STRING
(
str
ing
,
0
);
tem
=
oblookup
(
obarray
,
XSTRING
(
str
)
->
data
,
XSTRING
(
str
)
->
size
);
tem
=
oblookup
(
obarray
,
XSTRING
(
str
ing
)
->
data
,
XSTRING
(
str
ing
)
->
size
);
if
(
!
INTEGERP
(
tem
))
return
tem
;
return
Qnil
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment