Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0c00bc70
Commit
0c00bc70
authored
Apr 07, 1995
by
Richard M. Stallman
Browse files
(get_doc_string): In (STRING . INTEGER), if INTEGER
is negative, negate it.
parent
65411977
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/doc.c
src/doc.c
+6
-1
No files found.
src/doc.c
View file @
0c00bc70
...
...
@@ -72,7 +72,10 @@ munge_doc_file_name (name)
/* Extract a doc string from a file. FILEPOS says where to get it.
If it is an integer, use that position in the standard DOC-... file.
If it is (FILE . INTEGER), use FILE as the file name
and INTEGER as the position in that file. */
and INTEGER as the position in that file.
But if INTEGER is negative, make it positive.
(A negative integer is used for user variables, so we can distinguish
them without actually fetching the doc string.) */
static
Lisp_Object
get_doc_string
(
filepos
)
...
...
@@ -99,6 +102,8 @@ get_doc_string (filepos)
{
file
=
XCONS
(
filepos
)
->
car
;
position
=
XINT
(
XCONS
(
filepos
)
->
cdr
);
if
(
position
<
0
)
position
=
-
position
;
}
else
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