On Sat, Dec 11, 2010 at 10:15:09PM +0000, Philip Hudson wrote: > When I M-x save a link (or `s'), and the link points to file > `foo.el', I am prompted to save a file named `foo.html'. How come? >
There's an open bug report: http://bugs.conkeror.org/issue126 At the point when the filename suggestion is computed, Conkeror only knows the url, not the mime type of the document it points to. Compared to, say, Firefox, Conkeror has a delightfully modular design in its prompting system: prompting is done by a separate subsystem from downloading. Contrast to Firefox where these two actions are jumbled up into the same procedures. Conkeror's modularity usually works to its great benefit, but in this specific case it becomes a drawback because Conkeror is not pre-fetching the file to check its mime-type. Without knowing the mime-type, it raises the conflict, how do you know which extensions to keep, and which to replace by ".html". For example, if the extension is ".php", ".aspx", or ".shtml", you almost certainly want to replace it with ".html". Conkeror takes that as the base case, which makes downloading a ".el" file, for example, less convenient. So that is the state of things. I'm quite certain there is room for improvement, but I believe the final solution won't sacrifice our nicely designed modularity just for the sake of a little DWYM sugar. -- John Foerch _______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
