KDE-CVS-Digest for December 20, 2002

A new edition of KDE-CVS-Digest is out. This week we cover updates on the security audit, Kroupware issues, bugfixes and lots of new features in KDevelop, Konqueror, KDEPrint, Kig (a program for exploring geometrical constructions), as well as Proklam updates (see KMouth also) as a further step towards improving accessibility capabilities in KDE. Enjoy!


What amazes me is that there is this much to talk about, week after week. Good on ya, KDE devs!

By David Bishop at Mon, 2002/12/23 - 6:00am

630 commits since thursday evening when I did the last digest. If you look on at the kde-cvs list, you will see roughly 1500 or so a week.

Holy cow indeed.


By Derek Kite at Mon, 2002/12/23 - 6:00am

This weekly digest is a joy to read, Derek. Stuff like this is just as important as the implementation of code and bug fixes. Kudos for your consistency at keeping this project going!

By Caleb Tennis at Mon, 2002/12/23 - 6:00am

I don't know why Kate have been ignored in the CVS digest lately.

During the last week, roughly, we have

- Implemented Bug 33583: show vertical line at columns the user chooses (
- Implemented Bug 50530: ability to lock file, so no changes are allowed (
- Implemented Bug 34098: when saving files no backups are created. (
- Added wrap symbols on dynamically wrapped lines
- Fixed bracket matching to work with folded regions
- Fixed gotoline, find oa to work with folded regions
- Added a first menu command to utilize code folding (collapse all toplevel regions)
- Gotten syntax hl importing/merging to work (basically, utilizing this follows shortly)
- Gotten started on a projects framework

... and probably much more


By Anders at Mon, 2002/12/23 - 6:00am


The code folding and bracket matching will be in next week. Cutoff last week was sometime thursday local time.

I thought I got the stuff on locking and backups. Hmm. Sorry. I guess I looked at the commit logs and it didn't click.

BTW, Kate is coming along very well. I use it for my projects and scripts and like it very much.


By Derek Kite at Mon, 2002/12/23 - 6:00am

Wow! (Seriously)

Thanks for the good work.

By Anonymous at Tue, 2002/12/24 - 6:00am

What kind of scripting does Kate have nowadays? I'd like to to a lot of scripting for my editing needs, and Emacs *can* do it just fine, but I've never really liked Elisp that much. I've heard that Kate can use Python for scripting, is that true? Well, anything that is procedural and not Perl (too gory for a scripting language) is good for me. :)

I've looked for an alternative editor for a long time, but so far nothing compares to the power of Emacs in the hands of an experienced user. But I could grow to like Kate if it had good scripting and Emacs keybindings (not just C-a, C-e but *extensive* Emacs keybindings). I actually think Kate is a project I'd like to contribute to, but it's a bit overwhelming to get into the process.

By chakie at Wed, 2002/12/25 - 6:00am

There is no real scripting in kate itself atm, there was plans to add it (along with the whole kdescripting aproach in kdelibs), but we have no real working macro recording or scripting interface atm, I guess.

If you want to help out, just contact me ( ;) Help is always wanted
and thankfully accepted ;P


Merry Christmas ;)

By christoph at Thu, 2002/12/26 - 6:00am

Cullman where you asleep?
Kate scripting works, its just we are missing script engines. So far in KDE nonbeta we have a perl engine, and im still finishing up the python one.

So far there is only a bash shell script one, but that was just to get things started.

-ian reinhart geiser

By ian reinhart geiser at Thu, 2002/12/26 - 6:00am

I know that there is some infrastructure behind, but until now now real
"usable" scripting for the normal users (e.g. with macro recorder or any kind
of helper to create your own scripts)
That you can (somehow) install somewhere scripts that will be picked up by the app menus is not that perfect for the normal guys ;)

Your kscript work is nice, but we need some more stuff to get it visible for the end user.


By christoph at Thu, 2002/12/26 - 6:00am

I have been looking into methods of recording, the big problem im running into are figureing out that a menu action maps to a dcop event. The QAccessable classes offer some hope, but I really have give some more thought on the subject.

-ian reinhart geiser

By ian reinhart geiser at Thu, 2002/12/26 - 6:00am

Personally I'd be happy to be able to write small textual "modules" or scripts that are saved in, say, ~/.kde/share/apps/kate/scripts/ and picked up by Kate either automatically or through some command. Kate could also run some predefined script file at startup (like .emacs) and allow me to bind a script to a certain key combination. I don't really need macro recording, just a way to write/code scripts that do stuff for me, and which can optionally access user input. The scripts should also be allowed to access the buffer list and the buffer contents. Some kind of standard library of common text manipulation functions would also be nice to have, along with some other stuff. Hmm, ideally I'd like to script with Python, thus getting the full power of the Python standard library to operate on Kate buffers. Of course PyKDE could be integrated so that the scripts can pop up simple dialogs (parsed from .ui files) to ask the user simple queries. And so on and so on ad nauseam goes the featuritis...

Don't get me wrong, I think Kate is great, and *no* editor so far does what I want.

Well, I'm an old Emacs user, and I like it the Emacs way, if it wasn't for Elisp. :) These are just things that would be fun to have in Kate.

