From: Robert W. V. <bo...@di...> - 2004-10-29 18:21:33
|
Hi, I changed the default behaviour of backups so that instead of appending a tilde to the filename, it prepends "backup." There are various advantages to this, all based upon the fact that files' extensions are used in various ways by various programs, and by changing the extension on the backup, you lose all that functionality for the backup. But, I just changed to use multiple backups as well. This makes a number get stuck on the end of the backup filename. There seems to be no way to configure it not to do so. Therefore it breaks the various functionality, just like putting a tilde on the end would. Could this behaviour please be made configurable? Thanks, Bob Vesterman. |
From: Randall R S. <rs...@so...> - 2004-10-29 19:09:51
|
Bob, On Friday 29 October 2004 11:21, Robert William Vesterman wrote: > Hi, > > I changed the default behaviour of backups so that instead of > appending a tilde to the filename, it prepends "backup." There are > various advantages to this, all based upon the fact that files' > extensions are used in various ways by various programs, and by > changing the extension on the backup, you lose all that functionality > for the backup. I'm curious where you put your backup files. If they're in the same directory as the original, they're Java source and you're compiling with Ant, then they'll get compiled along with the originals, which almost certainly a bad thing. I keep my jEdit backups in a wholly separate directory tree. When I want to put a Java source file "on hold" but not remove it outright or even relocate to another directory, I rename it to have the suffix ".jsrc" to keep it from being compiled. > ... > > Thanks, > > Bob Vesterman. Randall Schulz |
From: Robert W. V. <bob...@ve...> - 2004-10-29 19:38:10
|
I also keep my backups in a totally distinct directory tree (via the "Backup directory" option under "Utilities/Global Options/Autosave & Backup"). I do so not for the purpose you cite (to avoid Ant compiling old Java source), but just because it clears up on clutter. But then, on the occasions when I want to look at a backed up copy, I still want to see it syntax colored correctly (for example), which doesn't happen when the file extension has been altered. -----Original Message----- From: jed...@li... [mailto:jed...@li...]On Behalf Of Randall R Schulz Sent: Friday, October 29, 2004 3:10 PM To: jed...@li... Subject: Re: [ jEdit-users ] Multiple backups - don't change file extension Bob, On Friday 29 October 2004 11:21, Robert William Vesterman wrote: > Hi, > > I changed the default behaviour of backups so that instead of > appending a tilde to the filename, it prepends "backup." There are > various advantages to this, all based upon the fact that files' > extensions are used in various ways by various programs, and by > changing the extension on the backup, you lose all that functionality > for the backup. I'm curious where you put your backup files. If they're in the same directory as the original, they're Java source and you're compiling with Ant, then they'll get compiled along with the originals, which almost certainly a bad thing. I keep my jEdit backups in a wholly separate directory tree. When I want to put a Java source file "on hold" but not remove it outright or even relocate to another directory, I rename it to have the suffix ".jsrc" to keep it from being compiled. > ... > > Thanks, > > Bob Vesterman. Randall Schulz ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click -- ----------------------------------------------- jEdit Users' List jEd...@li... https://lists.sourceforge.net/lists/listinfo/jedit-users |
From: Randall R S. <rs...@so...> - 2004-10-29 19:57:48
|
Bob, On Friday 29 October 2004 12:38, Robert William Vesterman wrote: > I also keep my backups in a totally distinct directory tree (via the > "Backup directory" option under "Utilities/Global Options/Autosave & > Backup"). > > I do so not for the purpose you cite (to avoid Ant compiling old Java > source), but just because it clears up on clutter. Of course. For the same reason, I cannot stand having ".class" files in the same directory as the source files. > But then, on the occasions when I want to look at a backed up copy, I > still want to see it syntax colored correctly (for example), which > doesn't happen when the file extension has been altered. Not necessarily. You can, as I do, add ".jsrc" to the list of suffixes to which the Java highlighting is applied. Randall Schulz |
From: Robert W. V. <bob...@ve...> - 2004-10-29 20:38:21
|
>Not necessarily. You can, as I do, add ".jsrc" to the >list of suffixes to which the Java highlighting is applied. Well, yeah, but I write in a lot more languages than Java, and keep 37 backups of each file, so I would have to add "cpp1", "cpp2", ..., "cpp37", "c1", "c2", ..., "c37", "tal1", "tal2", ..., "tal37", "rb1", "rb2", ..., "rb37", "h1", "h2", ..., "h37", and a bunch more. Plus, even if I do all of that, it only resolves the issue for syntax coloring. There are other issues associated with changing an extension. -----Original Message----- From: jed...@li... [mailto:jed...@li...]On Behalf Of Randall R Schulz Sent: Friday, October 29, 2004 3:58 PM To: jed...@li... Subject: Re: [ jEdit-users ] Multiple backups - don't change file extension Bob, On Friday 29 October 2004 12:38, Robert William Vesterman wrote: > I also keep my backups in a totally distinct directory tree (via the > "Backup directory" option under "Utilities/Global Options/Autosave & > Backup"). > > I do so not for the purpose you cite (to avoid Ant compiling old Java > source), but just because it clears up on clutter. Of course. For the same reason, I cannot stand having ".class" files in the same directory as the source files. > But then, on the occasions when I want to look at a backed up copy, I > still want to see it syntax colored correctly (for example), which > doesn't happen when the file extension has been altered. Not necessarily. You can, as I do, add ".jsrc" to the list of suffixes to which the Java highlighting is applied. Randall Schulz ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click -- ----------------------------------------------- jEdit Users' List jEd...@li... https://lists.sourceforge.net/lists/listinfo/jedit-users |
From: Steve J. <ste...@wi...> - 2004-10-29 21:02:18
|
On 29-Oct-04, at 4:38 PM, Robert William Vesterman wrote: > Well, yeah, but I write in a lot more languages than Java, and keep 37 > backups of each file, so I would have to add "cpp1", "cpp2", ..., > "cpp37", > "c1", "c2", ..., "c37", "tal1", "tal2", ..., "tal37", "rb1", "rb2", > ..., > "rb37", "h1", "h2", ..., "h37", and a bunch more. 37 backups? Ouch! I've got 3 words for you: "source code repository" You may want to check out (pun intended) CVS: http://www.cvshome.org ... or Subversion: http://subversion.tigris.org Steve Jakob |
From: Randall R S. <rs...@so...> - 2004-10-29 21:34:52
|
Robert, On Friday 29 October 2004 13:38, Robert William Vesterman wrote: > >Not necessarily. You can, as I do, add ".jsrc" to the > >list of suffixes to which the Java highlighting is applied. > > Well, yeah, but I write in a lot more languages than Java, and keep > 37 backups of each file, so I would have to add "cpp1", "cpp2", ..., > "cpp37", "c1", "c2", ..., "c37", "tal1", "tal2", ..., "tal37", "rb1", > "rb2", ..., "rb37", "h1", "h2", ..., "h37", and a bunch more. You misunderstand me. I'm not trying to convince you that your change request is unnecessary. I'm just pointing out that my technique of putting a Java source file into abeyance by altering its suffix and still getting syntax highlighting by adding that alternate suffix to the list of those given the Java syntax treatment is adequate for my own purposes. In fact, I so rarely need my jEdit backups that I rarely even think of them. Hmmm... I currently have 248 such files across 22 directories occupying 4348 Kbytes in my ~/.je_bkup directory. I wonder what's all in there? > Plus, even if I do all of that, it only resolves the issue for syntax > coloring. There are other issues associated with changing an > extension. Randall Schulz |