Function: reftex-format-names
reftex-format-names is a byte-compiled function defined in
reftex-cite.el.gz.
Signature
(reftex-format-names NAMELIST N)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-cite.el.gz
(defun reftex-format-names (namelist n)
(let (last (len (length namelist)))
(if (= n 0) (setq n len))
(cond
((< len 1) "")
((= 1 len) (car namelist))
((> len n) (concat (car namelist) (nth 2 reftex-cite-punctuation)))
(t
(setq n (min len n)
last (nth (1- n) namelist))
(setcdr (nthcdr (- n 2) namelist) nil)
(concat
(mapconcat #'identity namelist (nth 0 reftex-cite-punctuation))
(nth 1 reftex-cite-punctuation)
last)))))