From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gEqRJkqElWOfIAEAbAwnHQ (envelope-from ) for ; Sun, 11 Dec 2022 08:18:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EBSrJkqElWN/UQAA9RJhRA (envelope-from ) for ; Sun, 11 Dec 2022 08:18:34 +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 37DB9725D for ; Sun, 11 Dec 2022 08:18:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4Gah-0006lg-Ix; Sun, 11 Dec 2022 02:17:41 -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 1p4GaX-0006kL-Kj for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 02:17:29 -0500 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4GaV-0004Yv-Ni for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 02:17:29 -0500 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-12c8312131fso4939263fac.4 for ; Sat, 10 Dec 2022 23:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=gn92VSWzt+XpCVlX6fJoyhaLsM3dlhSB846zYvb+ZDM=; b=fL5CtkAnhufopH5VRIZbsBQ1AiujBd+lLZI3sT2GbEZcGpBNUZ5ZmJ1H9yoEywQKp1 1U7YsKztfj4yUIZBd2sUwHzqk2aV22AGtkwywHeCYHIHP0Gsz8zzl1nuJ+7+wA7595Yi fa54hZebV1F9CB71n27xKsHX1KPNRqWI9rZr5weGiZeVSOJuNaAsWiZylg4K3p4rmAh9 ycUGJMRRCPxJ2lCr0T4esoOJ+TUkNsFS+e9tUeiUkpogxTcGG3LWjgss1rw0lIdm2Cdt g6yLV/2JddFI3YyMHo88k9nlU87Kz7SNd4PplGTx3Ve2i5KSxR/bKgAnKAYDjWMqWwNz D7vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gn92VSWzt+XpCVlX6fJoyhaLsM3dlhSB846zYvb+ZDM=; b=qKzWN+DKi3l/e2Rn7/JFpy+yCZoom322sSzsVlE9xbjRcQV3hbzUXnRk8epfqQ8U9G 3laO9y8anXDIBHgiqhjJ0khsKNoaWbrA7V2uK+zTwEoiAzNHarTty2KoLLUUQW3nvvo5 5KTHafk2pIM7ogVWYFjwlH7Xg1w5KNjjL1pSqerudkzDNVONRaVjZ06eCh0EMVM8z+Zm kMnnwicnXMh3ENVXOLmukCzgxBTliv8NncSxtGfgC+dUH/CFDDU3dCh2HX9tOZRTIHRR j3BUzzrq3AXqFJfYdfUAVpvOzexV8CHBL4/2XBjwzuoIv0f/apQw+h/CLlxqhJJ/2TnF 4c9g== X-Gm-Message-State: ANoB5pnYg7cxrwiR41RAWiBoWJdK15FxBSVZR7g9YbZuSsViVnv2LjKt UQbCmBWcvRnFAeBRei8XY0Ims6kGm2rjBTCil1ltgkicGII= X-Google-Smtp-Source: AA0mqf7E/PQ7z8HNaz16tZyplfL6pKkVK6GRoXSxO+cbIC8bUPGmLafzsuFZ++XdKzQUSflVZCRrYtVQ0l2iNYUgry0= X-Received: by 2002:a05:6870:b28a:b0:143:ffca:30c8 with SMTP id c10-20020a056870b28a00b00143ffca30c8mr20217213oao.280.1670743046372; Sat, 10 Dec 2022 23:17:26 -0800 (PST) MIME-Version: 1.0 From: Pedro Andres Aranda Gutierrez Date: Sun, 11 Dec 2022 08:17:00 +0100 Message-ID: Subject: PATCH: don't emit empty attributes for lstlistings in LaTeX listings backend To: Org Mode List Content-Type: multipart/mixed; boundary="000000000000ca89f005ef882d7a" Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=paaguti@gmail.com; helo=mail-oa1-x2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670743114; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qwa/2+lJM3nyAsBM15IIXHvi5RndRUOTLRDw7y1YfSc=; b=lPtAm5jFq4BPtonhODsq0WjnINTm3CpoJPQEZe3OGFKZv53SDq6tfhBASnUWpGQvMCx44Y BUWszh5WB6R8sWy0zsWPdDtYWWLn/tj/L7spXYdA75rbIzZBNmELke+afWnsJuZ4Fc4fPq WHUBBOa8+G3pnyXQAIyWVcCFNhYTycoSnKfudWPGV4dVR7JQy4QYkonVZcY8l+WWRoICQi 0VA39H4UmohFDcWU5iWV3SDqDtopaKcyPkJJ6y+ke6zVpAO/HHwVjNDjY/6aOXwrwsQFT2 8HJAl0vGyIKuag8dBAGy7JzePZDTXF+HnH+6GAFhtvVY/IcsyYl8+yh2/qC//g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=fL5CtkAn; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670743114; a=rsa-sha256; cv=none; b=ZlM4Xo63vlH0yQ9ATbvUJpPikD4B+qCv7rSl7jnkfG8SVrnjdccdKULLepiIJ6dbWshYzD qBtwmxrc1DWtYT8necIqa90H4cL8A5G1l+hkfYXI/65die3f3BVpJ0GKDsIe79KPjb3plP u6rbEzhV15RoK+rrzwetPG49MOZsZCNyIKu6KBaBK6tYIWm9Lu8NGiZpFvn/4aigxZfCK/ ckGUqzSPMzJBAeY9flN9ssFvQh3JHlSV2S2yONMA9HkZBO0PEz+qVacs6JFgBKJN8SIUdU iYULmo1JF0qVJqlDOAv00H2/jEYM09qZwvjDs+KaAbeNV+ET1zg2821FHBPpYg== X-Migadu-Spam-Score: 6.55 X-Spam-Score: 6.55 X-Migadu-Queue-Id: 37DB9725D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=fL5CtkAn; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: IojXyMsReMn5 --000000000000ca89f005ef882d7a Content-Type: multipart/alternative; boundary="000000000000ca89ee05ef882d78" --000000000000ca89ee05ef882d78 Content-Type: text/plain; charset="UTF-8" Hi, attached is a small patch for the Latex export backend that suppresses emitting empty labels and captions when exporting src blocks using 'listings. This cleans up the emitted LaTeX. BR,/PA -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000ca89ee05ef882d78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

