LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 05-15-2014, 10:28 AM   #1
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Rep: Reputation: 35
gedit a la Windows


I found a "feature" that is very annoying in "Gedit" which comes with Debian 7.
If you open a file with Gedit and then make changes to it, then try to change the file name by one letter before saving it, it makes an archive of your new file. I suspect it would do so even if you changed the name completely although I do not have the time to try that.

I found the only way to avoid this was to copy and paste the contents to a new "unsaved document" and make the changes before renaming and saving it .

If somebody think I am missing something, I am ready to apologise to "Gedit" maintainers but I just cannot understand why these people want to do things "behind your back, a la Windows" as if they know better than you what you need or want.
 
Old 05-15-2014, 01:24 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,642

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Define 'archive'
 
Old 05-15-2014, 01:25 PM   #3
ondoho
Member
 
Registered: Dec 2013
Distribution: arch linux / crunchbang
Posts: 887

Rep: Reputation: 130Reputation: 130
Quote:
Originally Posted by rblampain View Post
change the file name by one letter before saving it, it makes an archive of your new file.
i don't understand this.
what letter? what sort of archive? a compressed archive or what? a backup copy?
 
Old 05-15-2014, 08:46 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,715

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
I'm guessing OP means a backup copy, for example, if you are editing foo, it creates foo~.

OP, on the menu, go to Edit-->Preferences-->Editor. At least on v. 3.8.3, you can turn that behavior off in the Editor dialog.
 
Old 05-15-2014, 11:34 PM   #5
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
Thank you for your comments.
To AlucardZero: it is obvious this is not a question, it is a statement, therefore I am not asking for "an answer", I have the answer as I explained in my post and it is good enough for my needs.

To ondoho: the archive I am talking about is an archive, not a backup (an archive is an archive), it needs to be "unpacked" or "extracted", it is a "compressed" archive, not a backup copy that adds "~" at the end of the name of the file and it does not matter what letter is changed as it makes it a different file name.

I also found "cp" does the same thing, at least on my machine, it may not be a purely "Gedit" feature after all. I do not have enough experience to investigate.

My only wish is that this could be sorted out by "hackers" (in the good sense of the word) who like, or feel a need, to investigate those problems and improve something for the Linux community as I am sure I am not the only one to have that behaviour and many who have it may silently put up with it with a disgruntled view of Linux or Debian. We also have to remember Debian bases its reputation on stability and although this is not "unstable", it is an unwanted feature.

