Function: nnheader-file-to-group

nnheader-file-to-group is a byte-compiled function defined in nnheader.el.gz.

Signature

(nnheader-file-to-group FILE &optional TOP)

Documentation

Return a group name based on FILE and TOP.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnheader.el.gz
(defun nnheader-file-to-group (file &optional top)
  "Return a group name based on FILE and TOP."
  (nnheader-replace-chars-in-string
   (if (not top)
       file
     (condition-case ()
	 (substring (expand-file-name file)
		    (length
		     (expand-file-name
		      (file-name-as-directory top))))
       (error "")))
   nnheader-directory-separator-character ?.))