attached is a small patch for the L= atex export backend that suppresses emitting empty labels and captions when= exporting src blocks using 'listings. This cleans up the emitted LaTeX= .

BR,/PA
--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
Headaches with a Juju log:
unit-basic-16: 09:17:36 W= ARNING juju.worker.uniter.operation we should run a leader-deposed hook her= e, but we can't yet

--000000000000ca89ee05ef882d78-- --000000000000ca89f005ef882d7a Content-Type: text/x-patch; charset="US-ASCII"; name="org-nolabels.diff" Content-Disposition: attachment; filename="org-nolabels.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lbj15c140 ZGlmZiAtLWdpdCBhL2xpc3Avb3gtbGF0ZXguZWwgYi9saXNwL294LWxhdGV4LmVsCmluZGV4IDVi MjlhMjg0Yy4uMTI5MWFmZjk1IDEwMDY0NAotLS0gYS9saXNwL294LWxhdGV4LmVsCisrKyBiL2xp c3Avb3gtbGF0ZXgu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iYiIpKSkpIDsgYXMg ZG9lcyBjYXB0aW9ucG9zIHcvbyBjYXB0aW9uCiAgICAgICAgICAoY29uZCAoKGFzc29jICJudW1i ZXJzIiBsc3Qtb3B0KSBuaWwpCiAgICAgICAgICAgICAgICAoKG5vdCBudW0tc3RhcnQpICcoKCJu dW1iZXJzIiAibm9uZSIpKSkKICAgICAgICAgICAgICAgICh0IGAoKCJmaXJzdG51bWJlciIgLChu dW1iZXItdG8tc3RyaW5nICgxKyBudW0tc3RhcnQpKSkK --000000000000ca89f005ef882d7a--