gedit does not save to a new file if other program changed the file

Bug #112575 reported by jdo
2
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Medium
gedit (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

If a text file is open in gedit, and that text file has been altered by another program (e.g. a search and replace program), then gedit can load the new content, or keep the current content. In both ways some valueable changes to the text could be thrown away. So I decided to save the content of the gedit editor to a new file, so I can compare them with a diff program like kdiff3. But saving in such a situation is not possible, and no error messages is shown either.

Test:
1. Create a text file with some text, close gedit.
2. Open the text file with gedit, leave it as it is, or make some changes.
3. Open the same text file with another program (mc, mousepad, etc.), and make some changes in it and save it.
4. Select the gedit window, a yellow bar is shown that something has chanched.
5. Try to save the content of gedit to a new file with different name or the same name in a other folder, or create in the "save as.." box a new folder and save it there.
6. See if you can find the just saved file. It's nowhere!

kind regards,
jdo

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=439184

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Confirmed
Changed in gedit:
status: Unknown → Unconfirmed
Changed in gedit:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug has been fixed upstream now

Changed in gedit:
status: Confirmed → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the bug:

 gedit (2.19.2-0ubuntu1) gutsy; urgency=low
 .
   * New upstream version:
     New Features and Fixes
     - Many improvements and fixes to the snippets plugin, in particular
       support regex substitution inside snippet placeholders
     - Add a Document::save signal to notify the start of the saving
       operation (LP: #118912)
     - Adapt to latest GtkSourceView API changes
     - Misc Bugfixes
     - Remove Syntax Highlighting configuration from the preference dialog
       since it was a pain to use and needs to be rethought to support
       gtksourceview 2 style schemes.
   * debian/control.in:
     - updated pygtksourceview requirements
   * debian/patches/01_lpi.patch,
     debian/patches/90_autoconf.patch:
     - updated

Changed in gedit:
status: Fix Committed → Fix Released
Changed in gedit:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.