[prev in list] [next in list] [prev in thread] [next in thread]
List: ktexteditor-devel
Subject: Re: [PATCH] Teach katepart to understand emacs' "-*- coding: ... -*-"
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2008-08-28 18:04:15
Message-ID: 200808282004.15866.dhdev () gmx ! de
[Download RAW message or body]
On Thursday 28 August 2008, Vladimir V. Perepelitsa wrote:
> void KateDocument::readVariableLine( QString t, bool onlyViewAndRenderer
> ) {
> // simple check first, no regex
> // no kate inside, no vars, simple...
> - if (t.find("kate") < 0)
> + if (t.find("kate") + t.find("-*-") < 0)
> return;
-1 + 0 = -1 < 0 -> does not always work ;)
I leave it to cullmann to decide.
Dominik
_______________________________________________
KTextEditor-Devel mailing list
KTextEditor-Devel@kde.org
https://mail.kde.org/mailman/listinfo/ktexteditor-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic