News for hackers. Stuff that matters.
Re:Compiler Errors for Humans (2015) by masklinn on Thursday November 24, 2022 @04:29PM (#33736450)
> The editor should try to find if 'file:5' exist and open it if so, if it doesn't it should try to open 'foo' and then go to line 5.

Opening a file is often done in creation, and `file:5` is a perfectly valid filename, so it's a bit debatable for a default.

OTOH in Emacs you should be able to define a find-file-not-found-functions hook[0] and implement whatever fallback you want. I assume `emacs <file>` calls `find-file` after it's initialised the editor itself.

[0] https://www.gnu.org/software/emacs/manual/html_node/elisp/Vi...

Re:Compiler Errors for Humans (2015) by renox on Thursday November 24, 2022 @05:11PM (#33736816)
> Opening a file is often done in creation, and `file:5` is a perfectly valid filename, so it's a bit debatable for a default

You're right, but even as an option I think it'd be nice.

Re:Compiler Errors for Humans (2015) by Measter on Friday November 25, 2022 @06:14AM (#33741310)
> Opening a file is often done in creation, and `file:5` is a perfectly valid filename, so it's a bit debatable for a default.

It gets even more fun on Windows! Giving a filename of `foo:5` can result in a file called `foo` with an alternate datastream called `5`.