Function: hsys-org-meta-return

hsys-org-meta-return is an autoloaded, interactive and byte-compiled function defined in hsys-org.el.

Signature

(hsys-org-meta-return)

Documentation

Call org-meta-return with the numeric value of any prefix arg when given.

Do nothing if called outside of org-mode.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20261018.1143/hsys-org.el
;;;###autoload
(defun hsys-org-meta-return ()
  "Call `org-meta-return' with the numeric value of any prefix arg when given.
Do nothing if called outside of `org-mode'."
  (interactive "P")
  (when (apply #'derived-mode-p '(org-mode))
    (when buffer-read-only
      (error "(hsys-org-meta-return): \"%s\" must not be read-only; toggle with {%s}"
	     (buffer-name)
	     (key-description (car (where-is-internal #'read-only-mode)))))
    ;; `org-meta-return' runs delete and insert functions over prior list
    ;; items, as an example, which can erase HyWiki highlighting, so ensure
    ;; the appropriate region is re-highlighted when needed.
    ;; -- RSW, 2026-09-16
    (let ((opoint (point-marker)))
      (unwind-protect
          (progn
            (if current-prefix-arg
                (org-meta-return (prefix-numeric-value current-prefix-arg))
              (org-meta-return))
            (when (and (fboundp 'hywiki-non-hook-context-p)
                       (not (hywiki-non-hook-context-p)))
              (hywiki-maybe-highlight-region opoint (point))))
        (set-marker opoint nil)))))