Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Seg. Fault with 9pserve on MacBook Pro M1 HOT 3
- nfs over tcp support for vnfs
- more threadmaybackground needed
- ACME: per-window environment variables HOT 2
- Unable to install on debian HOT 6
- devdraw: Cursor reverts to macOS default on MacBook with notch
- Cant use 9l -- ld cannot find -l9 HOT 4
- libbio brdline error handling
- sam: regexp match issue
- acme -a, on MacOS, is unresponsive after changing window size
- can't pass both -b/-c and -r to INSTALL
- can not build under gcc-less linux HOT 4
- 9pfuse not working on Mac OS Sonoma
- Belorussian link does not work HOT 2
- No pointer warping in acme in virtual Fedora 39
- Issue triage
- 9pserve: msize not optimal
- Build fails with LTO HOT 3
- kcmp in cmd/sort.c conflicts with FreeBSD system header file HOT 1
- Acme cannot navigate directories or open files within itself. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plan9port.