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#68970: 30.0.50; Info.el: Info-url-alist should support format-sequence that encodes "Top" node as "index" Date: Wed, 07 Feb 2024 22:18:13 +0200 Message-ID: <86le7wxc3e.fsf@gnu.org> References: <87fry44bz6.fsf@posteo.de> <867cjgz5rm.fsf@gnu.org> <87bk8s3usi.fsf@posteo.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7129"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68970@debbugs.gnu.org To: Mekeor Melire Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 07 21:19:06 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 1rXoNu-0001ac-G8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Feb 2024 21:19:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXoNe-0005Uv-Pi; Wed, 07 Feb 2024 15:18:50 -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 1rXoNc-0005Uf-HU for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 15:18:48 -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 1rXoNc-0006pH-8w for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 15:18:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXoNp-0000OL-Kn for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 15:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Feb 2024 20:19:01 +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.17073371181476 (code B ref 68970); Wed, 07 Feb 2024 20:19:01 +0000 Original-Received: (at 68970) by debbugs.gnu.org; 7 Feb 2024 20:18:38 +0000 Original-Received: from localhost ([127.0.0.1]:57977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXoNR-0000Nj-Oh for submit@debbugs.gnu.org; Wed, 07 Feb 2024 15:18:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXoNQ-0000NX-0u for 68970@debbugs.gnu.org; Wed, 07 Feb 2024 15:18:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXoN5-0006l0-HN; Wed, 07 Feb 2024 15:18:15 -0500 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=abFapRq9ORTEre4K1rs0Cphteen7Pi9mCOyNKIKLAAI=; b=jVotSHJm8Pp7 VKzBdMzy4auUpoq7AkqSpPBADBOv/+0MAswajk+i26I7m1nQIpq3ywcZAX1HaYwTpK4OmAUBkZfuw BjYxVJl7I83q/lrSdCBT4e2MTHBaCcClsPSyDgtz+YidnoPu3Ixfv88wdZ53xQ/D7x6N2AyoGX2sI ZEIxSq3u3g00X7JFTXWDQ9kMCsT4jxUEUhDhXBUqeUoCF1U1MponwYy9WCVIB9xERgP4+iCRHfJN5 zPnz4UOfQT3Ufv5x1ET5Li/g/wmapaCDv7VQYt5Elf9E6KbUNJVJWRn9MxjVMjEHjT3HyB77lgqSI IfzRyg8qyI5fyhJlIeJDxQ==; In-Reply-To: <87bk8s3usi.fsf@posteo.de> (message from Mekeor Melire on Wed, 07 Feb 2024 19:52:15 +0000) 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:279580 Archived-At: > From: Mekeor Melire > Cc: 68970@debbugs.gnu.org > Date: Wed, 07 Feb 2024 19:52:15 +0000 > > 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". Why would we assume a strange configuration like that? That's not what happens on gnu.org, for example. Which documentation sites that offer Texinfo-derived manuals have such configurations? > 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". I understand, but the overlap in functionality between %e and %i is got to cause some confusion, so if there's a way to avoid that, I'd prefer it. The code intentionally produces an empty string for "Top", and there's a good reason for it doing so.