From 0a4eb2274f8da9ed843d71c8551148e862882e09 Mon Sep 17 00:00:00 2001 From: morioka Date: Fri, 5 Jun 1998 11:24:33 +0000 Subject: [PATCH] (set-buffer-multibyte): New function (moved from emu-e20_2.el). --- emu.el | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ;;; -- 1.7.10.4