 (defun erlang-tags-remove-module-check ()
   "Remove our own tags search functions."
   (cond
-   ((>= erlang-emacs-major-version 20)
+   ((>= emacs-major-version 20)
     (funcall (symbol-function 'set)
              'tags-table-format-functions
              erlang-tags-orig-format-functions)

  ;; Make sure our functions are installed in TAGS files loaded
  ;; into Emacs while searching.
  (cond
   ((>= erlang-emacs-major-version 20)
    (setq erlang-tags-orig-format-functions
          (symbol-value 'tags-table-format-functions))
    (funcall (symbol-function 'set) 'tags-table-format-functions

                (setq process-environment (cons (concat "MANPATH=" dir)
                                                process-environment)))
              (cond ((not (and (not erlang-xemacs-p)
                               (= emacs-major-version 19)
                               (< emacs-minor-version 29)))
                     (manual-entry page))
                    (t
                     ;; Emacs 19.28 and earlier versions of 19:
