Discussion:
[ jEdit-devel ] [jedit:patches] #596 #501 Auto-save untitled buffers - patch
(too old to reply)
Hrotkó Gábor
2017-02-17 17:34:52 UTC
Permalink
---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Fri Feb 17, 2017 05:34 PM UTC
**Owner:** nobody
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-03-19 20:53:15 UTC
Permalink
- **assigned_to**: Alan Ezust
- **Group**: -->



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Fri Feb 17, 2017 05:35 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-03-27 23:23:32 UTC
Permalink
- **status**: open --> pending-rejected
- **Comment**:

I tried applying the patch to the svn trunk but it did not apply cleanly for MiscUtilities.java.
Can you please try to freshen the patch to the latest SVN? I like your ideas.




---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** pending-rejected
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Sun Mar 19, 2017 08:53 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Hrotkó Gábor
2017-03-31 15:28:17 UTC
Permalink
Please find the updated patch against rev. 24670 attached.


Attachments:

- [saveUntitled_170331.patch](https://sourceforge.net/p/jedit/patches/_discuss/thread/a58d230b/589f/attachment/saveUntitled_170331.patch) (21.7 kB; text/x-patch)


---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** pending-rejected
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Mon Mar 27, 2017 11:23 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-08 14:45:19 UTC
Permalink
Just tried this verison of the patch. it does not apply cleanly either :-(



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Mon May 08, 2017 01:18 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Hrotkó Gábor
2017-05-05 19:44:22 UTC
Permalink
Hi Alan,

can you review my patch? I could promote jedit with more success by this feature.
By the way, I use the version with this path for months without any issue.

Thanx!


---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** pending-rejected
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Fri Mar 31, 2017 03:28 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-05 20:40:08 UTC
Permalink
I am so sorry for not getting around to this!! I do plan to put it into
jEdit but I've been away from my home development box for a couple of
weeks. I will be home next week and then I am away for 2 more weeks.
I will try extra hard to get it into the svn trunk next week.

thanks again for your contribution!!
Post by Hrotkó Gábor
Hi Alan,
can you review my patch? I could promote jedit with more success by this feature.
By the way, I use the version with this path for months without any issue.
Thanx!
---
** [patches:#596] #501 Auto-save untitled buffers - patch**
**Status:** pending-rejected
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Fri Mar 31, 2017 03:28 PM UTC
**Owner:** Alan Ezust
**Attachments:**
- [saveUntitled.patch](https://sourceforge.net/p/jedit/
patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)
I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working
like described in the feature request.
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to
<jedit_settings_dir>/autosave, and reloaded after a restart (the state
persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file
Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!
---
Sent from sourceforge.net because you indicated interest in <
https://sourceforge.net/p/jedit/patches/596/>
To unsubscribe from further messages, please visit <
https://sourceforge.net/auth/subscriptions/>
---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** pending-rejected
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Fri May 05, 2017 07:44 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-08 13:18:40 UTC
Permalink
- **status**: pending-rejected --> open



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Fri May 05, 2017 07:44 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Hrotkó Gábor
2017-05-09 09:57:19 UTC
Permalink
This is against 24674, and I tested it also.


Attachments:

- [saveUntitled_24674.patch](https://sourceforge.net/p/jedit/patches/_discuss/thread/a58d230b/9c3e/attachment/saveUntitled_24674.patch) (21.0 kB; text/x-patch)


---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Mon May 08, 2017 01:18 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-09 16:40:53 UTC
Permalink
That applies cleanly and I am testing it now.


---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Tue May 09, 2017 09:57 AM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-09 17:24:10 UTC
Permalink
I like it! And it makes my feature "never mark untitled buffers dirty" totally obsolete, since the main reason I put that in was so I could exit without worrying about dirty untitled buffers. I guess I will have to remove that before the next release.



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Tue May 09, 2017 09:57 AM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-09 17:49:13 UTC
Permalink
Testing it with Editpane Scope Buffersets, there is an inconsistency. This is not going to cause me to lose sleep over, but it is something...

If I close the dirty untitled-1 buffer from view#1, the only view that has it open, I am asked if i want to save the untitled buffer. But if I close view#2 with an untitled-2 buffer that is not open in view#1, it does not ask me to save, and the contents are lost. If later, I create a new untitled-2 buffer, it is empty.




---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Tue May 09, 2017 05:24 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Hrotkó Gábor
2017-05-13 21:04:52 UTC
Permalink
I added a simple solution for this:
When you have more than one view opened, and close a view with untitled buffers:
all of it's untitled buffers will be moved to the first or last opened view's active editpane's bufferset.
Works fine, no untitled buffer will be lost. Also for EditPane and View scopes.
I think the help also should be updated with these infos.


Attachments:

- [saveUntitled_24674_01.patch](https://sourceforge.net/p/jedit/patches/_discuss/thread/a58d230b/8ef1/attachment/saveUntitled_24674_01.patch) (21.6 kB; text/x-patch)


---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Tue May 09, 2017 05:49 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-13 21:33:07 UTC
Permalink
Oh I like your solution very much. Elegant.



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** open
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Sat May 13, 2017 09:04 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-13 21:39:01 UTC
Permalink
- **status**: open --> closed-accepted
- **Comment**:

Committed revision 24675.
Thanks for your contribution!




---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** closed-accepted
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Sat May 13, 2017 09:04 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-05-31 14:43:07 UTC
Permalink
Hrotkó,

I just made some changes to where autosave files are saved, and I broke and then fixed the restoring of dirty untitled buffers. However, the restoring process is not 100% correct yet - the path of the untitled buffer after restoring it, points to a location in the backup directory when we want it to point to the original path of the untitled buffer. Please update to the latest svn or daily build and test it. I will keep testing and working on it too, but if you notice something you can fix, please let me know.

--Alan



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** closed-accepted
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Sat May 13, 2017 09:39 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Hrotkó Gábor
2017-06-01 21:03:55 UTC
Permalink
Are you testing it with a clean new settings dir? I tested with new settings dir, and it works. I think it should work like this, because this feature is not released yet.


---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** closed-accepted
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Wed May 31, 2017 02:43 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-06-01 21:13:56 UTC
Permalink
The problem is the location of new untitled buffers is not being set correctly anymore.
When I create a new untitled buffer, it should create it at the location of the current buffer's directory.
This seems to be related to your code, when combined with my even-more recent changes.




---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** closed-accepted
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Thu Jun 01, 2017 09:03 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Alan Ezust
2017-06-03 23:27:26 UTC
Permalink
- **status**: closed-accepted --> pending-remind



---

** [patches:#596] #501 Auto-save untitled buffers - patch**

**Status:** pending-remind
**Group:**
**Labels:** untitled autosave
**Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor
**Last Updated:** Thu Jun 01, 2017 09:13 PM UTC
**Owner:** Alan Ezust
**Attachments:**

- [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch)


I created a patch for the feature request: "#501 Auto-save untitled buffers".
Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request.
My patch extends this feature, when "Autosave untitled buffers" checked (default):
- the untitled buffers will be autosaved when closing jedit, without a question prompt
- the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml)
- closing an untitled buffer by hand removes the autosave file

Tested on windows7 and linux also.
The patch is against revision 24609.
Please review.
Thanks!


---

Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Loading...