From 8ced26c25a061160973a77aca952918c3d61b3a4 Mon Sep 17 00:00:00 2001 From: morioka Date: Fri, 5 Jun 1998 11:58:21 +0000 Subject: [PATCH] (set-buffer-multibyte): New macro. --- emu-latin1.el | 15 +++++++++------ emu-x20.el | 13 +++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/emu-latin1.el b/emu-latin1.el index 2d1c182..1db57a7 100644 --- a/emu-latin1.el +++ b/emu-latin1.el @@ -24,14 +24,17 @@ ;;; Code: -;;; @ version and variant specific features +;;; @ buffer representation ;;; -;; (cond (running-xemacs -;; (require 'emu-xemacs)) -;; (running-emacs-19 -;; (require 'emu-e19) -;; )) +(defmacro-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 macro]" + ) ;;; @ character set diff --git a/emu-x20.el b/emu-x20.el index a26cf03..2afa72e 100644 --- a/emu-x20.el +++ b/emu-x20.el @@ -213,6 +213,19 @@ find-file-hooks, etc. )) +;;; @ buffer representation +;;; + +(defmacro-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 macro]" + ) + + ;;; @ character ;;; -- 1.7.10.4