From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 04 09:39:27 2016 Received: (at submit) by debbugs.gnu.org; 4 Mar 2016 14:39:27 +0000 Received: from localhost ([127.0.0.1]:60946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abqt4-000769-NN for submit@debbugs.gnu.org; Fri, 04 Mar 2016 09:39:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48020) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abqt2-00075x-R5 for submit@debbugs.gnu.org; Fri, 04 Mar 2016 09:39:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abqsw-0003DV-J0 for submit@debbugs.gnu.org; Fri, 04 Mar 2016 09:39:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abqsw-0003DR-GS for submit@debbugs.gnu.org; Fri, 04 Mar 2016 09:39:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abqsv-0008P6-A6 for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 09:39:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abqsq-0003C4-5i for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 09:39:17 -0500 Received: from omr-a002e.mx.aol.com ([204.29.186.56]:33897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abqsq-0003Bn-0m for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 09:39:12 -0500 Received: from mtaout-mcd01.mx.aol.com (mtaout-mcd01.mx.aol.com [172.26.223.205]) by omr-a002e.mx.aol.com (Outbound Mail Relay) with ESMTP id 58BEE3800060 for ; Fri, 4 Mar 2016 09:39:11 -0500 (EST) Received: from localhost.localdomain (c-50-163-96-131.hsd1.ma.comcast.net [50.163.96.131]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mtaout-mcd01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id CAADC3800009A for ; Fri, 4 Mar 2016 09:39:10 -0500 (EST) From: Live System User To: bug-gnu-emacs@gnu.org Subject: 24.5; eww SGML validate error Date: Fri, 04 Mar 2016 09:39:00 -0500 Message-ID: <8737s6i9yz.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1457102351; bh=hXKFv3/NuDqVfqjFtM/NhxVONl7MHdzm/oXqRD4RvbA=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=w6ls/zz1pBqsBbK9LRrdhLnO6osptr3DY56aLOxne7wRG6M+1C+1ELuoNkS8K15af cYbzYmT/VYCNpJl7Jk+z2c71nfG+DipgZnIcA0p3RE2zImSLUzbbVnQ8fIipYFrKe4 hiQkG6tnynVvBaWozY8p7dfF537NuAZaO+XPGk6Q= x-aol-sid: 3039ac1adfcd56d99e0e5904 X-AOL-IP: 50.163.96.131 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hi, While just playing around with eww... When using eww on https://www.fsf.org and clicking on menus: Eww->View page source SGML->Validate I get the error: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) replace-regexp-in-string("[^-0-9a-zA-Z_./\n]" "\\\\\\&" nil) shell-quote-argument(nil) (concat sgml-validate-command " " (shell-quote-argument (let ((name (buffer-file-name))) (and name (file-name-nondirectory name))))) (or sgml-saved-validate-command (concat sgml-validate-command " " (shell-quote-argument (let ((name (buffer-file-name))) (and name (file-name-nondirectory name)))))) (read-string "Validate command: " (or sgml-saved-validate-command (concat sgml-validate-command " " (shell-quote-argument (let ((name (buffer-file-name))) (and name (file-name-nondirectory name))))))) (list (read-string "Validate command: " (or sgml-saved-validate-command (concat sgml-validate-command " " (shell-quote-argument (let ((name ...)) (and name (file-name-nondirectory name)))))))) call-interactively(sgml-validate nil nil) command-execute(sgml-validate) 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 Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --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 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu 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 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core sieve sieve-mode sieve-manage password-cache nnir gnus-sum gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems wid-edit cl-loaddefs cl-lib nnoo nnheader gnus-util mm-util help-fns mail-prsvr mail-utils misearch multi-isearch time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 122422 11314) (symbols 48 23829 0) (miscs 40 41 143) (strings 32 26352 4090) (string-bytes 1 846056) (vectors 16 16033) (vector-slots 8 451957 8256) (floats 8 161 304) (intervals 56 339 9) (buffers 960 12) (heap 1024 20539 998)) From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 07 12:50:08 2016 Received: (at submit) by debbugs.gnu.org; 7 Sep 2016 16:50:08 +0000 Received: from localhost ([127.0.0.1]:52848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhg35-00051t-P9 for submit@debbugs.gnu.org; Wed, 07 Sep 2016 12:50:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhg34-00051T-IT for submit@debbugs.gnu.org; Wed, 07 Sep 2016 12:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhg2y-00057K-Jl for submit@debbugs.gnu.org; Wed, 07 Sep 2016 12:50:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhg2y-00057G-H0 for submit@debbugs.gnu.org; Wed, 07 Sep 2016 12:50:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhg2w-0004vN-R9 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 12:50:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhg2s-00055C-KH for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 12:49:57 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:35904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhg2s-000554-By for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 12:49:54 -0400 Received: by mail-lf0-x233.google.com with SMTP id g62so2843682lfe.3 for ; Wed, 07 Sep 2016 09:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=D2lTs0FFw53X6FOZtdt032G9/i/s+pFMWc3B1Ck8sS4=; b=V0mYhV7bvpm7fYYSOQangGKViAXYHNIjhE6PQqc7Hv+xPBK3HOE/mMetv0vTtApJIN Ov0UBSEcWwyuLubQp32Sjikl7xhh5YcdgyOeqM0vjAp369UraqvNeAKewWIoHD9704+3 T9rWM9c/lTSpd2tNc6I/iMK6qmwMnHe4SuF32irHq+Kh+5ecBoaFDfXrWmk4/gAYLtjb vETREyaf32VpuFujknYnWGltz9GAjrbbTJYMu3eyE3vggW0pl9ANIeCHfyKIxoo+oucK ZvDm1AT+mETmdYSYEGnJ46gmbgPU+e5GnazEgGjLjvspZ42WB1joHY4yQ3kJ10EQujvm NKlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=D2lTs0FFw53X6FOZtdt032G9/i/s+pFMWc3B1Ck8sS4=; b=a8NrbclfCBGwH9s1GyYfOkIfIhQSUcYZ+EAtp2hJPUI8FlMssvaMYGDKgzUS+W3Jm5 Lo194sI9q0zhv6+bSzY65w62PD1SwtP3v41fd7x2mkhB0Af+2FTw+62XTTbQ8F4tpWDN JCWCwspogtsy4ChkptP4H1QTXjWPbHDciMNX64K0S86W87ZLFPpGxpG57/RPPBGe+FYY rPtzCIMeastIqxGDfGLVuKGJMC52EjdWSuDu7A49u6xu3txscKRplxcvkS8Er1iQY5O7 +rOkbKku5Z/zMN5y8cXDjMOxo9qiftZE/t/+krmKTFuC97QHihtXtuK05QDSy2uHVKX7 ORXw== X-Gm-Message-State: AE9vXwO0V521v3ds4dRK5Uey/jWOgMnrB3vlG8UoKI+UHnkZZN7XbMkFaOSsMVsMnwzg2Q== X-Received: by 10.46.1.231 with SMTP id f100mr12343lji.57.1473266993311; Wed, 07 Sep 2016 09:49:53 -0700 (PDT) Received: from x240 (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id s70sm154094lfi.23.2016.09.07.09.49.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Sep 2016 09:49:52 -0700 (PDT) From: =?utf-8?Q?Simen_Heggest=C3=B8yl?= To: Live System User Subject: Re: 24.5; eww SGML validate error In-Reply-To: <8737s6i9yz.fsf@aol.com> (message from Live System User on Fri, 04 Mar 2016 09:39:00 -0500) Date: Wed, 07 Sep 2016 18:49:51 +0200 Message-ID: <87bmzzhcy8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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? diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 990c09b..b98db7e 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1109,8 +1109,10 @@ sgml-validate " " (shell-quote-argument (let ((name (buffer-file-name))) - (and name - (file-name-nondirectory name))))))))) + (unless name + (save-buffer) + (setq name (buffer-file-name))) + (file-name-nondirectory name)))))))) (setq sgml-saved-validate-command command) (save-some-buffers (not compilation-ask-about-save) nil) (compilation-start command)) -- Simen From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 17:28:18 2017 Received: (at 22906) by debbugs.gnu.org; 24 Jan 2017 22:28:19 +0000 Received: from localhost ([127.0.0.1]:40958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW9Za-0000ya-Ne for submit@debbugs.gnu.org; Tue, 24 Jan 2017 17:28:18 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:51207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW9ZZ-0000yT-O3 for 22906@debbugs.gnu.org; Tue, 24 Jan 2017 17:28:18 -0500 Received: from 2.150.49.21.tmi.telenormobil.no ([2.150.49.21] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW9ZW-0005ye-Hd; Tue, 24 Jan 2017 23:28:16 +0100 From: Lars Ingebrigtsen To: Simen =?utf-8?Q?Heggest=C3=B8yl?= Subject: Re: bug#22906: 24.5; eww SGML validate error References: <8737s6i9yz.fsf@aol.com> <87bmzzhcy8.fsf@gmail.com> Date: Tue, 24 Jan 2017 23:28:07 +0100 In-Reply-To: <87bmzzhcy8.fsf@gmail.com> ("Simen \=\?utf-8\?Q\?Heggest\=C3\=B8yl\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Wed, 07 Sep 2016 18:49:51 +0200") Message-ID: <87wpdkdrew.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22906 Cc: 22906@debbugs.gnu.org, Live System User X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Simen Heggest=C3=B8yl writes: > 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'm not sure it's worth it, though. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 17:28:48 2017 Received: (at control) by debbugs.gnu.org; 24 Jan 2017 22:28:48 +0000 Received: from localhost ([127.0.0.1]:40961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW9a4-0000zG-0V for submit@debbugs.gnu.org; Tue, 24 Jan 2017 17:28:48 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:51215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW9a2-0000z8-BD for control@debbugs.gnu.org; Tue, 24 Jan 2017 17:28:46 -0500 Received: from 2.150.49.21.tmi.telenormobil.no ([2.150.49.21] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW9a0-0007lm-4j for control@debbugs.gnu.org; Tue, 24 Jan 2017 23:28:45 +0100 Date: Tue, 24 Jan 2017 23:28:38 +0100 Message-Id: <87vat4dre1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22906 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) retitle 22906 SGML-mode can't validate unsaved buffers From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 17:29:04 2017 Received: (at control) by debbugs.gnu.org; 24 Jan 2017 22:29:04 +0000 Received: from localhost ([127.0.0.1]:40967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW9aK-00010S-9F for submit@debbugs.gnu.org; Tue, 24 Jan 2017 17:29:04 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:51221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW9aI-0000zz-Om for control@debbugs.gnu.org; Tue, 24 Jan 2017 17:29:03 -0500 Received: from 2.150.49.21.tmi.telenormobil.no ([2.150.49.21] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW9aG-0000Iq-HC for control@debbugs.gnu.org; Tue, 24 Jan 2017 23:29:02 +0100 Date: Tue, 24 Jan 2017 23:28:54 +0100 Message-Id: <87tw8odrdl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22906 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) severity 22906 wishlist From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 12:13:07 2020 Received: (at 22906) by debbugs.gnu.org; 15 Sep 2020 16:13:07 +0000 Received: from localhost ([127.0.0.1]:60401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIDZr-0000Y9-1N for submit@debbugs.gnu.org; Tue, 15 Sep 2020 12:13:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIDZp-0000XV-PQ for 22906@debbugs.gnu.org; Tue, 15 Sep 2020 12:13:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XMowvgGWBptei+XT9VSggq1qE5aGz8Qjfqp70nfD7O8=; b=azpym0kAHkaOsDzb/BCOMUIJJC frzJ+Kcdzj6OsnYxvFFFrrbvjhAKu5o5h1JnVszIiURct9S0EqG5+LOvmHIMHOZNS8OGTtE6w/L+s SfaSgyhxBhhhw1xwjnATJHXeQJxjC5p6LelpgGw3W1Jp6iH331xYU6DRnVh4RgGdGXnA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIDZg-00029j-Q3; Tue, 15 Sep 2020 18:12:59 +0200 From: Lars Ingebrigtsen To: Simen =?utf-8?Q?Heggest=C3=B8yl?= Subject: Re: bug#22906: 24.5; eww SGML validate error References: <8737s6i9yz.fsf@aol.com> <87bmzzhcy8.fsf@gmail.com> <87wpdkdrew.fsf@gnus.org> X-Now-Playing: Saito Koji's _433-1_: "433_061" Date: Tue, 15 Sep 2020 18:12:55 +0200 In-Reply-To: <87wpdkdrew.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 24 Jan 2017 23:28:07 +0100") Message-ID: <877dsv588o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: >> 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 w [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22906 Cc: Live System User , 22906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: >> 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. I've now fixed this in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 12:13:14 2020 Received: (at control) by debbugs.gnu.org; 15 Sep 2020 16:13:14 +0000 Received: from localhost ([127.0.0.1]:60404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIDZy-0000YV-BC for submit@debbugs.gnu.org; Tue, 15 Sep 2020 12:13:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIDZw-0000YB-Di for control@debbugs.gnu.org; Tue, 15 Sep 2020 12:13:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0FsgeH2mBi4bnasSnfkdDaDz1aER+f19j6JeUOznE4M=; b=ZNLMVthRkV0wXtSBUwnYbH7QgT N40TVMgwT1UF3w+hzGDsSeynQV/iUGPHqkl8Gg3yqAiiwjaNjQdZvzQrS/FPDKZ0j0gJq/L7zas/t OsdSdiExVCJOoOPnFw6Lbzp87HPIaJRjKS8v+iDaJTSGmgNsIRu7UfSFIm5EovTKALkA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIDZo-00029u-N4 for control@debbugs.gnu.org; Tue, 15 Sep 2020 18:13:06 +0200 Date: Tue, 15 Sep 2020 18:13:03 +0200 Message-Id: <875z8f588g.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22906 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 22906 fixed close 22906 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 22906 fixed close 22906 28.1 quit From unknown Sat Jun 14 19:13:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 14 Oct 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator