Bug#406696: closed by "ROBERTOJIMENOCA@terra.es" <ROBERTOJIMENOCA@terra.es> (reply to ROBERTOJIMENOCA@terra.es) (Re: Bug#406696: gedit asks to save even when document is empty)

Frederik Eaton frederik at a5.repetae.net
Sat Jan 13 18:09:31 CET 2007


I just thought it's an easy special case of comparing the current
version and the original version of the file for equality. If the
versions are equal, then why set the "dirty" bit? This bit is unset if
for instance I type a character and then execute "undo", but it
remains set if I type a character and then delete it.

If the document started out empty, and ends up empty, then as a human
user I wonder why I'm being asked to save it. Same if it starts out
with contents A, and ends up with contents A; but I think that the
general case might be harder to implement (although still perhaps
worthwhile).

Perhaps I was unclear but I think your example, where the document
starts out non-empty, and then becomes empty, should be excluded -
i.e. asking to save in that case is quite reasonable since it has
changed.

It's true that for instance emacs behaves the same way. However, I
don't think that all applications should have to change before one can
change.

However, I can understand if this is not a priority for you, and won't
be offended if you close the bug.

Frederik

On Sat, Jan 13, 2007 at 06:18:20AM -0800, Debian Bug Tracking System wrote:
> This is an automatic notification regarding your Bug report
> #406696: gedit asks to save even when document is empty,
> which was filed against the gedit package.
> 
> It has been closed by "ROBERTOJIMENOCA at terra.es" <ROBERTOJIMENOCA at terra.es> (reply to ROBERTOJIMENOCA at terra.es).
> 
> Their explanation is attached below.  If this explanation is
> unsatisfactory and you have not received a better one in a separate
> message then please contact "ROBERTOJIMENOCA at terra.es" <ROBERTOJIMENOCA at terra.es> (reply to ROBERTOJIMENOCA at terra.es) by replying
> to this email.
> 
> Debian bug tracking system administrator
> (administrator, Debian Bugs database)
> 

> From: "ROBERTOJIMENOCA at terra.es" <ROBERTOJIMENOCA at terra.es>
> Subject: Re: Bug#406696: gedit asks to save even when document is empty
> To: 406696-done at bugs.debian.org
> Date: Sat, 13 Jan 2007 15:05:21 +0100 (MET)
> X-Spam-Status: No, hits=-4.1 required=4.0 tests=BAYES_44,HAS_BUG_NUMBER,
> 	RCVD_IN_SORBS,ROBERTOJIMENOCA autolearn=no 
> 	version=2.60-bugs.debian.org_2005_01_02
> X-Spam-Level: 
> 
> I do not see what is the problem with the current behavior.
> 
> Could you send a real use case where the current behavior could be a
> problem instead of the silly one you posted?
> 
> Almost every other application has just the same behavior.
> Are you sure you want to change all the applications to this new behavior?
> 
> Did you consider that also people would like to open a file remove all
> its contents and save an empty file?
> 
> 
> 
> Prueba el correo Terra ( http://www.terra.es/correo ); Seguro, rápido, fiable.
> 


-- 
http://ofb.net/~frederik/




More information about the Pkg-gnome-maintainers mailing list