-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignoring Emacs' lock files: .#file.go
#40
Comments
Thanks for notifying me about the issue. I only use Sublime Text these days and didn't know about the Emacs behavior. I wonder how many people couldn't use Sounds vaguely related to #32, in the sense that both issues can be generalized to supporting patterns (such as glob patterns) for watch and ignore paths. I even have a tentative local implementation using I'm unfamiliar with Emacs and can easily miss things. Would you care to explain where it creates temporary files and what are the rules for file names? |
I was somewhat wrong. It's a broken symlink, used as a lock: https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html
So a file name Emacs' auto-save files for file |
.#file.go
.#file.go
I'm considering mirroring
|
Using For the convenience flag, couldn't this just be a
I'm in big favor of using the gitignore syntax in a file, rather than a command line flag, though. (I realize I could write a shell script, but meh. :) |
It sounds like you want generated Go files to trigger We could support a flag for custom paths to gitignore files. We could also generalize and support |
That's one way of doing configuration files. The other is to split it up and use already-established file formats for specific tasks, like ignore-patterns. This is what Git does, and since it sounded like you wanted to be Git-compatible, I suggested ignore files in the XDG config directory as the "global" setting. If you're reading |
If you are not using simultaneous editing, you can disable file locking feature: (setq create-lockfiles nil) |
Emacs writes a temporary file as soon as you start editing a file. When you hit save, it removes the temporary file.
This triggers
gow
, since the extension is still.go
. It's a bit ugly, though perhaps not the end of the world.To avoid flag chaos, I think reading patterns from a file is probably nicest, but I could imagine using
.gitignore
-style patterns fits more withgow
s current style.Would you be open to an ignore prefix flag, an ignore pattern [1] flag, or perhaps reading a
.gowignore
file?And thanks for writing
gow
! It replaces aninotifywatch | while read; go make ; done
loop I've used previously. Much neater.The text was updated successfully, but these errors were encountered: