Received: (at 34023) by debbugs.gnu.org; 16 Jan 2019 19:16:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 16 14:16:10 2019 Received: from localhost ([127.0.0.1]:33887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gjqfa-0003Hv-3D for submit <at> debbugs.gnu.org; Wed, 16 Jan 2019 14:16:10 -0500 Received: from mail-wm1-f44.google.com ([209.85.128.44]:36280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gavinsmith0123@HIDDEN>) id 1gjqfY-0003Hh-4f for 34023 <at> debbugs.gnu.org; Wed, 16 Jan 2019 14:16:08 -0500 Received: by mail-wm1-f44.google.com with SMTP id p6so3232680wmc.1 for <34023 <at> debbugs.gnu.org>; Wed, 16 Jan 2019 11:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oVUg5uTmLAUkTGSR+91Zojw02AYbxjrz44vro5ehGO4=; b=Oh1rOx24Rt4pWdnBtF2v4mSIauPxssE7tvLHM3tQ7q+xw9Xo6v455Ptteu5piXKro+ dNtL2cPi9/Zmu0a3y7WW335CcRbr54Thf9WFbBJTPcC0O1WtPDErdCQoJBzHsh/5/HgV 3pOHMgkYF6edkIuf7xJ08aloUrHdWDpf4aDCTrUVy7TE3NHTabTCX9L0eua1/csyXfQv HS9gI9DvAQEJJTOmDK0i9MnQXl9//MldBeqniDsRor2GyhYDv8cKK3EAlg9w8s3JpFHx AmP0aeQkt+oBl+x5HYylVKbf34PCQD0PAU+XU3hbwRt05WR5CLhzyMiVnhpYvQDtTgOa 7GaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=oVUg5uTmLAUkTGSR+91Zojw02AYbxjrz44vro5ehGO4=; b=mtvHml1Vo+zYFKWvPUMz/v36AjloGL1EapaigBRivgQdsTedIwSVY0YVdNND+hZBRe PZMJTGEBRSDSTfWgt22rm2SjJXnle3G/+oTekNYpqTQ+0xztybeW9XTCEnTukWDm4Sxe 5/MD/xcc3pa7I0zsF8n1SRFBdb/O5fzPfXY1GfYQJMKWMDUUoDdOYbgZyQKcROD3T71v Kz8Y4XHzPt8asTDQH0BmvFxUrf8zaZ+pr7hiAyTq+Ea3XyJFJEzilXUtUsHkYGpuyVXJ PW6ydhq/LOZhrU+arHyP/Ec9GW9ZsP4WstMhDtcMcl5k7Xbw8UV8TEYJ4cbG5CaWyM7s LPiA== X-Gm-Message-State: AJcUukcbeHtRIziP2RCHNS9Q07P23LDuQ4iY5Knjg+MH1sbnGh7bvUSt eSrTDDIJ4Mlbm9G6JI5kC0s= X-Google-Smtp-Source: ALg8bN5nJvVAKHxdLMRzhMotZTRdQBRB0sxPhHL5nwKj0rEaM1mhvXc3YFdH1GnTe/eWygU8287/dw== X-Received: by 2002:a1c:1d81:: with SMTP id d123mr8539741wmd.112.1547666162424; Wed, 16 Jan 2019 11:16:02 -0800 (PST) Received: from darkstar.example.net (55.37.198.146.dyn.plus.net. [146.198.37.55]) by smtp.gmail.com with ESMTPSA id j24sm93913723wrd.86.2019.01.16.11.16.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 11:16:01 -0800 (PST) From: Gavin Smith <gavinsmith0123@HIDDEN> X-Google-Original-From: Gavin Smith <GavinSmith0123@HIDDEN> Received: from darkstar.example.net (localhost [127.0.0.1]) by darkstar.example.net (8.14.9/8.14.9) with ESMTP id x0GJHjMT003640; Wed, 16 Jan 2019 19:17:45 GMT Received: (from g@localhost) by darkstar.example.net (8.14.9/8.14.9/Submit) id x0GJHisx003639; Wed, 16 Jan 2019 19:17:44 GMT Date: Wed, 16 Jan 2019 19:17:44 +0000 To: Glenn Morris <rgm@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries Message-ID: <20190116191744.GA1666@HIDDEN> Mail-Followup-To: Gavin Smith <GavinSmith0123@HIDDEN>, Glenn Morris <rgm@HIDDEN>, bug-texinfo@HIDDEN, 34023 <at> debbugs.gnu.org References: <20190109211433.GB1481@darkstar> <h4lg3s580v.fsf@HIDDEN> <20190111201323.GC14925@darkstar> <hek1jbkk9o.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <hek1jbkk9o.fsf@HIDDEN> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) On Fri, Jan 11, 2019 at 03:32:35PM -0500, Glenn Morris wrote: > Gavin Smith wrote: > > > Even if Info mode and the standalone Info browser are changed to > > support colons in index entries, people running older versions of these > > won't be able to read them. > > Sure. However, if Texinfo is intending to support them from version X, > IMO it should document that. I changed the wording a bit in git revision 3381bcb.
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 13 Jan 2019 03:04:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 12 22:04:26 2019 Received: from localhost ([127.0.0.1]:57255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1giW4Y-0004PL-AA for submit <at> debbugs.gnu.org; Sat, 12 Jan 2019 22:04:26 -0500 Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:51593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1giW4W-0004PA-FE for 34023 <at> debbugs.gnu.org; Sat, 12 Jan 2019 22:04:24 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 67981502501; Sun, 13 Jan 2019 03:04:23 +0000 (UTC) Received: from pdx1-sub0-mail-a54.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1FF915024AA; Sun, 13 Jan 2019 03:04:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a54.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 13 Jan 2019 03:04:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Abortive-Tasty: 7e0a8a201a3429d3_1547348663271_4197397233 X-MC-Loop-Signature: 1547348663271:2696757195 X-MC-Ingress-Time: 1547348663271 Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id B297A81AB5; Sat, 12 Jan 2019 19:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=c7vjNR1sJS/G37AcC3Z4iLZbYM0=; b= OVKToY24qJuc0qvS4qB6aBUZkwPD96sp3mMJnFf0E/6i0kw3cJkbEFR6lWRvZpKo 0iQ9rqBavRQ45tvcydks8rEPB3CXqh8qQTVXzalWCu7noCRcByf591tTwlJAOtt1 wSvSXjP/JK/zRKRikTFxmdyHvsuyQPSa5rKdiZUKDq0= Received: from mail.jurta.org (m91-129-101-91.cust.tele2.ee [91.129.101.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 32B6681AA6; Sat, 12 Jan 2019 19:04:20 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a54 From: Juri Linkov <juri@HIDDEN> To: Gavin Smith <GavinSmith0123@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries Organization: LINKOV.NET References: <20190109211433.GB1481@darkstar> <875zuwys8f.fsf@HIDDEN> <20190111194631.GA14925@darkstar> Date: Sun, 13 Jan 2019 02:55:17 +0200 In-Reply-To: <20190111194631.GA14925@darkstar> (Gavin Smith's message of "Fri, 11 Jan 2019 19:46:32 +0000") Message-ID: <87lg3pclm2.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrfeekgddvvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtuddrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepifgrvhhinhfumhhithhhtdduvdefsehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgepud X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> The following patch handles the cases that you presented, >> but it's hard to predict what other cases it might break. >> >> Do you have a sample test file that covers different cases? >> We could add such file to Emacs regression tests. > > I've attached a file that includes different possibilities. Thanks. >> I have to say that the current regexp-based parsing is >> an inherently fragile approach. Do you think it would be possible >> to add more markup to Info files instead of relying on regexps? > > I don't understand. Whatever markup is added has to be read somehow, > with regexp or other. This is a hint for using more XML-like markup languages with more reliable parsing. >> Better yet would be to read Info manual in HTML format in Info reader. >> That would allow extracting all information unambiguously. > > That would be a different project with several unresolved questions; this > could be the way forward in the long term. I would be opposed to making > the standalone info program read HTML as this would be a complete > rewrite of the program and there are probably better ways of dealing > with it. Maybe not rewrite, but just adding a HTML "add-on" to the info program.
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 20:32:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 15:32:44 2019 Received: from localhost ([127.0.0.1]:56375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gi3Tv-00016f-UI for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 15:32:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rgm@HIDDEN>) id 1gi3Tu-00016S-Sb for 34023 <at> debbugs.gnu.org; Fri, 11 Jan 2019 15:32:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1gi3Tp-00025d-IV; Fri, 11 Jan 2019 15:32:37 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from <rgm@HIDDEN>) id 1gi3To-0008C7-1P; Fri, 11 Jan 2019 15:32:36 -0500 From: Glenn Morris <rgm@HIDDEN> To: Gavin Smith <GavinSmith0123@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries References: <20190109211433.GB1481@darkstar> <h4lg3s580v.fsf@HIDDEN> <20190111201323.GC14925@darkstar> X-Spook: Swine government Central Intelligence Agency NSA Kennedy X-Ran: H360[).Ats@!Xi9ON$dSb}Rn-!}$=55bt]RyX,hH~M&@n)l>v.ILH_*$3hA*R.b(Y??c_( X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 11 Jan 2019 15:32:35 -0500 In-Reply-To: <20190111201323.GC14925@darkstar> (Gavin Smith's message of "Fri, 11 Jan 2019 20:13:23 +0000") Message-ID: <hek1jbkk9o.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Gavin Smith wrote: > Even if Info mode and the standalone Info browser are changed to > support colons in index entries, people running older versions of these > won't be able to read them. Sure. However, if Texinfo is intending to support them from version X, IMO it should document that. > However, texi2any does output the colon in the index entry without > complaint. Personally I think this is a bug, but Texinfo's previous maintainer disagreed about what warnings were appropriate. http://lists.gnu.org/r/bug-texinfo/2014-02/msg00029.html
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 20:13:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 15:13:18 2019 Received: from localhost ([127.0.0.1]:56365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gi3B7-0000bh-T1 for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 15:13:18 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:46597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gavinsmith0123@HIDDEN>) id 1gi3B5-0000bU-Tj for 34023 <at> debbugs.gnu.org; Fri, 11 Jan 2019 15:13:16 -0500 Received: by mail-wr1-f46.google.com with SMTP id l9so16454759wrt.13 for <34023 <at> debbugs.gnu.org>; Fri, 11 Jan 2019 12:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bkYcmtYx2CKTo0Gw5mwHq1/q+VRnWdIbO1rOZQumDT8=; b=jmUlNoUSJVYW6EXd5pUxW8mYVCF+TpgYE+TJaa/EJVj3YyBDcdjlcqO33ddpYUx2Tc x9L4CPK5EmiHsXv2vE6XtDKYTSHmXx3gi4l4QHpd5mtGFwUkfP7JKBY694fXRArde7V9 A6kQ/9Sww+62KCbDh5sWu3Be7UkYp0KIs7H+EWAZR4oaglW7hqlc1cW118mieot90EaC iqyWqIHLdB2e27XkDv3UIp3HqAG6owUBJYrdyqWG/zS9MN3LY+nLpDfwwkrKr32VEWiR zR97dOTHyd7qMu1UOUEIrigsMBSwFA2WT5lItrtmcEJAOYM4lCiuR2NIElEmiszApRjy ILnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=bkYcmtYx2CKTo0Gw5mwHq1/q+VRnWdIbO1rOZQumDT8=; b=tCMpKE8vMobO+DxJLlZreuhhS8i4G9dfSNoNUjV8MvmOLGdI3V5izVyE0FlEdR9fFc HOh5g0Lpzi1zfz5EHPyLbgaBrQCy3u3keecDjHaRTYpkAKjsxr1ELAIV0iO1baWxdfex fjqgfnC4X3E/Gg8+JV4JZGHX9i2dHLKge7tF/6EYz9TrbyZUz5dwXlZlXymEDMpnPpUT UihsjPriJzDain+w+RVU3qz9ZtZv+M/n9NfFE/89o1nRq6YcyuwZVtjR1hcC1XIfLr9B gpJxKM/ayggcM0y5gC3oJ/ZwO6EbeYltsijBduVWzyCI35cYy8yiXn1ThwWUENwPYBD5 xTVw== X-Gm-Message-State: AJcUukfSNn0w6X5p3rr+Rhi6tBO8DtzVounQ17EUjGfKY1eIxGJJvUIE CFBN4n6T7qQFV/GFTMhQTbK8pzCX X-Google-Smtp-Source: ALg8bN5J5Tx3MuVW8shMul3gYsz6PctjpIXKqDK7DLhx9EAlFGkz0tApQzA2dwPQOPYGm6ogW5ZjxA== X-Received: by 2002:adf:9061:: with SMTP id h88mr14741665wrh.65.1547237590130; Fri, 11 Jan 2019 12:13:10 -0800 (PST) Received: from darkstar.example.net (55.37.198.146.dyn.plus.net. [146.198.37.55]) by smtp.gmail.com with ESMTPSA id o81sm33287504wmd.10.2019.01.11.12.13.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 12:13:09 -0800 (PST) From: Gavin Smith <gavinsmith0123@HIDDEN> X-Google-Original-From: Gavin Smith <GavinSmith0123@HIDDEN> Received: from darkstar.example.net (localhost [127.0.0.1]) by darkstar.example.net (8.14.9/8.14.9) with ESMTP id x0BKEiJv003876; Fri, 11 Jan 2019 20:14:44 GMT Received: (from g@localhost) by darkstar.example.net (8.14.9/8.14.9/Submit) id x0BKEimC003875; Fri, 11 Jan 2019 20:14:44 GMT Date: Fri, 11 Jan 2019 20:14:44 +0000 To: Glenn Morris <rgm@HIDDEN>, bug-texinfo@HIDDEN, 34023 <at> debbugs.gnu.org Subject: Re: bug#34023: Support double colons in Info index entries Message-ID: <20190111201444.GD14925@darkstar> Mail-Followup-To: Gavin Smith <GavinSmith0123@HIDDEN>, Glenn Morris <rgm@HIDDEN>, bug-texinfo@HIDDEN, 34023 <at> debbugs.gnu.org References: <20190109211433.GB1481@darkstar> <h4lg3s580v.fsf@HIDDEN> <20190111201323.GC14925@darkstar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190111201323.GC14925@darkstar> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 34023 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) On Fri, Jan 11, 2019 at 08:13:23PM +0000, Gavin Smith wrote: > On Thu, Jan 10, 2019 at 07:53:52PM -0500, Glenn Morris wrote: > > Gavin Smith wrote: > > > > > This is what is implemented in the standalone info browser (since > > > change on 2017-04-08). > > > > "Defining the Entries of an Index" in the Texinfo manual continues to > > say (through Texinfo 6.5.90) "Caution: Do not use a colon in an index entry". > > Even if Info mode and the standalone Info browser are changed to > support colons in index entries, people running older versions of these > won't be able to read them. However, texi2any does output the colon in > the index entry without complaint. See attached Texinfo input and Info > output. Newer versions of 'info' can deal with the colons in the index > entries that are output here. > There should still be a warning about this in the Texinfo manual, but it could be toned down.
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 20:11:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 15:11:54 2019 Received: from localhost ([127.0.0.1]:56361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gi39m-0000Z8-Fe for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 15:11:54 -0500 Received: from mail-wm1-f46.google.com ([209.85.128.46]:54374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gavinsmith0123@HIDDEN>) id 1gi39j-0000Yq-21 for 34023 <at> debbugs.gnu.org; Fri, 11 Jan 2019 15:11:52 -0500 Received: by mail-wm1-f46.google.com with SMTP id a62so3531570wmh.4 for <34023 <at> debbugs.gnu.org>; Fri, 11 Jan 2019 12:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=O8wZqdFlLryed1XEoATheuyB+p94E8U8Y18hYNwg4Ec=; b=XKsQ5+p+zcXSB5jBHmHPRV1/YQxdXBq5BKU0x1sMfZWQeNeOXpy7+9GG8uMiXzOxNI XXjp06v/V3oYZUiv2OhudV7IU4BQ5WSiASQeIih5V18slLDSOVk0fknLZIukJLQbWIKd H9dSkTOvgz/Q1raF2pFEA8psVHqWD3iti9Q/LFZ3AeGx1moUrOcD2TU1Xbk+048wuiOj OwTJcHqXaBYfjX7/yAQh2kVrUED9vsbW1/qEuxb+udYbOqWwooMvPl/MvB1rKj6h6z44 3dEwrmKx+v99hDHwYxXIO1bQfxuWFkyZ1//u4cGZaGUBC4ZAqMy0NhR1in+TrdO50hwy 5k9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=O8wZqdFlLryed1XEoATheuyB+p94E8U8Y18hYNwg4Ec=; b=CEJ1vaUM8zB/dAGxDjA1x/EAZZs+clJzOirqailR7jZM6XQ7UjHX+W/InIEQiegJls eD9Iv02bRqGrxaD5zreujrznK/RnDfOrqcxw2hkS6rxH8lBn2wGuZnsI2FGzqwfXLfLO Qhrdqzdek4Btw0HCE6RXFYRaqH++DRa+2LW0ohCB5QyTvk40ARWkI5yA53DbcKxbhGvr odp8Ftfhf2cP1enThRZyDpFvxT37/b5d7nkjQLru/E75fn81xb3eNLKBZR0tcNDrYTZ9 Fo0+gls/Ucy75nmxNh4JDVQswP30DAea42Gm4xKWBxg0dqtBdXIgvxscenfMcUtt7SA5 ryEA== X-Gm-Message-State: AJcUuke9Ex+SH2gPvE7KDbuIf2TK1Rg7IVYmlDvCHk2/Gt8s8cL2/jUF +jOHZ3XxVxIHBGRNk+hgcYD2nA0W X-Google-Smtp-Source: ALg8bN7tchRqdyE7I/rZwZ108SApkt4Fjeho/8t8kd73k//EbC1o0pTFyikkWVitCWYk2dqBTWVekw== X-Received: by 2002:a1c:1688:: with SMTP id 130mr3393929wmw.86.1547237505044; Fri, 11 Jan 2019 12:11:45 -0800 (PST) Received: from darkstar.example.net (55.37.198.146.dyn.plus.net. [146.198.37.55]) by smtp.gmail.com with ESMTPSA id l20sm133845772wrb.93.2019.01.11.12.11.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 12:11:44 -0800 (PST) From: Gavin Smith <gavinsmith0123@HIDDEN> X-Google-Original-From: Gavin Smith <GavinSmith0123@HIDDEN> Received: from darkstar.example.net (localhost [127.0.0.1]) by darkstar.example.net (8.14.9/8.14.9) with ESMTP id x0BKDN8g003391; Fri, 11 Jan 2019 20:13:24 GMT Received: (from g@localhost) by darkstar.example.net (8.14.9/8.14.9/Submit) id x0BKDNmH003386; Fri, 11 Jan 2019 20:13:23 GMT Date: Fri, 11 Jan 2019 20:13:23 +0000 To: Glenn Morris <rgm@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries Message-ID: <20190111201323.GC14925@darkstar> Mail-Followup-To: Gavin Smith <GavinSmith0123@HIDDEN>, Glenn Morris <rgm@HIDDEN>, bug-texinfo@HIDDEN, 34023 <at> debbugs.gnu.org References: <20190109211433.GB1481@darkstar> <h4lg3s580v.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: <h4lg3s580v.fsf@HIDDEN> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 10, 2019 at 07:53:52PM -0500, Glenn Morris wrote: > Gavin Smith wrote: > > > This is what is implemented in the standalone info browser (since > > change on 2017-04-08). > > "Defining the Entries of an Index" in the Texinfo manual continues to > say (through Texinfo 6.5.90) "Caution: Do not use a colon in an index entry". Even if Info mode and the standalone Info browser are changed to support colons in index entries, people running older versions of these won't be able to read them. However, texi2any does output the colon in the index entry without complaint. See attached Texinfo input and Info output. Newer versions of 'info' can deal with the colons in the index entries that are output here. --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="colon-index.info" Content-Transfer-Encoding: quoted-printable This is colon-index.info, produced by texi2any version 6.5.90 from colon-index.texi. =1F File: colon-index.info, Node: Top, Next: One, Up: (dir) * Menu: * One:: * Concept Index:: =1F File: colon-index.info, Node: One, Next: Concept Index, Prev: Top, Up: = Top node one =1F File: colon-index.info, Node: Concept Index, Prev: One, Up: Top =00=08[index=00=08] * Menu: * :: One. (line 3) * :a: One. (line 3) * b:c: One. (line 3) * d::e: One. (line 3) * f :d: One. (line 3) * g: h: One. (line 3) =1F Tag Table: Node: Top=7F86 Node: One=7F184 Node: Concept Index=7F276 =1F End Tag Table --f2QGlHpHGjS2mn6Y Content-Type: application/x-texinfo Content-Disposition: attachment; filename="colon-index.texi" Content-Transfer-Encoding: quoted-printable @node Top=0A=0A@menu=0A* One::=0A* Concept Index::=0A@end menu=0A=0A@node O= ne=0A=0A@cindex :=0A@cindex :a=0A@cindex b:c=0A@cindex d::e=0A@cindex f :d= =0A@cindex g: h=0Anode one=0A=0A@node Concept Index=0A=0A@printindex cp=0A --f2QGlHpHGjS2mn6Y--
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 19:52:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 14:52:44 2019 Received: from localhost ([127.0.0.1]:56346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gi2rD-0008Ug-EN for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 14:52:43 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:38657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gavinsmith0123@HIDDEN>) id 1gi2rB-0008UR-4i for 34023 <at> debbugs.gnu.org; Fri, 11 Jan 2019 14:52:41 -0500 Received: by mail-wr1-f44.google.com with SMTP id v13so16450568wrw.5 for <34023 <at> debbugs.gnu.org>; Fri, 11 Jan 2019 11:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ok+tHfP29Ku0nbnnLXuxiFaTRyEV5qFu8awKEwJunzA=; b=tBYjuLYl/aILpB325br94EsdvsAN4/mk7dMmcQWdM2zOLL923r0aLrzf1Tlwsux7/n MCUFtRK9R3UfOYeKovC4xAxYMi2O6ZvpNgziTiZ83vjkbpkdMbRZvb7dKymGg8lai+zx 7YoOj2rdfWw75yJP/6ONBRuz65UB8IYoorlaYqP53pBGfux44FIpkM7eGl1ziJf/b4xv l8LTlKgskaiVFKNXbv+Cm5uj3ykY/mpiiVSARVOGlsXISaoDgcMCPtk7r/rKzlehfqmO z62w2ebcJ0tJnPejUapihYIrCNqS+r23AW9BhLNwlBYBtE18hc8WQGZ+o1MPPXPiN2Oo sDgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Ok+tHfP29Ku0nbnnLXuxiFaTRyEV5qFu8awKEwJunzA=; b=d5iGo2TNMlIuoEnbASay2wAMlxZ07FW9dEUXMcwIBGXqmjhXvzg9P1pO7t8Bb+d6et xb+yuLE2nzSW7SSqKA4vzGXSPUcoksa+zk2iSbiXI9fTfCfW+P/iQK4iajQVrw4iKbO4 KFiQAe2L27BhtnWbAFanzc7Ndlulm1PxI2otoNXdxO5mHIqDpt6fa9vaZAiVIHsOwbzv CLGu127fECIehwM8v+CEjWV4WDMNQRF00XuIvUTjcv47c9JIXt0A6vu8zfRqJeMfR2+C EyyOMXUu6AFbiibgkGok0kCz4OPG3+avoEx42HZFxjhmOkY0URGjM33+1WhiFvahBxIz eomw== X-Gm-Message-State: AJcUukdF1cDAFTyo7I+tOsyqnb94m+cRwdrfggbdBTkvCb/LssnnVH/B B4Cyh9ZaZGh7e70nrrPby2Qp2l+6 X-Google-Smtp-Source: ALg8bN5AW1dlP2RmTeD55brZsSK+mmbv8Y+MK87nDasW/U59Sa2zVi1IgVsghWsZCNmUdo+BrbkXiQ== X-Received: by 2002:adf:aa9c:: with SMTP id h28mr14699955wrc.216.1547236355076; Fri, 11 Jan 2019 11:52:35 -0800 (PST) Received: from darkstar.example.net (55.37.198.146.dyn.plus.net. [146.198.37.55]) by smtp.gmail.com with ESMTPSA id y34sm178169078wrd.68.2019.01.11.11.52.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 11:52:34 -0800 (PST) From: Gavin Smith <gavinsmith0123@HIDDEN> X-Google-Original-From: Gavin Smith <GavinSmith0123@HIDDEN> Received: from darkstar.example.net (localhost [127.0.0.1]) by darkstar.example.net (8.14.9/8.14.9) with ESMTP id x0BJsERd028736; Fri, 11 Jan 2019 19:54:14 GMT Received: (from g@localhost) by darkstar.example.net (8.14.9/8.14.9/Submit) id x0BJkWgg025900; Fri, 11 Jan 2019 19:46:32 GMT Date: Fri, 11 Jan 2019 19:46:32 +0000 To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries Message-ID: <20190111194631.GA14925@darkstar> Mail-Followup-To: Gavin Smith <GavinSmith0123@HIDDEN>, Juri Linkov <juri@HIDDEN>, 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN References: <20190109211433.GB1481@darkstar> <875zuwys8f.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875zuwys8f.fsf@HIDDEN> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) On Fri, Jan 11, 2019 at 02:04:32AM +0200, Juri Linkov wrote: > The following patch handles the cases that you presented, > but it's hard to predict what other cases it might break. > > Do you have a sample test file that covers different cases? > We could add such file to Emacs regression tests. I've attached a file that includes different possibilities. > I have to say that the current regexp-based parsing is > an inherently fragile approach. Do you think it would be possible > to add more markup to Info files instead of relying on regexps? I don't understand. Whatever markup is added has to be read somehow, with regexp or other. > Better yet would be to read Info manual in HTML format in Info reader. > That would allow extracting all information unambiguously. That would be a different project with several unresolved questions; this could be the way forward in the long term. I would be opposed to making the standalone info program read HTML as this would be a complete rewrite of the program and there are probably better ways of dealing with it. > diff --git a/lisp/info.el b/lisp/info.el > index 6038273c37..2f7e293297 100644 > --- a/lisp/info.el > +++ b/lisp/info.el > @@ -2664,9 +2664,15 @@ Info-menu-entry-name-re > Because of ambiguities, this should be concatenated with something like > `:' and `Info-following-node-name-re'.") > > +(defconst Info-index-entry-name-re "\\(?:[^:]\\|:[^,.;() \t\n]\\)*" > + "Regexp that matches an index entry name possibly including a colon.") > + > (defun Info-extract-menu-node-name (&optional multi-line index-node) > (skip-chars-forward " \t\n") > - (when (looking-at (concat Info-menu-entry-name-re ":\\(:\\|" > + (when (looking-at (concat (if index-node > + Info-index-entry-name-re > + Info-menu-entry-name-re > + ) ":\\(:\\|" > (Info-following-node-name-re > (cond > (index-node "^,\t\n") > @@ -2741,7 +2747,9 @@ Info-complete-menu-item > (t > (let ((pattern (concat "\n\\* +\\(" > (regexp-quote string) > - Info-menu-entry-name-re "\\):" > + (if (Info-index-node) > + Info-index-entry-name-re > + Info-menu-entry-name-re) "\\):" > Info-node-spec-re)) > completions > (complete-nodes Info-complete-nodes)) > @@ -3966,7 +3974,8 @@ Info-try-follow-nearest-node > (setq node t)) > (setq node nil)))) > ;; menu item: node name > - ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::")) > + ((setq node (unless (Info-index-node) > + (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::"))) > (Info-goto-node node fork)) > ;; menu item: node name or index entry > ((Info-get-token (point) "\\* +" "\\* +\\(.*\\): ") > @@ -4929,7 +4938,9 @@ Info-fontify-node > (let ((n 0) > cont) > (while (re-search-forward > - (concat "^\\* Menu:\\|\\(?:^\\* +\\(" Info-menu-entry-name-re "\\)\\(:" > + (concat "^\\* Menu:\\|\\(?:^\\* +\\(" (if (Info-index-node) > + Info-index-entry-name-re > + Info-menu-entry-name-re) "\\)\\(:" > Info-node-spec-re "\\([ \t]*\\)\\)\\)") > nil t) > (when (match-beginning 1)
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 19:48:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 14:48:04 2019 Received: from localhost ([127.0.0.1]:56342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gi2mh-0008Ns-Oj for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 14:48:03 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:36016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gavinsmith0123@HIDDEN>) id 1gi2mg-0008NO-Hu for 34023 <at> debbugs.gnu.org; Fri, 11 Jan 2019 14:48:03 -0500 Received: by mail-wr1-f50.google.com with SMTP id u4so16456747wrp.3 for <34023 <at> debbugs.gnu.org>; Fri, 11 Jan 2019 11:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hm43JwyBY+e4sP6guhYwOdxZsK0Kf+Lm2HioMWR6omw=; b=rqGBf45J71Di+rLmwG9wGKDLG00nsQZ873x26ZLzEUpSo1v6RAktW/elPFTAwQOB7D di3iEIW5/2d1ts90UWqXvjv5c3zn32xxr3J1cmWAL+M7uJPRbcIfP3ZjGZAshbqj2Wt2 uO7cML9b6AbNbciEjNhCBIfG0QnbgXlMIbTVIqzTnT2KXCzimaxwen5BxFuHa6U+Hnuq sPUOTFGE7QVUYGN5nIz5oOREDa2cJ2tJ2zicDP4rcZ3mX2kiUkKJKPnjB7bua55cJu9q QOQnGeofi87njEJUnBIFlr5b4R585Sav1A4FmQGVXgV5WxBftkygapRYpf7DX6/ab3CP wGrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Hm43JwyBY+e4sP6guhYwOdxZsK0Kf+Lm2HioMWR6omw=; b=cYxfDEEtsicrYuZg0Uhr6KLB+jYdckoHUmx/EK1jfGZlfHp1dEIrDQxehJ9luHKQ/P WdKKl4k6mIn1cw1s9wyvezLmA4nOP/TayHiuP0si9DYyk/wb/get09pus1zM7XRJQG69 l2xpCtTFCmgC0kC8i+LTDIdoiMnbDIHBUX8se8lSkk9PYxsby8oTPEemNdsMWnFWOy42 nSI/gVlUgxNYd8Ikfrtn17e3iv9McW5/DHyie9kcQgWtyN9BdHPBlR9qlzp9GBTdFA+j lF3+JaJzJyhXdXp2pKCqvvKfP+haUCYf5rWB5SsNvRWBB3WTte3pi/6NLC+q0iHV6uEA YqLg== X-Gm-Message-State: AJcUukchPfM8zx/XJmvPQkXLJ8h5H1q5eM4UrdzBsmW3NnkA8hE7TUpC agwfNpqk9L7TS46zGfTwbCAPowHl X-Google-Smtp-Source: ALg8bN5i1NLpsb4h1ExQ+RWTWS0Hixq7zafnJrU33hfLHHASjqrouL7bLzTTCxfDGzP62ZaLTEflVA== X-Received: by 2002:adf:fdc2:: with SMTP id i2mr15323456wrs.117.1547236076675; Fri, 11 Jan 2019 11:47:56 -0800 (PST) Received: from darkstar.example.net (55.37.198.146.dyn.plus.net. [146.198.37.55]) by smtp.gmail.com with ESMTPSA id 143sm35982185wml.14.2019.01.11.11.47.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 11:47:55 -0800 (PST) From: Gavin Smith <gavinsmith0123@HIDDEN> X-Google-Original-From: Gavin Smith <GavinSmith0123@HIDDEN> Received: from darkstar.example.net (localhost [127.0.0.1]) by darkstar.example.net (8.14.9/8.14.9) with ESMTP id x0BJnXxW027042; Fri, 11 Jan 2019 19:49:33 GMT Received: (from g@localhost) by darkstar.example.net (8.14.9/8.14.9/Submit) id x0BJnWcx027038; Fri, 11 Jan 2019 19:49:32 GMT Date: Fri, 11 Jan 2019 19:49:32 +0000 To: Juri Linkov <juri@HIDDEN>, 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN Subject: Re: bug#34023: Support double colons in Info index entries Message-ID: <20190111194932.GB14925@darkstar> Mail-Followup-To: Gavin Smith <GavinSmith0123@HIDDEN>, Juri Linkov <juri@HIDDEN>, 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN References: <20190109211433.GB1481@darkstar> <875zuwys8f.fsf@HIDDEN> <20190111194631.GA14925@darkstar> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20190111194631.GA14925@darkstar> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 34023 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 11, 2019 at 07:46:31PM +0000, Gavin Smith wrote: > I've attached a file that includes different possibilities. Attaching file. --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="index-test-cases.info" Content-Transfer-Encoding: quoted-printable =1F Node: Top top node * Menu: * Node 1:: * Regular node:: * Index without tag:: * Index with tag:: =1F Node: Node 1, Up: Top, Next: Regular node node 1 =1F Node: Regular node, Next: Index without tag, Up: Top This node is not an index. * Menu: * a2:Node 1. * a1:Node 1. :comment * a1:Node 1. comment * aaa::bbb:Node 1. (line 2) * :aaa::bbb:Node 1. (line 2) * ::Node 1. (line 2) * a: b:Node 1. (line 2) =1F Node: Index without tag, Next: Index with tag, Prev: Regular node, Up: Top "Index" in the node name but no tag. * Menu: * a2:Node 1. * a1:Node 1. :comment * a1:Node 1. comment * aaa::bbb:Node 1. (line 2) * :aaa::bbb:Node 1. (line 2) * ::Node 1. (line 2) * a: b:Node 1. (line 2) =1F Node: Index with tag, Prev: Index without tag, Up: Top =00=08[index=00=08] Note this index tag is needed for the index entry to be properly parsed. * Menu: * a2:Node 1. * a1:Node 1. :comment * a1:Node 1. comment * aaa::bbb:Node 1. (line 2) * :aaa::bbb:Node 1. (line 2) * ::Node 1. (line 2) * a: b:Node 1. (line 2) --pWyiEgJYm5f9v55/--
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 00:54:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 10 19:54:00 2019 Received: from localhost ([127.0.0.1]:54415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghl5E-00020b-7l for submit <at> debbugs.gnu.org; Thu, 10 Jan 2019 19:54:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rgm@HIDDEN>) id 1ghl5C-00020N-Lo for 34023 <at> debbugs.gnu.org; Thu, 10 Jan 2019 19:53:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1ghl56-0006ZN-6i; Thu, 10 Jan 2019 19:53:52 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from <rgm@HIDDEN>) id 1ghl56-0002aN-2O; Thu, 10 Jan 2019 19:53:52 -0500 From: Glenn Morris <rgm@HIDDEN> To: Gavin Smith <GavinSmith0123@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries References: <20190109211433.GB1481@darkstar> X-Spook: SWAT Crest Agfa Waco, Texas Tremor Biological weapon X-Ran: GM(!EJc`tQhaLBXo&\ruhSU&$gChZM^mdte'l1)U{U=.^e12ec"28p_~g=Qxn.v9Z1}ZVQ X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 10 Jan 2019 19:53:52 -0500 In-Reply-To: <20190109211433.GB1481@darkstar> (Gavin Smith's message of "Wed, 9 Jan 2019 21:14:33 +0000") Message-ID: <h4lg3s580v.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Gavin Smith wrote: > This is what is implemented in the standalone info browser (since > change on 2017-04-08). "Defining the Entries of an Index" in the Texinfo manual continues to say (through Texinfo 6.5.90) "Caution: Do not use a colon in an index entry".
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 00:28:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 10 19:28:12 2019 Received: from localhost ([127.0.0.1]:54409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghkgF-0001Nt-W5 for submit <at> debbugs.gnu.org; Thu, 10 Jan 2019 19:28:12 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:60006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1ghkgE-0001Nd-Cr for 34023 <at> debbugs.gnu.org; Thu, 10 Jan 2019 19:28:10 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0B0OOeL179813; Fri, 11 Jan 2019 00:28:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=WSTKSR1DugKM0khrISO84GG50na/VHs7XdQkGdFQ3oI=; b=PFNG11/RYFWgzSFG7w6uwRnOL71AM55afhGD1L9RfCQGmSYLxfJJTRJ4EpIy0q4EoJXM /ED0QCi9MrTsuM4IMmJ9WGC5kERCQFPfm+LsxQV/8hwyYyT90jZEsbNgFDKTRupc8Q9q qUrUkLInqD24DsieqZ+jujLLBZM7psDeTjLFHH/veoSyHJ8cH+ebBnLzbm3T8as68rYu XwYSaAg+XaUTH0WyxrTY5nmkLT02+dFgZ6bFxRiJ7AagxbH1+acs2BYIpaWZmJjfDakm ZrnFLWJiBB/A+3LkiyiQPLuVZp60xHh7aDrCn9//Z3Y45uhMb/VYErRTpaCdW4r+oQQX LQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2ptm0uja14-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Jan 2019 00:28:04 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0B0S2cY008425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Jan 2019 00:28:03 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0B0S14d030897; Fri, 11 Jan 2019 00:28:01 GMT MIME-Version: 1.0 Message-ID: <e11a1156-522e-4147-8946-4535f526f64d@default> Date: Thu, 10 Jan 2019 16:28:00 -0800 (PST) From: Drew Adams <drew.adams@HIDDEN> To: Juri Linkov <juri@HIDDEN>, Gavin Smith <GavinSmith0123@HIDDEN> Subject: RE: bug#34023: Support double colons in Info index entries References: <20190109211433.GB1481@darkstar> <875zuwys8f.fsf@HIDDEN> In-Reply-To: <875zuwys8f.fsf@HIDDEN> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4783.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9132 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=776 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901110001 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > The Emacs Info mode supports single colons in index > entries as long as they are not followed by a space. I thought they were verboten altogether. Does this mean that we can finally have index entries such as `:type'? That would be good.
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at 34023) by debbugs.gnu.org; 11 Jan 2019 00:09:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 10 19:09:19 2019 Received: from localhost ([127.0.0.1]:54403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghkNz-0000uS-3q for submit <at> debbugs.gnu.org; Thu, 10 Jan 2019 19:09:19 -0500 Received: from eastern.maple.relay.mailchannels.net ([23.83.214.55]:45069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1ghkNw-0000uI-Bp for 34023 <at> debbugs.gnu.org; Thu, 10 Jan 2019 19:09:17 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 327D55E3701; Fri, 11 Jan 2019 00:09:14 +0000 (UTC) Received: from pdx1-sub0-mail-a54.g.dreamhost.com (unknown [100.96.30.62]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CCA295E3CD3; Fri, 11 Jan 2019 00:09:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a54.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Fri, 11 Jan 2019 00:09:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Squirrel-Drop: 1c1a92af30d192a7_1547165354068_1835466942 X-MC-Loop-Signature: 1547165354068:3530202630 X-MC-Ingress-Time: 1547165354067 Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id 56C3C80380; Thu, 10 Jan 2019 16:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=h7b4195aUSfH6Q84HoEDGPQ/kSE=; b= ydhfOoDxTBN3OQkR91fFpQXvOpUPBdrmr6iw8H7bo/XHjvfDyRh20lZVvwXuvMtt lWD1hlvKTorMwOhcLhgnslbhyv9PUy7WV1bVdeFPrmhTAhSwoi/AjGKmKZVc7FPT W1riiEMSlnLxMAlDSDxQ5SCc1l0S1mtXqJUvgLC8dVU= Received: from mail.jurta.org (m91-129-101-91.cust.tele2.ee [91.129.101.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 91D5E803E1; Thu, 10 Jan 2019 16:08:56 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a54 From: Juri Linkov <juri@HIDDEN> To: Gavin Smith <GavinSmith0123@HIDDEN> Subject: Re: bug#34023: Support double colons in Info index entries Organization: LINKOV.NET References: <20190109211433.GB1481@darkstar> Date: Fri, 11 Jan 2019 02:04:32 +0200 In-Reply-To: <20190109211433.GB1481@darkstar> (Gavin Smith's message of "Wed, 9 Jan 2019 21:14:33 +0000") Message-ID: <875zuwys8f.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrfeeggddujecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehmtderredtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtuddrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepifgrvhhinhfumhhithhhtdduvdefsehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34023 Cc: 34023 <at> debbugs.gnu.org, bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi Gavin, > In the Info format colons are special, and for this reason, there is > limited support for colons in index entries. The Emacs Info mode > supports single colons in index entries as long as they are not followed > by a space. Thanks for the detailed description. > It doesn't state it, but when I tested it double colons don't work even > if they are not followed by a space. > > There is a fairly simple solution to this problem that I haven't seen > suggested in all the messages posted on this topic in the mailing list > archives. In index nodes only (which have a special marker included, > ^@^H[index^@^H]), use a colon to terminate the text of the index entry, > but instead of looking for the first colon in the line, look for the > last. So this entry: > > * a::b: a colon b. (line 129) > > would refer to line 129 of the node "a colon b". This is possible > because node names cannot contain colons. This restriction is not too > important, whereas the inability to index items containing colons is > quite important. This is what is implemented in the standalone info > browser (since change on 2017-04-08). The following patch handles the cases that you presented, but it's hard to predict what other cases it might break. Do you have a sample test file that covers different cases? We could add such file to Emacs regression tests. > This change shouldn't be made for all nodes, because the comment after > the closing '.' could contain a colon: > > * label: node. comment: with a colon. > > This shouldn't be interpreted as refering to a node "with a colon". > > However, the "(line ...)" comment can't contain a colon. The following change is made only for index nodes. I have to say that the current regexp-based parsing is an inherently fragile approach. Do you think it would be possible to add more markup to Info files instead of relying on regexps? Like index nodes having a special marker ^@^H[index^@^H] maybe adding some markers to identify index entries, node references, line numbers? Better yet would be to read Info manual in HTML format in Info reader. That would allow extracting all information unambiguously. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=info.el.support-double-colons-in-Info-index-entries.patch diff --git a/lisp/info.el b/lisp/info.el index 6038273c37..2f7e293297 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -2664,9 +2664,15 @@ Info-menu-entry-name-re Because of ambiguities, this should be concatenated with something like `:' and `Info-following-node-name-re'.") +(defconst Info-index-entry-name-re "\\(?:[^:]\\|:[^,.;() \t\n]\\)*" + "Regexp that matches an index entry name possibly including a colon.") + (defun Info-extract-menu-node-name (&optional multi-line index-node) (skip-chars-forward " \t\n") - (when (looking-at (concat Info-menu-entry-name-re ":\\(:\\|" + (when (looking-at (concat (if index-node + Info-index-entry-name-re + Info-menu-entry-name-re + ) ":\\(:\\|" (Info-following-node-name-re (cond (index-node "^,\t\n") @@ -2741,7 +2747,9 @@ Info-complete-menu-item (t (let ((pattern (concat "\n\\* +\\(" (regexp-quote string) - Info-menu-entry-name-re "\\):" + (if (Info-index-node) + Info-index-entry-name-re + Info-menu-entry-name-re) "\\):" Info-node-spec-re)) completions (complete-nodes Info-complete-nodes)) @@ -3966,7 +3974,8 @@ Info-try-follow-nearest-node (setq node t)) (setq node nil)))) ;; menu item: node name - ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::")) + ((setq node (unless (Info-index-node) + (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::"))) (Info-goto-node node fork)) ;; menu item: node name or index entry ((Info-get-token (point) "\\* +" "\\* +\\(.*\\): ") @@ -4929,7 +4938,9 @@ Info-fontify-node (let ((n 0) cont) (while (re-search-forward - (concat "^\\* Menu:\\|\\(?:^\\* +\\(" Info-menu-entry-name-re "\\)\\(:" + (concat "^\\* Menu:\\|\\(?:^\\* +\\(" (if (Info-index-node) + Info-index-entry-name-re + Info-menu-entry-name-re) "\\)\\(:" Info-node-spec-re "\\([ \t]*\\)\\)\\)") nil t) (when (match-beginning 1) --=-=-=--
bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 9 Jan 2019 21:13:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 09 16:13:13 2019 Received: from localhost ([127.0.0.1]:52621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghLA0-0003ci-Vo for submit <at> debbugs.gnu.org; Wed, 09 Jan 2019 16:13:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gavinsmith0123@HIDDEN>) id 1ghL9z-0003cW-D0 for submit <at> debbugs.gnu.org; Wed, 09 Jan 2019 16:13:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:47405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <gavinsmith0123@HIDDEN>) id 1ghL9s-0002Hu-FJ for submit <at> debbugs.gnu.org; Wed, 09 Jan 2019 16:13:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <gavinsmith0123@HIDDEN>) id 1ghL9r-0007l6-0f for bug-gnu-emacs@HIDDEN; Wed, 09 Jan 2019 16:13:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <gavinsmith0123@HIDDEN>) id 1ghL9p-00026f-Ox for bug-gnu-emacs@HIDDEN; Wed, 09 Jan 2019 16:13:03 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <gavinsmith0123@HIDDEN>) id 1ghL9p-0001zU-F1; Wed, 09 Jan 2019 16:13:01 -0500 Received: by mail-wr1-x42a.google.com with SMTP id l9so9082763wrt.13; Wed, 09 Jan 2019 13:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=c41oNolTC3qt5ZDhmjamRLK+5qB137a/UjATuUXe7wk=; b=gDEzirpfOdtjMh+Y/7VPPMFdBffQgwhWjzJNqmQxKlBIf4tDTDG1HeHem4aA8lkNCI LNwW5p8cPVzNX4Ebohe1yhbGG6ujIy6QrVtIVHqAa2EWOmgfJEpzol2ovBvN+Bwjud4n bUWiYY8vXyDtx4UzPSaoHAytrZwSS/IMKc0MaHIzxvA9JEuR8u/ieehrXuhkNAbPmYSW ZvEpgJv8wJRTO/07u8X53XDdQKJyQlCtfN4NOYTAv4oVXIgvt5Qqe5uFLRofTYg4+oTP eYvWcimeiWQq6opf1iGqimNr1xd/LboirUeseS5Y6QFBtDCnr8kE+bZDo6iyl1GrejVg 9bAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:mime-version:content-disposition:user-agent; bh=c41oNolTC3qt5ZDhmjamRLK+5qB137a/UjATuUXe7wk=; b=CH6kpxiEW2noIHAWf7gbS4UP/vIUF9pA6xpnyFQVSC7v/coz0H6MmNAGebZqfvw5th +5i7yV0wakKeYws9b9nhU0wm/jI9YZQJtB2ywOJOjahxM2/NTc+1qySs4P2FxrxO5Kzu NfQbiMSfnu9f99T44OTv2GRvvdzzd9eJXGrfAdWfBc0IlM09H1IKvr9D5+/In8xeHrak 72a51mii2+HC+H72XCveE8Sij4Oky+dXIEM7UqIyefGbBVjDbAoE1+FKNp0qRstjVMAP zzmt+u4oFYNkQmhlXbFbQRSqTC4bWVZNE0zF6zShkFGwQo20qPNJd/uTb+bmViv4if0O /rUQ== X-Gm-Message-State: AJcUukeDZFas17dYJ6zRQC63hWj/EufcarLp5ZQf1BZCSGNiZxN5UoMd K9fJ//XU8bRiW2MhdP339enIBrDj X-Google-Smtp-Source: ALg8bN492/N69TwGv9mnj/aV90he1YrBqOuNntOLqQvHdsTcSdZ6wd9jLKhhYjueN3Wg4g18E4iZvA== X-Received: by 2002:adf:8122:: with SMTP id 31mr6680493wrm.48.1547068378763; Wed, 09 Jan 2019 13:12:58 -0800 (PST) Received: from darkstar.example.net (55.37.198.146.dyn.plus.net. [146.198.37.55]) by smtp.gmail.com with ESMTPSA id b12sm5799108wmj.3.2019.01.09.13.12.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 13:12:57 -0800 (PST) From: Gavin Smith <gavinsmith0123@HIDDEN> X-Google-Original-From: Gavin Smith <GavinSmith0123@HIDDEN> Received: from darkstar.example.net (localhost [127.0.0.1]) by darkstar.example.net (8.14.9/8.14.9) with ESMTP id x09LEXnX007496; Wed, 9 Jan 2019 21:14:34 GMT Received: (from g@localhost) by darkstar.example.net (8.14.9/8.14.9/Submit) id x09LEXaK007495; Wed, 9 Jan 2019 21:14:33 GMT Date: Wed, 9 Jan 2019 21:14:33 +0000 To: bug-gnu-emacs@HIDDEN Subject: Support double colons in Info index entries Message-ID: <20190109211433.GB1481@darkstar> Mail-Followup-To: Gavin Smith <GavinSmith0123@HIDDEN>, bug-gnu-emacs@HIDDEN, bug-texinfo@HIDDEN MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Emacs version checked: 26.1. In the Info format colons are special, and for this reason, there is limited support for colons in index entries. The Emacs Info mode supports single colons in index entries as long as they are not fo [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gavinsmith0123[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (gavinsmith0123[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) X-Debbugs-Envelope-To: submit Cc: bug-texinfo@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.2 (/) Emacs version checked: 26.1. In the Info format colons are special, and for this reason, there is limited support for colons in index entries. The Emacs Info mode supports single colons in index entries as long as they are not followed by a space. There is this comment at the start of info.el: ;; Note that nowadays we expect Info files to be made using makeinfo. ;; In particular we make these assumptions: ;; - a menu item MAY contain colons but not colon-space ": " ;; - a menu item ending with ": " (but not ":: ") is an index entry ;; - a node name MAY NOT contain a colon ;; This distinction is to support indexing of computer programming ;; language terms that may contain ":" but not ": ". It doesn't state it, but when I tested it double colons don't work even if they are not followed by a space. There is a fairly simple solution to this problem that I haven't seen suggested in all the messages posted on this topic in the mailing list archives. In index nodes only (which have a special marker included, ^@^H[index^@^H]), use a colon to terminate the text of the index entry, but instead of looking for the first colon in the line, look for the last. So this entry: * a::b: a colon b. (line 129) would refer to line 129 of the node "a colon b". This is possible because node names cannot contain colons. This restriction is not too important, whereas the inability to index items containing colons is quite important. This is what is implemented in the standalone info browser (since change on 2017-04-08). This change shouldn't be made for all nodes, because the comment after the closing '.' could contain a colon: * label: node. comment: with a colon. This shouldn't be interpreted as refering to a node "with a colon". However, the "(line ...)" comment can't contain a colon. I'm not familiar with Emacs Lisp enough to propose a patch to implement this change myself. The standalone info program also implemented a quoting mechanism (surrounding the text with a pair of 0x7F bytes) to allow nearly all characters to be included in node names and index entries. This has never been implemented in Emacs Info and has never been used by default in texi2any's output. I think my suggestion above would be sufficient and would work with existing Info files and versions of texi2any/makeinfo without anything breaking. The quoting mechanism could potentially be removed from texi2any and info as nobody has ever used it and it makes things more complicated for no reason.
Gavin Smith <gavinsmith0123@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#34023
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.