From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YJksLzmabGOZuQAAbAwnHQ (envelope-from ) for ; Thu, 10 Nov 2022 07:29:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CMpJLzmabGODXgAA9RJhRA (envelope-from ) for ; Thu, 10 Nov 2022 07:29:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8599B233D6 for ; Thu, 10 Nov 2022 07:29:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot11c-0003I4-4d; Thu, 10 Nov 2022 01:26:56 -0500 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 1ot11W-0003EO-EA for emacs-orgmode@gnu.org; Thu, 10 Nov 2022 01:26:52 -0500 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 1ot11T-0001nf-Hh for emacs-orgmode@gnu.org; Thu, 10 Nov 2022 01:26:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 068BF240104 for ; Thu, 10 Nov 2022 07:26:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668061605; bh=uKilTysCCYDlEEFBZiMMv2DeFEcgURhZ9Q4DKBLFmHo=; h=From:To:Cc:Subject:Date:From; b=FT0xVG6WkkP74Z3FgIi7kZ3TAUH37Jq6LCcng7IRnwQBbYM35vzO6EMUhKn7hKZMX HmYOex/kK9mswuZKspRxNmsZRbNvy8qyIbfN1OFB8CUBiSKbn8WuPBvb577zM7W6cW sIApYuVdyIAWEn24CeZgYfJ+/X0hp/K3C3KNBhef3NExaWu/0RdWEhpMbN3s9yicp8 Nk5ScfCWrwFYBdiLN2N6EKR2U2PDGYwPgrbEJITa9dfJUY8ZUYy8HZgPzzqHmlroX8 7xaCBOrpKJsJuPZ3DgrkP0YawsZwA+UscQiGZAJm4CSC5HcTEfr4DP5B3pOWz7WIyI CJZw6qU5Nh+dQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N7Bgl6BFWz9rxK; Thu, 10 Nov 2022 07:26:43 +0100 (CET) From: Ihor Radchenko To: Luis Osa Cc: emacs-orgmode@gnu.org Subject: Re: Problem when tangling source blocks with custom coderefs In-Reply-To: References: Date: Thu, 10 Nov 2022 06:27:24 +0000 Message-ID: <87cz9vjpdf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668061749; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9Y/guduoFEk2YaQyTb1z0S7B+V5TQTddjdCcYAp/jYc=; b=BtTuEKB4kCgw1wg4Hb3S1daYlEVKEyK+42rbWwlNv3G/2qDI17iSjJ/Yvh/1tfnb4tkmAR lpS8hdkarLAaKwv41rJWQeJkVo1vdP+LX/P0Gl55yjUM3q/aYmYU5HKWfkCdSLqlALY07A GHnF6/oVJ26uw5dteR2fSRWcNxdGg6POld/4SaU4xwTUJM32KxLFllK7UEVjKWVKaIXKQ+ evcN4Z1ng9yMOhrIeBpX2LTBhnXLYOYwbqnqGhva8IOvPUafueZOKHeVobfOyXgiT3Zczm FQ/R/LmxT1dPdK5Ap9Kzmku0VKB7pHY+jK2hkav90o39m4gktK9+ccrDh5zn+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668061749; a=rsa-sha256; cv=none; b=cUDIafEDw9i2VUx4u6+9rv3k2Xv/A/AwJvwbmJAhZOK2cvF1x60T4pjxhnKSp6gExpOEQy o8a1ngwBWSnyLGTrMwaNMSdPuF36tZJftIdQIbYU+Hj2svGO7MMQDslAI0OOrTKnk1NQm6 FRgeeR0L9G6OWk6JJv62wNTGDZESgrmR/s3VOTacVvRKCNyhbb1VmdDWVFEg6LuL3JsDl1 ivLRR/hRxN5mBqLcSKsVihzai3KNQ5NaY5rvGYjIcb7b2OnblFhN9resj6xAf1wCXCsmue 6XE6FSkk7cpwvhma06GIn69AXOwoSSrP5OetqVx2BOhgUZlvwPTKCAJHPsihbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FT0xVG6W; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FT0xVG6W; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8599B233D6 X-Spam-Score: -2.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: kGIsoPN4inBd Luis Osa writes: > I would like to tangle source code blocks that contain coderefs. I have > found that the coderefs are correctly filtered out from the tangled files > if they follow the default format, i.e. "(ref:%s)", but not if I try to > customize the format using the documented "-l" switch [1] to change them to > something else, e.g. "|%s|". I have looked through the ML archives and a similar issue appears to be fixed already. See https://orgmode.org/list/878s5rt81v.fsf@nicolasgoaziou.fr > Here is an example: > > #+begin_src python -r -l "|%s|" :tangle example.py > try: > sys.exit(app.run()) > except: |\label{line:except}\ding{182}| > sys.exit(1) > #+end_src > > In line \ref{line:except}, marked \ding{182}, we are catching all > exceptions ... Note that we only allow _-A-Za-z0-9 in the labels. So, your example will not work even after the fix. Not sure if we need to do anything about this. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at