4coder » Forums » prompt a save file before building
clankill3r
Doeke
25 posts

None

#10646 prompt a save file before building
7 months, 3 weeks ago

In emacs when I press alt + m to build. It prompts me with 'Save file w:/xxx/xxx/xxx.cp? (y, n ...)'.
Now I switched to 4coder I noticed how useful this is. I had several times already I didn't understand the compile errors until I noticed I forgot to save a file.

So I hope this will get in some day.

None
CaptainKraft
Jeremiah
146 posts
2 projects

Father, husband, C programmer, and Linux apologist. Think before you code.

#10656 prompt a save file before building
7 months, 3 weeks ago

clankill3r
In emacs when I press alt + m to build. It prompts me with 'Save file w:/xxx/xxx/xxx.cp? (y, n ...)'.
Now I switched to 4coder I noticed how useful this is. I had several times already I didn't understand the compile errors until I noticed I forgot to save a file.

So I hope this will get in some day.


I've setup my vimrc to always save when I build. I'm curious, do you ever want to build before saving?

Build a man a fire, he'll be warm for a day.
Set a man on fire, he'll be warm for the rest of his life.
clankill3r
Doeke
25 posts

None

#10671 prompt a save file before building
7 months, 3 weeks ago

I've setup my vimrc to always save when I build. I'm curious, do you ever want to build before saving?

Probably not. (As in, I would really like an auto save before build). Maybe there is a case where I don't want a non code file to be saved, but that probably neither.

None
Mr4thDimention
Allen Webster
266 posts
2 projects

Heyo

#10692 prompt a save file before building
7 months, 3 weeks ago

Adding a configuration option for "save all dirty buffers before build" has been on my todo list for a while, but it has never been promoted to the top somehow. I'll get this in in the next build.
Benno
5 posts
#11327 prompt a save file before building
6 months, 1 week ago

Am i missing something or are things like this just not documented anywhere?
I know how its done now since i searched through the code; but are there logs or something?
If you open 4coder you wrote that its in now, but not how to use it.
And you wrote its in the config file, but at least the method i use has to be declared in the
project file.

This is no hate; id just like to know if im missing something.

For anyone who wants to know how it works, or at least one way of doing it:
add a forth argument to the fkey commands

example:
fkey_command_linux[1] = {"./build.sh", "*compilation*", true, true};
Mr4thDimention
Allen Webster
266 posts
2 projects

Heyo

#11330 prompt a save file before building
6 months, 1 week ago

You're not missing anything Benno, the documentation is not spectacular. I try to make up for it by being quick to respond to emails with questions, so you can ask as [email protected] next time something you need isn't clear enough.
Benno
5 posts
#11333 prompt a save file before building
6 months, 1 week ago

ok thanks for the info.