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.devel Subject: Re: HTML info Date: Fri, 24 Dec 2021 10:48:55 +0200 Message-ID: <83sfuis808.fsf@gnu.org> References: <87zgosdbo1.fsf@gnus.org> <86mtkszhnq.fsf@mail.linkov.net> <87o858e5r2.fsf@gnu.org> <86fsqjcqd8.fsf@mail.linkov.net> <87zgor41oc.fsf@gnus.org> <86lf0b6uf0.fsf@mail.linkov.net> <87v8zf40qw.fsf@gnus.org> <8635mj5ept.fsf@mail.linkov.net> <83pmpnt7s5.fsf@gnu.org> <83ilvft6ru.fsf@gnu.org> <91625EFE-6771-4C17-B388-A0E3DBC3A9E6@gmail.com> <86mtkqjtq5.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21318"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, casouri@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, tsdh@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 24 09:50:53 2021 Return-path: Envelope-to: ged-emacs-devel@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 1n0gHs-0005PT-9O for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Dec 2021 09:50:52 +0100 Original-Received: from localhost ([::1]:39186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0gHq-0005yY-DL for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Dec 2021 03:50:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0gG2-0003ck-V0 for emacs-devel@gnu.org; Fri, 24 Dec 2021 03:48:58 -0500 Original-Received: from [2001:470:142:3::e] (port=53284 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0gG2-0005aX-G0; Fri, 24 Dec 2021 03:48:58 -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=CTxSRFGZB+eLublh5MAYmtRBFdH8SsQkaFe7r3Uh8/I=; b=gMBfzNTKTUJU rnjmEH7MybQcshndsagikhG5yw3OJjc2Oi546hKz+tsYlz83BgVHjuRYEcuk9Mpt9cw+ZLO89wprl xoHqKpWdsgyciHJ1hBU/bUEctT9qxdR3nhYHxyr5CtmBQIsln8qfORdrEohRaP21KovSONgB3sZZk NSKqb9J/2pBRJhd0iafHXFXP2WrjuuFdL80vS9i5kFwdiv5yodzhvHHKAKT8XixfO3mm6dcEHDIe8 QJ/QObTgUBdV06RZMF8fAk0tomIZX22ft0zUGZK+GWSqleaHPZJ+SONeAl2HwxYg7VmG5y2X4DSYp JEsCUd2Pm93n10rG8AhWpg==; Original-Received: from [87.69.77.57] (port=2080 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0gFs-0007l8-MB; Fri, 24 Dec 2021 03:48:53 -0500 In-Reply-To: <86mtkqjtq5.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 24 Dec 2021 10:34:34 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283107 Archived-At: > From: Juri Linkov > Cc: Eli Zaretskii , Stefan Monnier > , tsdh@gnu.org, Lars Ingebrigtsen > , emacs-devel@gnu.org > Date: Fri, 24 Dec 2021 10:34:34 +0200 > > 1. Intersperse the existing Info-search with such conditionals: > > (if info-html-minor > (search-forward "
") > (search-forward "\n\^_\nIndirect:")) > > 2. Add more hooks to every Info top command, > so Info-html-mode could register own handlers: > > (add-hook 'Info-search-function 'Info-html-search) > > 3. Completely duplicate all top Info commands in a new package > info-html.el. I think a new package would be cleaner. It can always borrow ideas and even code from info*.el, as appropriate. In addition, I suggest to look at the Javascript code developed by Texinfo, to maybe reuse some ideas and look-and-feel. There's no need for Emacs to depart from what's there where commonality makes sense.