From: morioka Date: Fri, 5 Jun 1998 11:58:21 +0000 (+0000) Subject: (set-buffer-multibyte): New macro. X-Git-Tag: apel-8_14~19 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=8ced26c25a061160973a77aca952918c3d61b3a4;p=elisp%2Fapel.git (set-buffer-multibyte): New macro. --- 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 ;;;