diff --git a/CHANGES b/CHANGES index 83c2e072d..5886a0cdf 100644 --- a/CHANGES +++ b/CHANGES @@ -39,6 +39,7 @@ Bugs fixed * #2361: Fix additional paragraphs inside the "compound" directive are indented * #2364: Fix KeyError 'rootSymbol' on Sphinx upgrade from older version. * #2348: Move amsmath and amssymb to before fontpkg on LaTeX writer. +* #2368: Ignore emacs lock files like ``.#foo.rst`` by default. Documentation ------------- diff --git a/sphinx/environment.py b/sphinx/environment.py index 0f086fb09..20e878414 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -391,7 +391,7 @@ class BuildEnvironment: config.exclude_patterns[:] + config.templates_path + config.html_extra_path + - ['**/_sources', '.#*', '*.lproj/**'] + ['**/_sources', '.#*', '**/.#*', '*.lproj/**'] ) self.found_docs = set(get_matching_docs( self.srcdir, config.source_suffix, exclude_matchers=matchers))