I don't really know too much about the infrastructure behind KDE scripting, but I've so far really seen no KDE applications use any kind of scripting, so is there any scripting engine or similar in KDE?

I have a few things I'd like to do for Kate, so it's a shame that KDE development is so darn complex, even for someone who has used Qt for years. Every little thing is automagic in some way, and you can't just "add some code" to anything without knowing the whole glorious KDE infrastructure with all the magic bells, whistles and horns. Ok, this is just my personal pet dislike about KDE development. I've tried for years to get into it, but failed every time. There is just too much that you have to know for even the simplest application or fix. :( I don't care about DCOP or some magic config files that somehow get parsed, not magic menus or magic toolbars. Not magic themes nor magic directories with magic resources nor thousands of magic shared libraries all over the place. And docs for KDE3 are pretty rare.

Oh well...

By chakie at Thu, 2002/12/26 - 6:00am

I am curious as to what things you would like scriptable in kate? What scripts do you use in emacs that you would like in kate?

I haven't looked at kate alot, but one of the things I really liked about delphi was the ability to set up small 'scripts' that ran when you typed a sequence of letters and a control sequence. I used to set delphi up so that if I typed 'fori' it would setup a for loop with an i variable as the counter for me, and set the prompt after the 'to' part. I would love something like this for c++
fori results in
for ( i = i; i ; i++)


Little things like this would be nice :)

What types of things do you have emacs doing that you would like to see kate doing? What elisp hacks would you like 'ported'.

Tom h.

By Tom at Fri, 2002/12/27 - 6:00am

I'd like to be able to create functions for common boring things. Like create a method in a class. The function should ask for the name, params, return value etc, and then create the method in the .hh file and add a stub to the .cpp file along with Doxygen comment headers etc. Or create a new class. Or insert some structures for XML. Anything really. I've done a lot of that in Elisp, and it's not fun to maintain and even get to work at all.

But, you don't really need scripting until you're a power user that "lives" in your editor for hours each day.

And not just "hacks". I want to be able to do full programming in a scripting language. Maybe something like Python or Qt Script for Applications would be nice.

By chakie at Fri, 2002/12/27 - 6:00am

It sounds like you are looking for similar things as I am.

I too have similar elisp code that I have gathered from across the internet to do similar things. Unfortunately, I don't grok elisp well, so I can't alter or maintain them. I would love to see something like qtscript or python in there for doing similar stuff.

Other things that come to mind are database operations. ie: building classes or structures from a database. Something like this could be coded in python fairly easily.

I wonder what it would take to do something like this? I haven't looked at the kate code yet. Maybe it is time to check it out.

By Tom at Sat, 2002/12/28 - 6:00am

I think you need a framework for managing and running scripts within Kate (interpreter and script manager), a way for Kate to expose internal structures (from C++) to the scripting language (buffers, settings, project browser) and internal functions (load/save/create buffers, manage menus, keybindings etc). I think some of these things can be done quite automated, but some need a lot of work.

Of course, these are the thoughts of a naive user, and may not apply at all.

By chakie at Sun, 2002/12/29 - 6:00am

You'll be able to do this using KJSEmbed thanks to its KParts::Plugin. The code will be released to CVS this week.


By Richard Moore at Sun, 2002/12/29 - 6:00am

GREAT! I will be taking a look.

Thanks Richard

By Tom at Mon, 2002/12/30 - 6:00am

konqueror preloading works great ! congrats !
(konqui starts in less than 1 second now here instead of 3-4)

By ik at Sat, 2002/12/28 - 6:00am