all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#50560: 28.0.50; 'insert-file-contents-literally' on multibyte buffers
@ 2021-09-13  6:58 Augusto Stoffel
  2021-09-13  7:10 ` Lars Ingebrigtsen
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Augusto Stoffel @ 2021-09-13  6:58 UTC (permalink / raw)
  To: 50560

I thought 'insert-file-contents-literally' literally just inserted the
file contents, as bytes, but I noticed that in the following code

    (create-image
     (with-temp-buffer
       (set-buffer-multibyte nil)
       (insert-file-contents-literally "picure.jpg")
       (buffer-substring-no-properties (point-min) (point-max)))
     nil t)

the call to 'set-buffer-multibyte' is really essential.

Is this intended?  If so, I think a note in the doctring is due.





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-09-13 21:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-13  6:58 bug#50560: 28.0.50; 'insert-file-contents-literally' on multibyte buffers Augusto Stoffel
2021-09-13  7:10 ` Lars Ingebrigtsen
2021-09-13  7:16   ` Lars Ingebrigtsen
2021-09-13  8:13   ` Augusto Stoffel
2021-09-13  8:19     ` Lars Ingebrigtsen
2021-09-13  8:42 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-13 12:05   ` Eli Zaretskii
2021-09-13 13:18     ` Lars Ingebrigtsen
2021-09-13 21:37       ` Augusto Stoffel
2021-09-13 11:52 ` Eli Zaretskii
2021-09-13 12:44   ` Augusto Stoffel
2021-09-13 13:26     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.