>>>>> Eli Zaretskii writes: […] > Similarly, eww's job is to find and visit a URL, which includes > processing file:// URLs, and that functionality should always be in > the function, not in any hook. file: URIs’ processing is the responsibility of url-file.el. There’s nothing in ‘eww’ which ever deals with such URIs, – /except/ for a simple guard which tells: “if it begins with ‘file:/’, do /not/ never, ever mangle it.” Personally, I’d rather appreciate having such a guard for https: and http: URIs at the least, – if only for the sake of consistency. […] > To _override_ behavior, we provide function variables that get used > _instead_ of the default. Like indent-region-function, for example. > So in that case, you'd need to make 'eww' call the value of > eww-mangle-uri-function, whose default value is a function that does > what the current code does inside eww itself, and then users could > override that by providing their own URI-mangling function. Please consider the patch MIMEd. * lisp/net/eww.el (eww-uri-rewrite-function): New customizable variable. (eww): Use eww-uri-rewrite-function. (eww-mangle-uri): New function, split off eww. -- FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A