[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] invoking external spell checker always sets modified flag
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] invoking external spell checker always sets modified flag |
Date: |
Sat, 21 Feb 2015 12:54:18 +0100 |
Hi,
In Savannah the following bug was posted:
https://savannah.gnu.org/bugs/?44320
It points out that when using an external spell checker,
like aspell, doing a spell check will always set the file-
-is-modified flag, even when nothing at all was changed.
I see two possible solutions:
1) Get the timestamp of the created temp file, and
check whether it changed after the spell checker has
completed. But that requires that all spell checkers
don't modify the temp file at all when no words were
changed, just like aspell does. Is that a safe assumption
to make?
2) Write two copies of the temp file and compare them
after the spell checker has completed. It will require
the running of an extra external program: cmp. Ugly.
Any other ideas?
Benno
--
http://www.fastmail.com - The way an email service should be
- [Nano-devel] invoking external spell checker always sets modified flag,
Benno Schulenberg <=