From: morioka Date: Fri, 5 Jun 1998 11:24:33 +0000 (+0000) Subject: (set-buffer-multibyte): New function (moved from emu-e20_2.el). X-Git-Tag: apel-8_14~23 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0a4eb2274f8da9ed843d71c8551148e862882e09;p=elisp%2Fapel.git (set-buffer-multibyte): New function (moved from emu-e20_2.el). --- diff --git a/emu.el b/emu.el index bf1df70..ebb93a2 100644 --- a/emu.el +++ b/emu.el @@ -289,6 +289,16 @@ If STRING is multibyte, the result is STRING itself. \[Emacs 20.3 emulating macro]" string) +(defsubst-maybe set-buffer-multibyte (flag) + "Set the multibyte flag of the current buffer to FLAG. +If FLAG is t, this makes the buffer a multibyte buffer. +If FLAG is nil, this makes the buffer a single-byte buffer. +The buffer contents remain unchanged as a sequence of bytes +but the contents viewed as characters do change. +\[Emacs 20.3 emulating function]" + (setq enable-multibyte-characters flag) + ) + ;;; @ XEmacs emulation ;;;