From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel,gmane.comp.tex.texinfo.general Subject: @anchor on @item line (was: emacs-29 889a550ca08: ; Fix Texinfo warnings) Date: Sun, 05 Nov 2023 11:30:42 +0000 Message-ID: <87msvs5tel.fsf@localhost> References: <169796650463.2984.6470791064475342706@vcs2.savannah.gnu.org> <20231022092145.0486AC09BDB@vcs2.savannah.gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25211"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arash@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii , help-texinfo@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 05 12:30:05 2023 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 1qzbKO-0006MX-Ch for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Nov 2023 12:30:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzbJR-0008OD-Dc; Sun, 05 Nov 2023 06:29:05 -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 1qzbJP-0008O0-L4 for emacs-devel@gnu.org; Sun, 05 Nov 2023 06:29:03 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzbJJ-0007lG-4h for emacs-devel@gnu.org; Sun, 05 Nov 2023 06:29:03 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B7999240103 for ; Sun, 5 Nov 2023 12:28:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699183733; bh=mCNO1Uk4ZvB4x5xe0wv5CaMG2km38d4PRwO0ovsmMR8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=QaRQrPo+8MjfWtBaYKBi1GiFxUxDn8ZOzympFGVuHTrSvyFDDzTduD7XNxF9pWbpq vmAAPVJBTVFuOUuL/yEEKACcyWSlNIQfZDeRaPsphiUgDS/TfzOchUl/rszKWxIfzq qJ13/Has7sEeXtxhvft0Vtrr9ZJyU27EZf+ZieJh4ZpLLK12UwtZDFYBIVzrT6QUP3 qMP4fU0sSVpS5J4tlL+8VliqK90qF5WB9ihuYlJE1kU2UdK8/GfIOKwZvZM4G+UPhy y9xpBiwg2Rw87ajglIrIlyv6ewotl4EbQ2dvCOP2RPMuQeDPaTbOzOqAMURi6Mpj5N pTpLe71uI2qCg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SNXLD75ZHz6twg; Sun, 5 Nov 2023 12:28:52 +0100 (CET) In-Reply-To: <834jigmeb3.fsf@gnu.org> Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312242 gmane.comp.tex.texinfo.general:3345 Archived-At: Hi, This is a question regarding a recent change in Texinfo. AFAIU, @anchor in Texinfo can be used to refer to arbitrary place in the document: https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#g_t_0040anchor In some scenarios, this "arbitrary place" can be located _inside_ an item. However, there is a warning being produced when @anchor is found on the same line with an item: org.texi:15975: warning: @anchor should not appear on @item line The problematic .texi source is @table @asis @item @samp{OrgOdtStyles.xml} @anchor{x-orgodtstyles-xml} This file contributes to the @samp{styles.xml} file of the final ODT document. This file gets modified for the following purposes: Here, the @anchor is referring to OrgOdtStyles.xml file and is not necessarily linked to the @item itself. May someone please explain the correct usage of @anchor in the above example and why the warning is being thrown? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at