spell checking improved

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-04-04 20:26:35 +00:00
parent d74ff84fa3
commit 8ed3f57039
2 changed files with 4 additions and 2 deletions

View File

@ -459,7 +459,8 @@ class FileBuffer(Buffer):
data = self.read() data = self.read()
self.lines = data.split(self.nl) self.lines = data.split(self.nl)
def reload(self): def reload(self):
self.open() data = self.read()
self.set_data(data)
def changed_on_disk(self): def changed_on_disk(self):
assert self.checksum is not None assert self.checksum is not None
f = open(self.path) f = open(self.path)

View File

@ -113,6 +113,7 @@ class LatexInsertSpace(TextInsertSpace):
class LatexCheckSpelling(method.Method): class LatexCheckSpelling(method.Method):
"""Check the spelling of the document via ispell -t""" """Check the spelling of the document via ispell -t"""
def _execute(self, w, **vargs): def _execute(self, w, **vargs):
w.application.run_external('ispell', '-t', w.buffer.path) w.application.run_external('ispell', '-M', '-t', w.buffer.path)
w.buffer.reload()
install = Latex.install install = Latex.install