In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.7)
of 2016-02-03 on buildhw-05.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.11799901
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
--with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-m64 -mtune=generic' LDFLAGS=-Wl,-z,relro'
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
Major mode: Lisp Interaction
Minor modes in effect:
For information about GNU Emacs and the GNU system, type C-h C-a.
> I can reproduce this on the current master branch (ec12c670).
> The issue seems to be that `sgml-validate' assumes that the buffer is
> visiting a file, which is not the case when you view a web page's source
> from eww.
> Maybe we could offer to save the buffer when it's not visiting a file?
I think that would be unusual for commands like this (that have to be
written out to work). Instead it could save the buffer to a temporary
file, validate and then delete it again.
>> I can reproduce this on the current master branch (ec12c670).
>> The issue seems to be that `sgml-validate' assumes that the buffer is
>> visiting a file, which is not the case when you view a web page's source
>> from eww.
>> Maybe we could offer to save the buffer when it's not visiting a file?
> I think that would be unusual for commands like this (that have to be
> written out to work). Instead it could save the buffer to a temporary
> file, validate and then delete it again.
Actually, looking at the code again, I think it's just a simple bug. It
checks whether buffer-file-name is non-nil, but then it ends up with
(shell-quote-argument nil), which is invalid.