FW: [Bug 144354] filetype is not stored

Andreas Pakulat apaku at gmx.de
Wed Apr 18 15:02:08 UTC 2007


On 18.04.07 09:34:20, Matthew Woehlke wrote:
> Maciej Pilichowski wrote:
> > ------- You are receiving this mail because: -------
> > You are the assignee for the bug, or are watching the assignee.
> >          
> > http://bugs.kde.org/show_bug.cgi?id=144354         
> > 
> > ------- Additional Comments From bluedzins wp pl  2007-04-18 15:52 -------
> > Matthew thank you for the help, however... :-)
> > 
> > Note, that when somebody open a file in KDevelop and reset the encodings... well, it is all she/he has to know. 
> > 
> > I've just take a look at the doc you pointed out, and it appears that you have to notice that filetype storing does not work (and that's bad -- because you can lost some work, besides -- the principle of the least surprise should not be violated), you have to find the solution, you have to learn how to write a modeline spec...
> > Comparing it to encodings mentioned above it is quite a challenge, especially when you are close to your deadline with work.
> > 
> > Storing filetype in KDevelop seems to be quite natural feature -- KDevelop already stores a list of opened files and their attributes.
> 
> Any comments from the KDevelop side?

First thing to mention is: Modelines are the right way to set this in a
file-dependent manner, IMHO. KDevelop might provide a way to set such a
modeline, but thats all it should do.

Reasoning: As soon as somebody else imports the project or opens the
file in plain kate, he has to do the same modification in the file-type
menu, while with a modeline he doesn't need this.

Also I disagree with Maciej about having to learn the modeline spec,
anybody who seriously uses kate as development tool (either embedded in
kdevelop or standalone) needs to learn modelines. It provides ways to
have consistent indentation settings and other things across a project
and thus is just natural.

And his argument about deadlines coming up or losing work is just
nonsense. If you have a deadline coming up and an extra click once a day
is taking too much time, then you've got really serious time-planning
problems.

Also somehow this bug sounds as if it should be on kdevelop, not on
kate. Kate has no way of storing such information except in its config
file, which will be cluttered soon. 

Last but not least: Is the filetype-information preserved in kdevelop
while the file is not open? So if I close the file and re-open it I
think I have to set the file-type again - no? If that is the case (i.e.
its not stored between close and open) than there's no point in adding
the information to the session file, as its lost later on when the file
is closed.

Andreas

-- 
Good day for a change of scene.  Repaper the bedroom wall.




More information about the KDevelop-devel mailing list