Function: texinfo-insert-quote
texinfo-insert-quote is an interactive and byte-compiled function
defined in texinfo.el.gz.
Signature
(texinfo-insert-quote &optional ARG)
Documentation
Insert the appropriate quote mark for Texinfo.
Usually inserts the value of texinfo-open-quote (normally ``) or
texinfo-close-quote (normally ''), depending on the context.
With prefix argument or inside @code or @example, inserts a plain ".
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texinfo.el.gz
(defun texinfo-insert-quote (&optional arg)
"Insert the appropriate quote mark for Texinfo.
Usually inserts the value of `texinfo-open-quote' (normally \\=`\\=`) or
`texinfo-close-quote' (normally \\='\\='), depending on the context.
With prefix argument or inside @code or @example, inserts a plain \"."
(interactive "*P")
(let ((top (or (save-excursion (re-search-backward "@node\\>" nil t))
(point-min))))
(if (or arg
(= (preceding-char) ?\\)
(save-excursion
;; Might be near the start of a (narrowed) buffer.
(ignore-errors (backward-char (length texinfo-open-quote)))
(when (or (looking-at texinfo-open-quote)
(looking-at texinfo-close-quote))
(delete-char (length texinfo-open-quote))
t))
(texinfo-inside-macro-p texinfo-enable-quote-macros top)
(let ((in-env nil))
(dolist (env texinfo-enable-quote-envs in-env)
(if (texinfo-inside-env-p env top)
(setq in-env t)))))
(self-insert-command (prefix-numeric-value arg))
(insert
(if (or (bobp)
(memq (char-syntax (preceding-char)) '(?\( ?> ?\s)))
texinfo-open-quote
texinfo-close-quote)))))