Function: texinfo-format-verb

texinfo-format-verb is a byte-compiled function defined in texinfmt.el.gz.

Signature

(texinfo-format-verb)

Documentation

Format text between non-quoted unique delimiter characters verbatim.

Enclose the verbatim text, including the delimiters, in braces. Print text exactly as written (but not the delimiters) in a fixed-width.

For example, @verb{|@|} results in @ and
@verb{+@'e?`!`+} results in @'e?`!`.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/texinfmt.el.gz
(defun texinfo-format-verb ()
  "Format text between non-quoted unique delimiter characters verbatim.
Enclose the verbatim text, including the delimiters, in braces.  Print
text exactly as written (but not the delimiters) in a fixed-width.

For example, @verb{|@|} results in @ and
@verb{+@\\='e?\\=`!\\=`+} results in @\\='e?\\=`!\\=`."

  (let ((delimiter (buffer-substring-no-properties
		    (1+ texinfo-command-end) (+ 2 texinfo-command-end))))
    (unless (looking-at "{")
      (error "Not found: @verb start brace"))
    (delete-region texinfo-command-start (+ 2 texinfo-command-end))
    (search-forward  delimiter))
  (delete-char -1)
  (unless (looking-at "}")
    (error "Not found: @verb end brace"))
  (delete-char 1))