Function: nnmh-possibly-change-directory

nnmh-possibly-change-directory is a byte-compiled function defined in nnmh.el.gz.

Signature

(nnmh-possibly-change-directory NEWSGROUP &optional SERVER)

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnmh.el.gz
;;; Internal functions.

(defun nnmh-possibly-change-directory (newsgroup &optional server)
  (when (and server
	     (not (nnmh-server-opened server)))
    (nnmh-open-server server))
  (when newsgroup
    (let ((pathname (nnmail-group-pathname newsgroup nnmh-directory))
	  (file-name-coding-system nnmail-pathname-coding-system))
      (if (file-directory-p pathname)
	  (setq nnmh-current-directory pathname)
	(nnheader-report 'nnmh "Not a directory: %s" nnmh-directory)))))