Public bug reported: Binary package hint: gedit
I was writing a few plugins for gedit using the python bindings and I found some incorrect behaviour with the 'saving' signal generated by Gedit Documents In particular, I was trying to extract the language id of the document at the time it was being saved, and this information was unavailable. However, if the file has already been saved, gedit correctly reports the language id, the reason for this behaviour is that on new files gedit has no way of knowing what language is being used, however when you save a file to harddisk gedit uses the filename extension (since this works even for empty files) to determine the file type and therefore the language. This information should be available when the saving signal is generated, since the filename is known before the file is actually written to disk. i could add a parser to retreive the language from the filename my self, but this would probably duplicate work since gedit must have a way to determine that already. ProblemType: Bug Architecture: i386 Date: Wed Jun 6 01:36:12 2007 DistroRelease: Ubuntu 7.04 ExecutablePath: /usr/bin/gedit Package: gedit 2.18.1-0ubuntu1 PackageArchitecture: i386 ProcCmdline: gedit header.py ProcCwd: /home/alex/.gnome2/gedit/plugins ProcEnviron: SHELL=/bin/bash PATH=/home/alex/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_US.UTF-8 SourcePackage: gedit Uname: Linux cardamomo 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007 i686 GNU/Linux ** Affects: gedit (Ubuntu) Importance: Undecided Status: Unconfirmed -- wrong behaviour of GeditDocument 'saving' signal https://bugs.launchpad.net/bugs/118912 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug contact for gedit in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs