Function: eldoc-edit-message-commands

eldoc-edit-message-commands is a byte-compiled function defined in eldoc.el.gz.

Signature

(eldoc-edit-message-commands)

Documentation

Return an obarray containing common editing commands.

When eldoc-print-after-edit is non-nil, ElDoc messages are only printed after commands contained in this obarray.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eldoc.el.gz
(defun eldoc-edit-message-commands ()
  "Return an obarray containing common editing commands.

When `eldoc-print-after-edit' is non-nil, ElDoc messages are only
printed after commands contained in this obarray."
  (let ((cmds (make-vector 31 0))
	(re (regexp-opt '("delete" "insert" "edit" "electric" "newline"))))
    (mapatoms (lambda (s)
		(and (commandp s)
		     (string-match-p re (symbol-name s))
		     (intern (symbol-name s) cmds)))
	      obarray)
    cmds))