Function: mh-ascii-buffer-p

mh-ascii-buffer-p is a byte-compiled function defined in mh-comp.el.gz.

Signature

(mh-ascii-buffer-p)

Documentation

Check if current buffer is entirely composed of ASCII.

The function doesn't work for XEmacs since find-charset-region doesn't exist there.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-comp.el.gz
(defun mh-ascii-buffer-p ()
  "Check if current buffer is entirely composed of ASCII.
The function doesn't work for XEmacs since `find-charset-region'
doesn't exist there."
  (cl-loop for charset in (mh-funcall-if-exists
                           find-charset-region (point-min) (point-max))
           unless (eq charset 'ascii) return nil
           finally return t))