|
From: SourceForge.net <no...@so...> - 2008-06-05 06:45:38
|
Bugs item #1984000, was opened at 2008-06-04 01:51 Message generated for change (Comment added) made by kpouer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1984000&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: editor core Group: Regressive (new to devel) Status: Closed Resolution: Fixed Priority: 9 Private: No Submitted By: Jakub Roztocil (oswaldcz) Assigned to: Nobody/Anonymous (nobody) Summary: Untitled buffer is lost after C+n Initial Comment: When I'm editing an untitled buffer and call File > New, the edited buffer is lost from the buffer list. jEdit SVN revision 12783 ---------------------------------------------------------------------- >Comment By: Matthieu Casanova (kpouer) Date: 2008-06-05 08:45 Message: Logged In: YES user_id=285591 Originator: NO Before the bufferSet api, here is how jEdit was doing : if you have 2 or more buffers, pressing ctrl+N always create a new empty buffer if you have 1 buffer, if it is clean and unnamed, it was closed and immediately recreated I think there is a reason for that : if you press ctrl+N in another directory it can be a wanted behavior to open a new untitled buffer in that directory to replace the previous one. And that's right that pressing ctrl+N when we have only one untitled clean buffer should not change it's number, I will open a new bug in the tracker for that ---------------------------------------------------------------------- Comment By: Dale Anson (daleanson) Date: 2008-06-05 04:48 Message: Logged In: YES user_id=187628 Originator: NO I disagree. Ctrl-N should always make a new buffer. I don't want to hunt in a list for the empty one, if there is one. I'm okay with there being more than one empty, untitled buffer. ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2008-06-05 01:49 Message: Logged In: YES user_id=935841 Originator: NO if you have an untitled buffer that is not dirty, it must be empty, which means, there is already a new buffer. perhaps ctrl-N should do nothing under such a situation? ---------------------------------------------------------------------- Comment By: Jakub Roztocil (oswaldcz) Date: 2008-06-05 00:43 Message: Logged In: YES user_id=1504176 Originator: YES Thanks for the fix! The handling of untitled buffers is still a little strange (probably not bufferSets related issue), though. When you close all buffers and have only the default "Untitled-1" buffer opened, then the C+n changes the name of the buffer to "Untitled-2" (3, 4, ...), but in the buffer list is visible only the last one. When you save or make the "Untitled-1" buffer dirty, then the New file action always creates new buffer, which also appears in the buffer list. ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2008-06-05 00:03 Message: Logged In: YES user_id=285591 Originator: NO Hi, it is fixed in the trunk now, thanks for testing the bufferSet feature ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1984000&group_id=588 |