[gedit-latex] Add python modeline.



commit c2893077eb4c8c50270f34eddb7cb90ebdbcd0c2
Author: Josà Aliste <jaliste src gnome org>
Date:   Tue Jun 28 18:16:24 2011 -0400

    Add python modeline.

 latex/__init__.py               |    3 ++-
 latex/base/__init__.py          |    2 ++
 latex/base/completion.py        |    2 ++
 latex/base/config.py            |    2 ++
 latex/base/decorators.py        |    2 ++
 latex/base/job.py               |    2 ++
 latex/base/resources.py         |    2 ++
 latex/base/templates.py         |    2 ++
 latex/base/windowactivatable.py |    2 ++
 latex/bibtex/__init__.py        |    3 ++-
 latex/bibtex/actions.py         |    3 ++-
 latex/bibtex/cache.py           |    2 ++
 latex/bibtex/completion.py      |    2 ++
 latex/bibtex/dialogs.py         |    2 ++
 latex/bibtex/editor.py          |    2 ++
 latex/bibtex/model.py           |    2 ++
 latex/bibtex/parser.py          |    2 ++
 latex/bibtex/validator.py       |    2 ++
 latex/bibtex/views.py           |    2 ++
 latex/issues.py                 |    2 ++
 latex/latex/__init__.py         |    3 ++-
 latex/latex/actions.py          |    2 ++
 latex/latex/archive.py          |    2 ++
 latex/latex/cache.py            |    2 ++
 latex/latex/completion.py       |    2 ++
 latex/latex/dialogs.py          |    2 ++
 latex/latex/editor.py           |    2 ++
 latex/latex/environment.py      |    2 ++
 latex/latex/expander.py         |    2 ++
 latex/latex/inversesearch.py    |    2 ++
 latex/latex/lexer.py            |    3 ++-
 latex/latex/listing.py          |    2 ++
 latex/latex/model.py            |    2 ++
 latex/latex/outline.py          |    2 ++
 latex/latex/parser.py           |    2 ++
 latex/latex/preview.py          |    2 ++
 latex/latex/validator.py        |    2 ++
 latex/latex/views.py            |    2 ++
 latex/outline.py                |    2 ++
 latex/preferences/__init__.py   |    2 ++
 latex/preferences/dialog.py     |    2 ++
 latex/preferences/tools.py      |    2 ++
 latex/relpath.py                |    2 ++
 latex/tools/__init__.py         |    2 ++
 latex/tools/postprocess.py      |    2 ++
 latex/tools/util.py             |    2 ++
 latex/tools/views.py            |    2 ++
 latex/util.py                   |    2 ++
 latex/views.py                  |    2 ++
 49 files changed, 98 insertions(+), 5 deletions(-)
---
diff --git a/latex/__init__.py b/latex/__init__.py
index dd78ffc..af2fa69 100644
--- a/latex/__init__.py
+++ b/latex/__init__.py
@@ -18,4 +18,5 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # Street, Fifth Floor, Boston, MA  02110-1301, USA
 
-from base.windowactivatable import LaTeXWindowActivatable
\ No newline at end of file
+from base.windowactivatable import LaTeXWindowActivatable
+# ex:ts=8:et:
diff --git a/latex/base/__init__.py b/latex/base/__init__.py
index bc93a85..c651220 100644
--- a/latex/base/__init__.py
+++ b/latex/base/__init__.py
@@ -1365,3 +1365,5 @@ class Folder(File):
             self.__log.debug("files: %s" % e)
 
             return []
+
+# ex:ts=8:et:
diff --git a/latex/base/completion.py b/latex/base/completion.py
index 474964c..d95b779 100644
--- a/latex/base/completion.py
+++ b/latex/base/completion.py
@@ -576,3 +576,5 @@ class CompletionDistributor(object):
     def __del__(self):
         self._log.debug("Properly destroyed %s" % self)
 
+
+# ex:ts=8:et:
diff --git a/latex/base/config.py b/latex/base/config.py
index 692a148..0d3655c 100644
--- a/latex/base/config.py
+++ b/latex/base/config.py
@@ -171,3 +171,5 @@ from ..bibtex.editor import BibTeXEditor
 
 EDITORS = [ LaTeXEditor, BibTeXEditor ]
 
+
+# ex:ts=8:et:
diff --git a/latex/base/decorators.py b/latex/base/decorators.py
index 844b131..b0c43f9 100644
--- a/latex/base/decorators.py
+++ b/latex/base/decorators.py
@@ -206,3 +206,5 @@ class GeditTabDecorator(object):
 
     def __del__(self):
         self._log.debug("Properly destroyed %s" % self)
