Function: hypb:format-quote

hypb:format-quote is a byte-compiled function defined in hypb.el.

Signature

(hypb:format-quote ARG)

Documentation

Replace all single % with %% in any string ARG.

This is so that a call to format or message ignores them. Return either the modified string or the original ARG when not modified.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
(defun hypb:format-quote (arg)
  "Replace all single % with %% in any string ARG.
This is so that a call to `format' or `message' ignores them.
Return either the modified string or the original ARG when not
modified."
  (if (stringp arg)
      (replace-regexp-in-string
       "@@@" "%%" (replace-regexp-in-string
		   "%" "%%" (replace-regexp-in-string "%%" "@@@" arg nil t)
		   nil t)
       nil t)
    arg))