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

None

#10646 prompt a save file before building
5 months, 2 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
143 posts
2 projects

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

#10656 prompt a save file before building
5 months, 2 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
24 posts

None

#10671 prompt a save file before building
5 months, 2 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
252 posts
2 projects

Heyo

#10692 prompt a save file before building
5 months, 2 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
4 posts
#11327 prompt a save file before building
4 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
252 posts
2 projects

Heyo

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

Benno
4 posts
#11333 prompt a save file before building
4 months, 1 week ago

ok thanks for the info.