From 0d0f924c2e7718e17491b3c56ac868c4dae96f83 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 12 Nov 2008 15:26:56 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/html.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mode/html.py b/mode/html.py index 94a2e07..d5cc047 100644 --- a/mode/html.py +++ b/mode/html.py @@ -65,6 +65,9 @@ class HtmlCheckSpelling(method.Method): # -x no backup file # -M show context menu # -H treat input document as HTML + if w.buffer.changed(): + w.set_error("There are unsaved changes; please save first.") + return w.application.run_external('ispell', '-x', '-M', '-H', w.buffer.path) if w.buffer.changed_on_disk(): w.buffer.reload()