From 58e2793097deb3127086c6045f3853218e61ccb7 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 13 Sep 2018 16:57:38 +0200 Subject: [PATCH] Ignore one more type of emacs temp file --- CHANGELOG.md | 2 ++ src/cmd/serve.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07c982f0..ad7ad641 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - Load table and footnote markdown extensions in `markdown` filter - `get_url` now defaults to not adding a trailing slash - Fix `--base-url` not overriding processed images URLs +- Many many times faster (x10-x20) for sites with thousands of pages +- Add more Emacs temp file to the ignored patterns in `gutenberg serve` ## 0.4.2 (2018-09-03) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 2406de04..2265c08c 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -306,7 +306,8 @@ fn is_temp_file(path: &Path) -> bool { _ => { if let Some(filename) = path.file_stem() { // emacs - filename.to_str().unwrap().starts_with('#') + let name = filename.to_str().unwrap(); + name.starts_with('#') || name.starts_with(".#") } else { false }