From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48334: No elements in HTML manual pages Date: Mon, 04 Jul 2022 14:36:07 +0300 Message-ID: <83zghp85zs.fsf@gnu.org> References: <476ffbc9-bd89-b9f1-9132-86b54ff8dded@gmail.com> <6f746a42-09eb-dffc-993f-a0ba3467aa08@gmail.com> <87sfnjxza7.fsf@gnus.org> <83ilofbg7x.fsf@gnu.org> <87fsjibdd0.fsf@gnus.org> <83o7y69w5r.fsf@gnu.org> <87sfnh88gt.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19517"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48334@debbugs.gnu.org, m.a.nikulin@gmail.com To: Lars Ingebrigtsen <larsi@gnus.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 04 13:41:24 2022 Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org> Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>) id 1o8KSC-0004tS-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 13:41:24 +0200 Original-Received: from localhost ([::1]:34904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>) id 1o8KSA-0007te-Sd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 07:41:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1o8KNz-0003oV-00 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 07:37:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1o8KNy-0000q8-O0 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1o8KNy-0000du-F0 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 07:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii <eliz@gnu.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2022 11:37:02 +0000 Resent-Message-ID: <handler.48334.B48334.16569345842419@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48334 X-GNU-PR-Package: emacs Original-Received: via spool by 48334-submit@debbugs.gnu.org id=B48334.16569345842419 (code B ref 48334); Mon, 04 Jul 2022 11:37:02 +0000 Original-Received: (at 48334) by debbugs.gnu.org; 4 Jul 2022 11:36:24 +0000 Original-Received: from localhost ([127.0.0.1]:46338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1o8KNM-0000cx-HF for submit@debbugs.gnu.org; Mon, 04 Jul 2022 07:36:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@gnu.org>) id 1o8KNL-0000cg-24 for 48334@debbugs.gnu.org; Mon, 04 Jul 2022 07:36:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1o8KNF-0000dm-J8; Mon, 04 Jul 2022 07:36:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HgjoCOPw/X//infFAy0FrtTuY9ZZV0TXFRbjeAvcoqM=; b=N/fQrO8zmIh6 +qdKwuq16XJ/cniuzg4n6qO8uXbWO5iZtfrCeRBeaTC2WOGvtY86GkyMpC02WIAQkHaB2rkf3CC8i yw4idEnnDQb73FaHUUsOOPEQFxA2DbJ9F/CoiQTafKwQhZ1A+F6WhtDI3bP/2RjsRoSYIddSlyizU G+WjsyoLr/Nrsy0O5de/y8+XfANWYW3DHHcXHMEamlmMZlLwfpbnSyUNZcjNyPC+VYNdcu8JapJOE cZJDl7aGxZPR+8ltFpAeAycvXX7fXn0Nx4ebz9lG91sT2bZicxavBjzh9j+HPRsPtiAf1LvEwGP6g Yj77eK8CpI1vyBTXKdCu/w==; Original-Received: from [87.69.77.57] (port=2523 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1o8KNF-0002mf-1F; Mon, 04 Jul 2022 07:36:17 -0400 In-Reply-To: <87sfnh88gt.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 04 Jul 2022 12:42:42 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs> List-Post: <mailto:bug-gnu-emacs@gnu.org> List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org> Xref: news.gmane.io gmane.emacs.bugs:236055 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/236055> > From: Lars Ingebrigtsen <larsi@gnus.org> > Cc: m.a.nikulin@gmail.com, 48334@debbugs.gnu.org > Date: Mon, 04 Jul 2022 12:42:42 +0200 > > I tried running the code now (and commented out the > manual-html-fix-headers function), and I ended up with: > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> > <html> > <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ --> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> > <!-- This file describes the Emacs auth-source library. > > Copyright (C) 2008-2022 Free Software Foundation, Inc. > > Permission is granted to copy, distribute and/or modify this document > under the terms of the GNU Free Documentation License, Version 1.3 or > any later version published by the Free Software Foundation; with no > Invariant Sections, with the Front-Cover Texts being "A GNU Manual," > and with the Back-Cover Texts as in (a) below. A copy of the license > is included in the section entitled "GNU Free Documentation License". > > (a) The FSF's Back-Cover Text is: "You have the freedom to copy and > modify this GNU manual." --> > <title>Emacs auth-source Library 0.3 > > This is with texi2any (GNU texinfo) 6.8. If I'm reading the code right, > the delete-region here is just deleting that . That's strange, because I remember testing the changes, and I also used Texinfo 6.8. Did you compare the produced HTML with what's on the Web site? That should show the differences clearly. Also, I think the title (and the file I worked mostly) is index.html -- did you look at that, or did you look at some other file? > > > Failing that, I think the only alternative is to see how the original > > > Texinfo output looks in a browser, compare that with the edited > > > manuals, and then decide which of the edits are really needed. One > > > problem with that is that we'll probably have to require Texinfo 6.8 > > > or later if we go that way, because maintaining compatibility with > > > multiple Texinfo versions is really too much. Ideally, we should keep > > > the edits to the absolute minimum. > > > > I think altering the HTML in this way isn't idea. It'd be much better > > to just parse the HTML, alter the DOM (to remove/insert elements), and > > then write the DOM out to HTML again. That'd be a whole lot less > > brittle. That's fine with me, but that, too, assumes someone who can understand the resulting DOM, and which of its parts we want to change and why.