Function: edmacro-sanitize-for-string

edmacro-sanitize-for-string is a byte-compiled function defined in edmacro.el.gz.

Signature

(edmacro-sanitize-for-string SEQ)

Documentation

Convert a key sequence vector SEQ into a string.

The string represents the same events; Meta is indicated by bit 7. This function assumes that the events can be stored in a string.

Source Code

;; Defined in /usr/src/emacs/lisp/edmacro.el.gz
(defun edmacro-sanitize-for-string (seq)
  "Convert a key sequence vector SEQ into a string.
The string represents the same events; Meta is indicated by bit 7.
This function assumes that the events can be stored in a string."
  (setq seq (copy-sequence seq))
  (cl-loop for i below (length seq) do
           (when (logand (aref seq i) 128)
             (setf (aref seq i) (logand (aref seq i) 127))))
  seq)