From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gavin Smith Newsgroups: gmane.comp.tex.texinfo.general,gmane.emacs.devel Subject: Re: @anchor on @item line Date: Sun, 12 Nov 2023 19:23:40 +0000 Message-ID: References: <83mswaq5q6.fsf@gnu.org> <87fs218qk6.fsf@localhost> <83lebto6e5.fsf@gnu.org> <87bkcp8oai.fsf@localhost> <838r7to1mu.fsf@gnu.org> <87v8aw75cj.fsf@localhost> <834jigmeb3.fsf@gnu.org> <87msvs5tel.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16805"; mail-complaints-to="usenet@ciao.gmane.io" To: Patrice Dumas , Ihor Radchenko , Eli Zaretskii , help-texinfo@gnu.org, arash@gnu.org, emacs-devel@gnu.org Original-X-From: help-texinfo-bounces+gnu-help-texinfo2=m.gmane-mx.org@gnu.org Sun Nov 12 20:24:04 2023 Return-path: Envelope-to: gnu-help-texinfo2@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 1r2G3v-0004CH-Pw for gnu-help-texinfo2@m.gmane-mx.org; Sun, 12 Nov 2023 20:24:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2G3g-000523-T6; Sun, 12 Nov 2023 14:23:48 -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 1r2G3e-00051p-34; Sun, 12 Nov 2023 14:23:47 -0500 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2G3c-0003ha-CE; Sun, 12 Nov 2023 14:23:45 -0500 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9dbb3e0ff65so539542266b.1; Sun, 12 Nov 2023 11:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699817021; x=1700421821; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=xJbNujxs9vqGkPcWTy5I0F+zKJPLwqs9I2uQiLAtpCA=; b=VuAFU67UttZJwZ1/c3KWULGgfQXtEgeADbxEomwv1k1mUiCK93J/AnRbODg51wW960 n0olKpgl4bv456DFRFefaDOCnR9TjAcotZA9pFNQ7JlEtOxKDvlmnJd+OPjE9cuKseRQ B3LsRuSD3j7iypi1HBdyv3PvUq5Am0rlSK8KDSOwTckEP8DpWf5wsMQw3hfmdVnHwNR0 9mEXZyIm7zyMrfB6RCZGvdM1N4sRTEXTFd8EX/ia2w03kj8/nn1J4rflGOBmWEjKibGh tNCKhRQqb3ZzVLiy1F8ZH+xdtrNq5T56rSwjPC/f+7sGl81Sxd4r+PnALAEUegDPA+kV 1N2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699817021; x=1700421821; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xJbNujxs9vqGkPcWTy5I0F+zKJPLwqs9I2uQiLAtpCA=; b=sV227T4R6icDpq+3criWzeN6bYXP34i7SFB4tfoUY7S1/DS7uDpUZYl3bFWT1JV6KA LDuKdLLDR0KoHuFjvmY1dy0v1ENKuf5nHmMgWN+LYu07mFMDQMRTCkME+NNtNdfmUZpC a4BJknH4zJCSswHmUv/OX2LcZyngvrQCStjRFQjyB9zxtki37W3AOqd1iZI7lAGpaLCF O8xpZV1bunb9yWbMerokEGMXvoisFqXr599z3usGHZ6O7er1WXWTKaidEO/cW9+GEQ5D 3OEdMjCuNyRMn+bVsh42A5JWYQ/rm04/glMzQfm8kKzpL48Yc+zWhrwyHQUJBu7DJUHr T4wg== X-Gm-Message-State: AOJu0Yzu6FTyRjk3MA649eVO4zwmHPjVKd69hTcln6rqANWQwk9Yr4Xc I9//MxiD1N8d7a0raD7a44Y= X-Google-Smtp-Source: AGHT+IFm2lM3b+knlsmmqnfLTb2OXkIwQdVGgHvDmnlJuU9VsJCKXLGqTpvXhsyT1YFrGn/IhDN8ig== X-Received: by 2002:a17:906:76d1:b0:9ae:5765:c134 with SMTP id q17-20020a17090676d100b009ae5765c134mr3998139ejn.15.1699817021254; Sun, 12 Nov 2023 11:23:41 -0800 (PST) Original-Received: from localhost ([2a02:c7f:c29:b00:ca0d:49c6:d004:c54d]) by smtp.gmail.com with ESMTPSA id fj10-20020a1709069c8a00b009e7e7c0d1a9sm2267069ejc.185.2023.11.12.11.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 11:23:40 -0800 (PST) X-Google-Original-From: Gavin Smith Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gavinsmith0123@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-texinfo@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the Texinfo documentation system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-texinfo-bounces+gnu-help-texinfo2=m.gmane-mx.org@gnu.org Original-Sender: help-texinfo-bounces+gnu-help-texinfo2=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.comp.tex.texinfo.general:3348 gmane.emacs.devel:312659 Archived-At: On Tue, Nov 07, 2023 at 11:29:24AM +0100, Patrice Dumas wrote: > On Mon, Nov 06, 2023 at 07:29:50PM +0000, Gavin Smith wrote: > > On Sun, Nov 05, 2023 at 11:30:42AM +0000, Ihor Radchenko wrote: > > > May someone please explain the correct usage of @anchor in the above > > > example and why the warning is being thrown? > > > > I don't think there's really much wrong with it. We added more warnings > > for nested commands, trying to define which commands should occur in > > certain contexts. We have given the @item command a class of > > "contain_basic_inline", which excludes anchor commands, as well as > > the cross-reference commands. > > > > I don't remember, or never knew to start with, what the justification > > was for giving @item this class. > > I agree that accepting @anchor and @*ref on @item in @*table line would > be ok. There is actually a problem with @ftable and @vtable. If you put an @anchor on an @item line there, then it is the text of an index entry, which is a real problem. @node Top @ftable @asis @item AA @anchor{xy} one @item BB two @end ftable @node Index @printindex fn @bye This gives the warnings: test.texi:4: warning: @anchor should not appear on @item line test.texi:4: @anchor output more than once: xy The anchor is processed a second time when the index is output. Adding further @printindex commands results in the same error being output again. A warning is also given for @anchor in other index commands, like @cindex, so this is consistent. When I have time, I will look at how the warning could be given for @ftable and @vtable only.