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
b51ee131
Commit
b51ee131
authored
Mar 11, 2003
by
Stefan Monnier
Browse files
(Fprin1_to_string): Return unibyte string if possible.
parent
ee24a852
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/print.c
src/print.c
+2
-0
No files found.
src/print.c
View file @
b51ee131
...
@@ -775,6 +775,8 @@ A printed representation of an object is text which describes that object. */)
...
@@ -775,6 +775,8 @@ A printed representation of an object is text which describes that object. */)
PRINTFINISH
;
PRINTFINISH
;
set_buffer_internal
(
XBUFFER
(
Vprin1_to_string_buffer
));
set_buffer_internal
(
XBUFFER
(
Vprin1_to_string_buffer
));
object
=
Fbuffer_string
();
object
=
Fbuffer_string
();
if
(
SBYTES
(
object
)
==
SCHARS
(
object
))
STRING_SET_UNIBYTE
(
object
);
Ferase_buffer
();
Ferase_buffer
();
set_buffer_internal
(
old
);
set_buffer_internal
(
old
);
...
...
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