From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mekeor Melire Newsgroups: gmane.emacs.bugs Subject: bug#68970: 30.0.50; Info.el: Info-url-alist should support format-sequence that encodes "Top" node as "index" Date: Wed, 07 Feb 2024 19:52:15 +0000 Message-ID: <87bk8s3usi.fsf@posteo.de> References: <87fry44bz6.fsf@posteo.de> <867cjgz5rm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22003"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68970@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 07 21:06:15 2024 Return-path: 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 ) id 1rXoBT-0005W0-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Feb 2024 21:06:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXoBC-0005t8-V7; Wed, 07 Feb 2024 15:06:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXoB3-0005se-9q for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 15:05:50 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXoB2-0004F6-Og for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 15:05:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXoBG-00005B-9w for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 15:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Feb 2024 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68970 X-GNU-PR-Package: emacs Original-Received: via spool by 68970-submit@debbugs.gnu.org id=B68970.170733631332719 (code B ref 68970); Wed, 07 Feb 2024 20:06:02 +0000 Original-Received: (at 68970) by debbugs.gnu.org; 7 Feb 2024 20:05:13 +0000 Original-Received: from localhost ([127.0.0.1]:57971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXoAT-0008Vf-8e for submit@debbugs.gnu.org; Wed, 07 Feb 2024 15:05:13 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:38267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXoAR-0008VK-AD for 68970@debbugs.gnu.org; Wed, 07 Feb 2024 15:05:11 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3E622240027 for <68970@debbugs.gnu.org>; Wed, 7 Feb 2024 21:04:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1707336291; bh=emaj7N+wVqSD/6PhmNHFGJUwxLLP/eaIDp17U1O6Y9Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=JXBNQDMWaR2sFZDZhf+ZrsGEvUWOdHXMHLpovlRuF4EUg/X1LGt9fTKU2pSgA21Nk 3f3zKM4PdKPrH/+HUKxP/6dEtMbX8zROaTP5L3P2CL79szcvFxZCbc3HQrifHHlq2N W8VETTHfBIjeA2hqx1rqqOW6y3s2PlWbZIQheZZWaKJ0PecGL0NEYOj+AChh6Mtjx/ Mg6T1xghHaVGcV8AGNhfPPlNUAm75XZ0Vvqxxzp/xSeTbtOgJ3yw8v7t7LDRHAxxHm PdkRRFIPg2l+1meWC3KXypZ8rHVT30nEfNnHeGQ7kVpDntlkdksjqkIeQkEizkBWrn sIDrmeIEZD/ug== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TVWLB0NnTz6tsf; Wed, 7 Feb 2024 21:04:50 +0100 (CET) In-reply-to: <867cjgz5rm.fsf@gnu.org> 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279579 Archived-At: 2024-02-07 16:51 eliz@gnu.org: > Sorry, I don't think I understand: "https://example.com/" stands for > "https://example.com/index.html", AFAIK. This is why %e produces an > empty string for the Top node. So why would users want to specify > "https://example.com/%e.html" instead of just "https://example.com/%e"? > > IOW, I don't see why users will need to use the .html extension in the > alist, it works without the extension. > > What am I missing? Let's assume we have a manual with "Top" node as well as a node called "Foo". Let's further assume the webserver is configured so that example.com/Foo does not resolve to example.com/Foo.html but rather results in "not found". This is why the user must choose to use example.com/%e.html as URL-specification currently. But then they have the problem that the "Top" node is translated to example.com/.html. I suggested to add another format-sequence, %i, that translates the "Top" node as "index". Thus, example.com/%i.html would translate to example.com/index.html in case of "Top". We could also instead provide a format-sequence, %s, that includes the ".html" suffix -- except in case of the "Top" node which would be translated to the empty string. Thus, the user would use example.com/%s. "Foo" would be translated to example.com/Foo.html; and "Top" would be translated to "example.com/".