From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QDhRGCDK42CSbAAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 05:12:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +MUAFCDK42AtawAAbx9fmQ (envelope-from ) for ; Tue, 06 Jul 2021 03:12:32 +0000 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 BAE8B18C56 for ; Tue, 6 Jul 2021 05:12:31 +0200 (CEST) Received: from localhost ([::1]:60364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0bVd-0000qm-9o for larch@yhetil.org; Mon, 05 Jul 2021 23:12:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0bV9-0000qc-CT for emacs-orgmode@gnu.org; Mon, 05 Jul 2021 23:11:59 -0400 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]:45832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0bV7-0004KJ-SA for emacs-orgmode@gnu.org; Mon, 05 Jul 2021 23:11:59 -0400 Received: by mail-vs1-xe35.google.com with SMTP id h5so9382521vsg.12 for ; Mon, 05 Jul 2021 20:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=43vCUt1DxIfxF6dCEujznonSsgCEgeHQRAVvBzl4Gh4=; b=UZ0OHf8eFqyuxoycZ4z8zHZmTqq/pKOZS5lI6Tn94A0GLoOcv/s8m8BDqGzhzjOmAv xIkpq5Kv8nxNLu9aVfgBjViHTmRAwfhINXY7KMXNBiKTHfxNtIf0Pv18/IRETycYBcAx Srwwu2S1rGCegbH14Y+Yo88W/6dk7NS7/mG2x44CckT5U5Obos4usf7XeInHuhviFMwI CEI2iQGIPhYzbTtyQ9MHxwyMtaQ1IOeuunk06+ADY8H6O0Ynw/ysHRpZPxIpH5inrLUU QEHGCnhJAb05jHofSvDSCmeP2n89uKNpqjApFzu3AhDOrpeC4f2jbqYbD/Os/gebCwvK ux1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=43vCUt1DxIfxF6dCEujznonSsgCEgeHQRAVvBzl4Gh4=; b=sxSeO1AhPljuATuZADLwE0wiOGqspeJFv4W7AOFdf3Sct+zFk1W7z6fBfLD93cZDdU NxWFxcTXy0RomHnlUo2NL/9i6MPJ1OV26v2A58r3xvpFNGZgnaeY1qd6tpzuyTq0QTBl 64VkTXAVljhXv9lBaWpVQ6Rp3XnSb6+KiBoEjmOxFMVxebUX7Ongv3foi9u6khBm1kOD bWtc4xEqNUxc41hG3vU4zrX8HZka/GNAjDat52+XV9TnMOSnyiKYRub8H0nCPSbCRxFn 99ve62jv9X6ByDV1rBJtBNtNrSKhxqJwQMTXQ/jiDFiXeq9dR6RrEM9c4fd8y6TmyOqQ Us9w== X-Gm-Message-State: AOAM5339VInnLYdqP+zH+uHOfeqwHLA2GU4k23YSq3c/oWFSnE9eiOiJ 3CWFcLk3Csoi2BqcFUMNpMyOXZpqwm/SjvAzOeIpvGP1i0o= X-Google-Smtp-Source: ABdhPJyIlnE9xTTSZOI+SI3AUCgn7qfTGgSz+QyeVbP6fErfn2QwULJeO+L4wAGu5WNqqb5KJ2peIpWe+wT8wWvN8b8= X-Received: by 2002:a05:6102:e0a:: with SMTP id o10mr12402540vst.30.1625541116410; Mon, 05 Jul 2021 20:11:56 -0700 (PDT) MIME-Version: 1.0 From: Matt Price Date: Mon, 5 Jul 2021 23:11:45 -0400 Message-ID: Subject: add #+ATTR_SOMETHING to headline? To: Org Mode Content-Type: multipart/alternative; boundary="000000000000cfc02a05c66bc8df" Received-SPF: pass client-ip=2607:f8b0:4864:20::e35; envelope-from=moptop99@gmail.com; helo=mail-vs1-xe35.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, 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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625541151; 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=43vCUt1DxIfxF6dCEujznonSsgCEgeHQRAVvBzl4Gh4=; b=J7qDzSEPsiYfhE72OgUCO4zkYyRJ+rsskKKviM6mp6wu/3ap7+uAIEfnpXPXsEVJchxd0g W7LgUr+ECKBOKpn6YRGhPjAJ7NnOYh4U9ZUofTn8LNJqvXCnnrbgQGPjEUHYQGnXz6KiG0 WFHwleMGnf52Qad3d14ehqTjqExDtrefektuszZ7A0lLzidMKJDlF+ckuoQxyCKngWBV5j sNIWbBnfWV3qKbiRA6VF8lE6eyk1XNm14GsVb9T5VwAt2XFZXijspgMegJoIoMT1epQrQA uGKx8RoZtrjhndPiQXd5cXcJ7RnTfvlldvs0peH4GrmyXVpvWdv0kLO/qduUlA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625541151; a=rsa-sha256; cv=none; b=dZlDFjN+pU5oYg7LuIuqM9SUO94OJeYS3uATdgPVzqaAHqgoPxY4keS672RNIHz1BxsxSO k0btpK55HGhxQkzLoFPKAa9v0tJhmKRH+GLM7xxsjvGdKpt1IQn2Op9AfpW72GHrkLs43l rKS4AnNMrNr3XZP9fGhiiFOqIY8/81ss7eb/4rMDLc2MP2nVVoRgNo+VH1EZAj1vqmMP2M ROctzV/uhJVFwJMaJx4XaHZe/AJCTqFLHWwJY4S68F2vWaPUEC8MZ5EYjUfZIcO+Xtwg7S DfFzgKPRJf11CgVieoZ/hFqwUZyugYB6XaUg1sqahM7asiuX/Kyvi9uRgYDBOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UZ0OHf8e; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UZ0OHf8e; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: BAE8B18C56 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: +ICgH3Eq4kIN --000000000000cfc02a05c66bc8df Content-Type: text/plain; charset="UTF-8" Does anyone know if attributes get attached to headline elements during the export process? I am writing a derived backend in which I would like to have a line like (let (add-toggle (org-export-read-attribute :attr_canvas_html headline :toggle)) ....) But as var as i can tell, the call to org-rexport-read-attribute always evaluates to nil in a file like this: #+ATTR_CANVAS_HTML: :toggle t * My TOggle Headline Am I missing something obvious, or is htis not possible? I notice that none of the org-xxx-headline functions in ox-xxx.el seem to check for attributes, so maybe this is by design? THanks, Matt --000000000000cfc02a05c66bc8df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Does anyone know if attributes get attached to headli= ne elements during the export process? I am writing a derived backend in wh= ich I would like to have a line like

(let (add-tog= gle (org-export-read-attribute :attr_canvas_html headline :toggle))
....)

But as var as i can tell, the call to org= -rexport-read-attribute always evaluates to nil in a file like this:
<= div>
#+ATTR_CANVAS_HTML: :toggle t
* My TOggle Head= line

Am I missing something obvious, or is htis no= t possible? I notice that none of the org-xxx-headline functions in ox-xxx.= el seem to check for attributes, so maybe this is by design?

=
THanks,

Matt
--000000000000cfc02a05c66bc8df--