Function: hmouse-map-modes-to-form

hmouse-map-modes-to-form is a byte-compiled function defined in hui-window.el.

Signature

(hmouse-map-modes-to-form MODE-FORMS)

Documentation

Map over MODE-FORMS, a sequence of (major-mode(s) form-to-eval) lists.

Return items with a single major-mode in the car, (major-mode form-to-eval).

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun hmouse-map-modes-to-form (mode-forms)
  "Map over MODE-FORMS, a sequence of (major-mode(s) form-to-eval) lists.
Return items with a single `major-mode' in the car, (major-mode form-to-eval)."
  (apply 'nconc
	 (mapcar (lambda (modes-form)
		   (if (sequencep (car modes-form))
		       (mapcar (lambda (mode) (cons mode (cdr modes-form)))
			       (car modes-form))
		     (list modes-form)))
		 mode-forms)))