It seems to me "Gedit" and "Bash" (in my case) are using a common application (Gnome ?) that has this "feature" (again I am not experienced enough to give a better explanation of what I found).
The problem is repeatable (It does it every time).
Platform:
Debian 7 (from DVD's, unaltered, no modifications applied, installed and used "straight out of the box")
Gnome 1:3.4+7
Bash 4.2+dfsg-0.1
Gedit 3.4.2-1

Last edited by rblampain; 05-15-2014 at 11:37 PM. Reason: Clarity
 
Old 05-16-2014, 03:21 AM   #6
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Rep: Reputation: 294Reputation: 294Reputation: 294
Hi there,

Quote:
Originally Posted by rblampain View Post
To AlucardZero: it is obvious this is not a question, it is a statement, therefore I am not asking for "an answer", I have the answer as I explained in my post and it is good enough for my needs.
and all he did was ask you to clarify what you meant by "archive", because that's a very generic term.

Quote:
Originally Posted by rblampain View Post
To ondoho: the archive I am talking about is an archive, not a backup (an archive is an archive), it needs to be "unpacked" or "extracted", it is a "compressed" archive, not a backup copy that adds "~" at the end of the name of the file and it does not matter what letter is changed as it makes it a different file name.
So not the usual backup copy, okay. Because that's what I guessed, too, from your terse description. So the counter question stands: What archive - tar, gz, rar, zip, anything else?

Quote:
Originally Posted by rblampain View Post
I also found "cp" does the same thing, at least on my machine, it may not be a purely "Gedit" feature after all. I do not have enough experience to investigate.
But you really should, because oviously there's something very, very weird going on. I've never heard of a system creating archives just like that without explicitly being instructed to.

Quote:
Originally Posted by rblampain View Post
My only wish is that this could be sorted out by "hackers" (in the good sense of the word) who like, or feel a need, to investigate those problems and improve something for the Linux community as I am sure I am not the only one to have that behaviour and many who have it may silently put up with it with a disgruntled view of Linux or Debian. We also have to remember Debian bases its reputation on stability and although this is not "unstable", it is an unwanted feature.
It's okay to call for other people's help if you can't sort out the problem on your own. But since it is so out-of-place, you have to give more details. Like, what kind of archive, under what circumstances, what operations are affected. We don't have a lose end yet to pull at.

Quote:
Originally Posted by rblampain View Post
It seems to me "Gedit" and "Bash" (in my case) are using a common application (Gnome ?) that has this "feature" (again I am not experienced enough to give a better explanation of what I found).
Neither gedit nor bash actually interact with Gnome (which is not an application, but the entire desktop environment, and gedit is a component of it).

Quote:
Originally Posted by rblampain View Post
Platform:
Debian 7 (from DVD's, unaltered, no modifications applied, installed and used "straight out of the box")
Gnome 1:3.4+7
Bash 4.2+dfsg-0.1
Gedit 3.4.2-1
And there must be some other package(s) involved, because gedit or bash don't usually do what you describe. Maybe some shrewd backup software that monitors changes in the file system and creates archives of files before they're changed, so you can roll back the previous state. I don't know, but there has to be something like that.

[X] Doc CPU
 
1 members found this post helpful.
Old 05-16-2014, 09:58 AM   #7
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
What I was trying to do was to copy a file to a new one so that I could make changes to the copy, not the original. This is something I have been doing for more than 10 years so it cannot be assumed I did not know what I was doing. To my surprise, when I tried to open the copy in Gedit, it showed the archive (as the box icon of an archive) and asked if I wanted to extract there (in that directory). This is a directory containing less than a dozen files and in which I have been working for a month or so now, so I am very familiar with its contents.
I thought I had done something wrong and I tried again after deleting the archive but the result was the same.
When you try to edit files, the automatic backups are normally not accessible unless you specify the tilde (~) at the end of the file name.
I admit it is a very weird experience and if nobody else has had the same problem it is probably better we do not spend any more time on this, I will however return if I get the same problem again. If not, it was probably some odd behaviour that got cleared up with a reboot because I turn the machine off every day, I have occasional strange behaviour because of a faulty satellite internet modem I cannot get repaired but I have never thought it could create such bizarre situation. We'll see what happens.
 
Old 05-17-2014, 12:57 AM   #8
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
It behaves normally now, I do not believe in the supranatural but this looks very much like one of its manifestation.

The strange behaviour I was talking about in my previous post never included crashes, just weird and bizarre things.

About 18 months ago, it was found on LQ my satellite modem has 2 internal addresses which do not communicate properly all the time creating connections with thousands of errors and a need to reboot sometimes, especially when the Internet connection is lost, which happens every day if I leave the machine on overnight. I should remember that faulty gadget when I have a problem like the one leading to my original post.

I do not think we can blame the quality of the laptop as it is an "Asus" which is renowned for the quality of its products.

Thank you all for your participation and reinforcing the fact this was not normal.

Last edited by rblampain; 05-17-2014 at 12:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] help with Gedit Gregg Bell Linux - Newbie 11 03-08-2014 07:48 PM
Gnome 3, Gedit 3.0.5, when I open file with gedit, it created one more unneeded tab Mr. Alex Linux - Software 1 06-18-2011 07:58 AM
Using Gedit on windows no spell check languages dasy2k1 General 0 08-02-2010 03:35 PM
[SOLVED] GEdit: text-files' compatibility with Windows - settings question GrubbySeismic Linux - Desktop 3 06-11-2010 12:13 PM
gedit fakie_flip Linux - Software 1 08-17-2006 10:52 PM


All times are GMT -5. The time now is 11:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration