Giter Site home page Giter Site logo

Comments (7)

bopwerks avatar bopwerks commented on July 22, 2024

You're spending hours editing an unnamed file, and never saving your work?
That seems to be a personal habit problem, not an editor problem.
Nevertheless, it should be easy enough to modify acme to post a message
when you try to close an unnamed file. Just don't expect anyone else to
solve a problem they don't have...Jesse

On Thu, May 21, 2015 at 6:41 PM Roger Peppe [email protected]
wrote:

Writing in deep frustration because I accidentally closed
a window and lost hours of work. This has happened before.

Under Ubuntu at any rate, closing an acme window
does not dump current state to $HOME/acme.dump. It should.


Reply to this email directly or view it on GitHub
#30.

from plan9port.

anths avatar anths commented on July 22, 2024

That's a remarkably unhelpful and uninformed response. Acme, on all its platforms, has long created a $home/acme.dump file when it terminates unexpectedly. What rog is reporting is clearly a bug in existing functionality. Note that this has nothing to do with getting "acme to post a message" - Rog isn't closing a file, and the whole point is that acme's no longer around to do any such thing. I suggest you take a look at the existing acme.dump functionality before going farther.

from plan9port.

anths avatar anths commented on July 22, 2024

Rog: does an explicit Dump work, without arguments? I was surprised to see p9p acme always consults $HOME, never $home; could your environment be mismatched?

Beyond that: rowdump calls warning(), but the normal mechanics for getting them printed is gone in the event of a shutdown. Have warnings() print the message it's given. Also, slightly worrying that thread(3) says "The implementation of threadnotify may not be correct.".

from plan9port.

paulzhol avatar paulzhol commented on July 22, 2024

I'm using Dump without arguments to save my workspace and font settings all the time, I didn't even know it was supposed to do that in case of a crash. Is it supposed to catch SIGSEGV and SIGABRT?

from plan9port.

bopwerks avatar bopwerks commented on July 22, 2024

Rog didn't say that acme crashed. He said he accidentally closed an unnamed window that he was working in. Or did he mean he closed acme altogether?

from plan9port.

rogpeppe avatar rogpeppe commented on July 22, 2024

I don't believe I said anything about an "unnamed" window. Anthony has the
scenario right. I fumbled the mouse and closed the main acme window by
mistake. Under plan 9, that causes an automatic dump, the same as if acme
is killed. Under my system it does not. Dump does work fine for me BTW.

Can others confirm that this is the case for them too please?

Jesse, to address your original point, I actually do believe that the user
should not be responsible for periodically remembering to push the save
button. That's something that computers are excellent at, and at least
this particular fallible human is not, and I wish acme had this feature.
But that is an orthogonal issue to this one.
On 22 May 2015 23:08, "Jesse Engle" [email protected] wrote:

Rog didn't say that acme crashed. He said he accidentally closed an
unnamed window that he was working in. How is that a bug?


Reply to this email directly or view it on GitHub
#30 (comment).

from plan9port.

anths avatar anths commented on July 22, 2024

I'm seeing the same thing, on OS X My memory says I've seen acme.dump files auto-generated on p9p in the past, but it's been wrong before. I did a few tests, and it doesn't look to me like shutdown() is ever getting called. I'd want to poke at threadnotify() more (but I have a deadline tomorrow!).

from plan9port.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.