Function: nnheader-insert-buffer-substring

nnheader-insert-buffer-substring is a macro defined in nnheader.el.gz.

Signature

(nnheader-insert-buffer-substring BUFFER &optional START END)

Documentation

Copy string from unibyte buffer to multibyte current buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnheader.el.gz
(defmacro nnheader-insert-buffer-substring (buffer &optional start end)
  "Copy string from unibyte buffer to multibyte current buffer."
  `(insert (with-current-buffer ,buffer
	     ,(if (or start end)
		  `(buffer-substring (or ,start (point-min))
				     (or ,end (point-max)))
		'(buffer-string)))))