+
+# ex:ts=8:et:
diff --git a/latex/base/job.py b/latex/base/job.py
index 59f9242..0d7418f 100644
--- a/latex/base/job.py
+++ b/latex/base/job.py
@@ -201,3 +201,5 @@ class JobManager(dbus.service.Object):
 
 job_manager = JobManager()
 
+
+# ex:ts=8:et:
diff --git a/latex/base/resources.py b/latex/base/resources.py
index 06f9199..37e5707 100644
--- a/latex/base/resources.py
+++ b/latex/base/resources.py
@@ -107,3 +107,5 @@ def find_resource(relative_path, access_mode=MODE_READONLY):
 
         return path
 
+
+# ex:ts=8:et:
diff --git a/latex/base/templates.py b/latex/base/templates.py
index 02eeade..6cfc857 100644
--- a/latex/base/templates.py
+++ b/latex/base/templates.py
@@ -611,3 +611,5 @@ class TemplateDelegate(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/base/windowactivatable.py b/latex/base/windowactivatable.py
index d1a49b8..272b1dc 100644
--- a/latex/base/windowactivatable.py
+++ b/latex/base/windowactivatable.py
@@ -634,3 +634,5 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
         decorator = GeditTabDecorator(self, tab, init)
         self._tab_decorators[tab] = decorator
         return decorator
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/__init__.py b/latex/bibtex/__init__.py
index 9de43e6..07938b9 100644
--- a/latex/bibtex/__init__.py
+++ b/latex/bibtex/__init__.py
@@ -16,4 +16,5 @@
 #
 # You should have received a copy of the GNU General Public Licence along with
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
-# Street, Fifth Floor, Boston, MA  02110-1301, USA
\ No newline at end of file
+# Street, Fifth Floor, Boston, MA  02110-1301, USA
+# ex:ts=8:et:
diff --git a/latex/bibtex/actions.py b/latex/bibtex/actions.py
index ba32e6e..6c79be0 100644
--- a/latex/bibtex/actions.py
+++ b/latex/bibtex/actions.py
@@ -55,4 +55,5 @@ class BibTeXNewEntryAction(Action):
 
         source = self._dialog.run()
         if not source is None:
-            context.active_editor.append(source)
\ No newline at end of file
+            context.active_editor.append(source)
+# ex:ts=8:et:
diff --git a/latex/bibtex/cache.py b/latex/bibtex/cache.py
index 635fc53..71a3b2b 100644
--- a/latex/bibtex/cache.py
+++ b/latex/bibtex/cache.py
@@ -108,3 +108,5 @@ class BibTeXDocumentCache(object):
         return entry.document
 
 
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/completion.py b/latex/bibtex/completion.py
index e22ef01..944938d 100644
--- a/latex/bibtex/completion.py
+++ b/latex/bibtex/completion.py
@@ -124,3 +124,5 @@ class BibTeXCompletionHandler(ICompletionHandler):
         return proposals
 
 
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/dialogs.py b/latex/bibtex/dialogs.py
index 68d09e4..d11517a 100644
--- a/latex/bibtex/dialogs.py
+++ b/latex/bibtex/dialogs.py
@@ -190,3 +190,5 @@ class InsertBibTeXEntryDialog(GladeInterface):
 
         tbl_optional.show_all()
         self._boxOptional.pack_start(tbl_optional, False)
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/editor.py b/latex/bibtex/editor.py
index 07d3f2e..44acb99 100644
--- a/latex/bibtex/editor.py
+++ b/latex/bibtex/editor.py
@@ -209,3 +209,5 @@ class BibTeXEditor(Editor, IIssueHandler, JobChangeListener):
         self._log.debug("Properly destroyed %s" % self)
 
 
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/model.py b/latex/bibtex/model.py
index ea016b8..4ac67a7 100644
--- a/latex/bibtex/model.py
+++ b/latex/bibtex/model.py
@@ -104,3 +104,5 @@ class BibTeXModel(object):
             self._types_list.sort()
         return self._types_list
 
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/parser.py b/latex/bibtex/parser.py
index 2bdbe27..38c6482 100644
--- a/latex/bibtex/parser.py
+++ b/latex/bibtex/parser.py
@@ -600,3 +600,5 @@ class Document(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/validator.py b/latex/bibtex/validator.py
index cb69552..80d56da 100644
--- a/latex/bibtex/validator.py
+++ b/latex/bibtex/validator.py
@@ -86,3 +86,5 @@ class BibTeXValidator:
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/bibtex/views.py b/latex/bibtex/views.py
index ee5e538..7fcf3d1 100644
--- a/latex/bibtex/views.py
+++ b/latex/bibtex/views.py
@@ -294,3 +294,5 @@ class OutlineConverter(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/issues.py b/latex/issues.py
index fe7f54f..fbb12df 100644
--- a/latex/issues.py
+++ b/latex/issues.py
@@ -150,3 +150,5 @@ class Issue(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/__init__.py b/latex/latex/__init__.py
index f3f8817..9221cb0 100644
--- a/latex/latex/__init__.py
+++ b/latex/latex/__init__.py
@@ -105,4 +105,5 @@ class PropertyFile(dict):
             f.close()
             self.__log.debug("Saved to %s" % filename)
         except IOError, e:
-            self.__log.error("Error saving %s: %s" % (filename, e))
\ No newline at end of file
+            self.__log.error("Error saving %s: %s" % (filename, e))
+# ex:ts=8:et:
diff --git a/latex/latex/actions.py b/latex/latex/actions.py
index c190e79..d6f3356 100644
--- a/latex/latex/actions.py
+++ b/latex/latex/actions.py
@@ -553,3 +553,5 @@ class LaTeXSaveAsTemplateAction(LaTeXAction):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/archive.py b/latex/latex/archive.py
index be7efc9..4458aa2 100644
--- a/latex/latex/archive.py
+++ b/latex/latex/archive.py
@@ -111,3 +111,5 @@ class LaTeXDependencyScanner:
             self._search(node)
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/cache.py b/latex/latex/cache.py
index 1a10dd5..7ad1c07 100644
--- a/latex/latex/cache.py
+++ b/latex/latex/cache.py
@@ -154,3 +154,5 @@ class LaTeXDocumentCache(object):
         return entry.document
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/completion.py b/latex/latex/completion.py
index f334bef..d5c4da1 100644
--- a/latex/latex/completion.py
+++ b/latex/latex/completion.py
@@ -395,3 +395,5 @@ class PrefixModelParser(object):
 
         raise Exception("No matching model argument found")
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/dialogs.py b/latex/latex/dialogs.py
index 75e6222..5d3402a 100644
--- a/latex/latex/dialogs.py
+++ b/latex/latex/dialogs.py
@@ -1188,3 +1188,5 @@ class SaveAsTemplateDialog(GladeInterface):
         else:
             return None
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/editor.py b/latex/latex/editor.py
index ad124ac..519c22c 100644
--- a/latex/latex/editor.py
+++ b/latex/latex/editor.py
@@ -419,3 +419,5 @@ class LaTeXEditor(Editor, IIssueHandler):
     def __del__(self):
         self._log.debug("Properly destroyed %s" % self)
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/environment.py b/latex/latex/environment.py
index 7b987a8..0079949 100644
--- a/latex/latex/environment.py
+++ b/latex/latex/environment.py
@@ -372,3 +372,5 @@ class Environment(object):
         """
         return getdefaultlocale()[0]
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/expander.py b/latex/latex/expander.py
index c34abd0..38f55cf 100644
--- a/latex/latex/expander.py
+++ b/latex/latex/expander.py
@@ -96,3 +96,5 @@ class LaTeXReferenceExpander(object):
                     self._log.error("Malformed reference command at %s" % node.start)
 
             self._expand(node)
+
+# ex:ts=8:et:
diff --git a/latex/latex/inversesearch.py b/latex/latex/inversesearch.py
index 10ed416..7256ba4 100644
--- a/latex/latex/inversesearch.py
+++ b/latex/latex/inversesearch.py
@@ -94,3 +94,5 @@ except ImportError:
     # TODO: popup a message
     _log.error("Failed to import D-Bus bindings")
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/lexer.py b/latex/latex/lexer.py
index 87a76ad..71d7dda 100644
--- a/latex/latex/lexer.py
+++ b/latex/latex/lexer.py
@@ -318,4 +318,5 @@ class Lexer(object):
 
                     return Token(Token.TEXT, self._startOffset, "".join(self._text))
 
-                raise StopIteration
\ No newline at end of file
+                raise StopIteration
+# ex:ts=8:et:
diff --git a/latex/latex/listing.py b/latex/latex/listing.py
index a9627b8..5d636c7 100644
--- a/latex/latex/listing.py
+++ b/latex/latex/listing.py
@@ -71,3 +71,5 @@ class LanguagesParser(ContentHandler):
         self._languages = languages
         parse(filename, self)
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/model.py b/latex/latex/model.py
index 9d1f28d..62cced4 100644
--- a/latex/latex/model.py
+++ b/latex/latex/model.py
@@ -305,3 +305,5 @@ class LanguageModelFactory(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/outline.py b/latex/latex/outline.py
index 9a2b0b0..f2fedf8 100644
--- a/latex/latex/outline.py
+++ b/latex/latex/outline.py
@@ -260,3 +260,5 @@ class LaTeXOutlineGenerator(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/parser.py b/latex/latex/parser.py
index fe04374..26b6f29 100644
--- a/latex/latex/parser.py
+++ b/latex/latex/parser.py
@@ -708,3 +708,5 @@ class PrefixParser(object):
     def verbatim(self, value):
         pass
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/preview.py b/latex/latex/preview.py
index 30624cf..0a90db9 100644
--- a/latex/latex/preview.py
+++ b/latex/latex/preview.py
@@ -163,3 +163,5 @@ class PreviewRenderer(ToolRunner):
         """
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/validator.py b/latex/latex/validator.py
index 76df3cf..bc7293f 100644
--- a/latex/latex/validator.py
+++ b/latex/latex/validator.py
@@ -238,3 +238,5 @@ class LaTeXValidator(object):
         #~ print "Properly destroyed %s" % self
 
 
+
+# ex:ts=8:et:
diff --git a/latex/latex/views.py b/latex/latex/views.py
index 3c55cec..8e83211 100755
--- a/latex/latex/views.py
+++ b/latex/latex/views.py
@@ -385,3 +385,5 @@ class OutlineConverter(object):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/outline.py b/latex/outline.py
index 45e2178..cff1445 100644
--- a/latex/outline.py
+++ b/latex/outline.py
@@ -334,3 +334,5 @@ class OutlineOffsetMap(object):
         s += "\n</OutlineOffsetMap>"
         return s
 
+
+# ex:ts=8:et:
diff --git a/latex/preferences/__init__.py b/latex/preferences/__init__.py
index bb4bf7c..3787d95 100644
--- a/latex/preferences/__init__.py
+++ b/latex/preferences/__init__.py
@@ -65,3 +65,5 @@ class Preferences(GObject.GObject):
 
     def save(self):
         pass
+
+# ex:ts=8:et:
diff --git a/latex/preferences/dialog.py b/latex/preferences/dialog.py
index 80ba7c0..975b641 100644
--- a/latex/preferences/dialog.py
+++ b/latex/preferences/dialog.py
@@ -518,3 +518,5 @@ class PreferencesDialog(GladeInterface):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/preferences/tools.py b/latex/preferences/tools.py
index 091273b..6bf9df7 100644
--- a/latex/preferences/tools.py
+++ b/latex/preferences/tools.py
@@ -232,3 +232,5 @@ class ToolPreferences(GObject.GObject):
 
             self.__tools_changed = False
 
+
+# ex:ts=8:et:
diff --git a/latex/relpath.py b/latex/relpath.py
index 9bb4767..f2ed5b8 100644
--- a/latex/relpath.py
+++ b/latex/relpath.py
@@ -87,3 +87,5 @@ def relpath(base, comp):
         rel_path.insert(0, os.pardir)
 
     return os.path.join(*rel_path)
+
+# ex:ts=8:et:
diff --git a/latex/tools/__init__.py b/latex/tools/__init__.py
index 1b5f43d..180f114 100644
--- a/latex/tools/__init__.py
+++ b/latex/tools/__init__.py
@@ -269,3 +269,5 @@ class ToolRunner(Process):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/tools/postprocess.py b/latex/tools/postprocess.py
index 33467bd..b7d463d 100644
--- a/latex/tools/postprocess.py
+++ b/latex/tools/postprocess.py
@@ -224,3 +224,5 @@ class RubberPostProcessor(PostProcessor):
             self._issues.append(Issue(escape(text), lineFrom, lineTo, File(filename), severity, Issue.POSITION_LINE))
 
 
+
+# ex:ts=8:et:
diff --git a/latex/tools/util.py b/latex/tools/util.py
index a923141..b676b55 100644
--- a/latex/tools/util.py
+++ b/latex/tools/util.py
@@ -119,3 +119,5 @@ class Process(object):
         To be overridden
         """
 
+
+# ex:ts=8:et:
diff --git a/latex/tools/views.py b/latex/tools/views.py
index 2008da3..d028516 100755
--- a/latex/tools/views.py
+++ b/latex/tools/views.py
@@ -198,3 +198,5 @@ class ToolView(BottomView, IStructuredIssueHandler):
             obj.disconnect(self._handlers[obj])
         BottomView.destroy(self)
 
+
+# ex:ts=8:et:
diff --git a/latex/util.py b/latex/util.py
index 51953f9..c172501 100644
--- a/latex/util.py
+++ b/latex/util.py
@@ -251,3 +251,5 @@ class IconAction(Action):
 
 
 
+
+# ex:ts=8:et:
diff --git a/latex/views.py b/latex/views.py
index 4623d98..1e92742 100644
--- a/latex/views.py
+++ b/latex/views.py
@@ -206,3 +206,5 @@ class IssueView(BottomView):
             obj.disconnect(self._handlers[obj])
         BottomView.destroy(self)
 
+
+# ex:ts=8:et:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]