diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -822,3 +822,7 @@ except (ImportError, AttributeError): pass return False + +@check('emacs', 'GNU Emacs') +def has_emacs(): + return matchoutput('emacs --version', b'GNU Emacs')