all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Run coding system auto-detection manually?
@ 2002-08-04 14:22 Kai Großjohann
  2002-08-05  4:48 ` Eli Zaretskii
  2002-08-06  9:50 ` Kai Großjohann
  0 siblings, 2 replies; 14+ messages in thread
From: Kai Großjohann @ 2002-08-04 14:22 UTC (permalink / raw)


Suppose I have a buffer and hit C-x C-s.  Then Emacs figures out a
coding system to use, possibly based on the filename.

But I would like to use write-region to write the buffer contents to
another file, but I would like this call to use the same coding
system that Emacs would have used for C-x C-s.

How do I do that?

kai

PS: Background info: In the write-region handler, Tramp first writes
    the region to a local temp file and then transfers this temp file to
    the remote host via scp (say).  So the write-region handler needs
    to use the right coding system when writing the temp file.
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

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

end of thread, other threads:[~2002-08-08 13:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-04 14:22 Run coding system auto-detection manually? Kai Großjohann
2002-08-05  4:48 ` Eli Zaretskii
2002-08-05 10:43   ` Kai Großjohann
2002-08-06  1:50     ` Richard Stallman
2002-08-06  9:48       ` Kai Großjohann
2002-08-07 14:23         ` Richard Stallman
2002-08-06  9:50 ` Kai Großjohann
2002-08-07  8:24   ` Kenichi Handa
2002-08-07 15:18     ` Kai Großjohann
2002-08-08  1:09       ` Kenichi Handa
2002-08-08  7:01     ` Richard Stallman
2002-08-08  8:48       ` Kai Großjohann
2002-08-08 12:45       ` Kenichi Handa
2002-08-08 13:12         ` Kai Großjohann

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.