From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6HT8AMw7j2AlXQAAgWs5BA (envelope-from ) for ; Mon, 03 May 2021 01:54:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8BJHOMs7j2D2YwAA1q6Kng (envelope-from ) for ; Sun, 02 May 2021 23:54:51 +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 76F1DD239 for ; Mon, 3 May 2021 01:54:51 +0200 (CEST) Received: from localhost ([::1]:49876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldLvF-0006QQ-DP for larch@yhetil.org; Sun, 02 May 2021 19:54:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldLur-0006Q9-JQ for emacs-orgmode@gnu.org; Sun, 02 May 2021 19:54:25 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:41737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldLun-0006vi-B0 for emacs-orgmode@gnu.org; Sun, 02 May 2021 19:54:25 -0400 Received: by mail-wr1-x42a.google.com with SMTP id d11so3733423wrw.8 for ; Sun, 02 May 2021 16:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2pwYKbmxcKWBsQV/sbqEb78vyBVdvs6Bl4/0tb2Mqp8=; b=QVrEgZ7eVp9Z5w5KLCj7evhNCErzKpCNo++Y/Dh5wuQQc6ufJ8fHkkN778E5vRrYBJ /lo4SsxAq3e5Hn4QEnLF4HtIsJuGlWzEDrNLozLCyfCE8n5jzFHbRW+rIZg63TuM9PWw qMVAPkYWbQUXZWTTNrDEWQrDaEj/xAxv687mRqcWWt1VvZw23gkTRxB3wprmqrNCS2rz u3D7b72y2/QRdN4/eMDqq80Pn1v8g2Y+23I/Qj/YJx85dZG/c9sz8sjoKJCRhCNEn8Zh Qmi7p9CcubJ0ZT+WTAJ0sDI6KJeTFQ5ZuCC8RlQ+eckyOVS81wUbrcmAsvSYTD1lVP1Q q5DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2pwYKbmxcKWBsQV/sbqEb78vyBVdvs6Bl4/0tb2Mqp8=; b=geRUyITcbqhkJOIw7rY+LdyhJki7Z2Zh2jqAab56FCTg4xD7nxI0h8F4RNt0OrinGq fyE30cqAx2xgvYTIUFvXbdnYfQJGBnlLlsiIroarVOHoJHyYRUUTOFM/+jadF4WmyZOC CDBsg0xxDKGq/jenwUKR1UEzdbH30Dv/ylyb9X73G/jOHsIjwTDTQzaZNP/LW0f/hEti ANBGEhb0M5p2WFsoDgX8s4z3u+dwLnR47RgS7jAuL2IDpGYt0eK0V/Nrv88/CaYWylFT V8SvnvX1/ztEQGgJxCOCFDY7FpeVqWAiaD0e/jL1rVnKvvhdZ25HgDBtre0gpsHO8KU9 y9hQ== X-Gm-Message-State: AOAM533g/uGENs7dlnAtiX29AYVKd15ePUebrIwRNkXn9gbuU54ImJr7 /vyEzzeWnlpyTSeEy4MD+kpiC9MiQoiD5kGHdfw= X-Google-Smtp-Source: ABdhPJwEQpotgNiyveLXZxdfPA+ia66dp6cLKhCWeyOzUssLMW1xXp6XsYJhs8ExrKf8zoW3V7eTlSV//xWVIxHYeUs= X-Received: by 2002:adf:fb07:: with SMTP id c7mr21526934wrr.88.1619999659697; Sun, 02 May 2021 16:54:19 -0700 (PDT) MIME-Version: 1.0 References: <87pmzf4bd0.fsf@gmail.com> <87pmye51a3.fsf@gmail.com> <87zgxcgaba.fsf@gmail.com> <87r1iog85d.fsf@gmail.com> In-Reply-To: From: Tom Gillespie Date: Sun, 2 May 2021 16:54:08 -0700 Message-ID: Subject: Re: [PATCH] Fontification for inline src blocks To: Timothy Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=tgbugs@gmail.com; helo=mail-wr1-x42a.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, 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: , Cc: org-mode-email 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=1619999691; 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=2pwYKbmxcKWBsQV/sbqEb78vyBVdvs6Bl4/0tb2Mqp8=; b=VK6fRATR5bEUUcavwsKxw8EF0ieD8oYdqKLVCEnsDnxNMc005pl25CQnoUqXF9v5eEVYLe PJT0M3DI3afm9clxhydwjgGqqI25mSe+1bdIK1SKm07wvgV3sJJkl6dNTKAbPqZYMuPppf upBM3xepJpA4ShAiHH8l9x+84b4JwYMePvbgy03X0rk+cKFJBVBm9VMe8OFj6Jr7avb6Eg 0pH0zUHKUolc2GYdG6zpVljx9Ax/tiaRTKok7KtZx7U3E42I9gUSGXu6MoyZayTbKp6Bk7 0CPxCgkzG5B09i2hJc1JWa96N1tk0kF1dfxycYgGWl9812Fic0gwIaoCjHut8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619999691; a=rsa-sha256; cv=none; b=U4+NXkUAoXwbNBInK/1F690ULl9BgjxkQLDdEFGwuhTLqg9ZREEXZLo90rRRKWdSR5PULU XVEfuKFktKmmchztC05GFGoTm9g+p/0W3tntG86eQ+pE9AN6RK9neOrTJ3azjw7dvlNbiU wpBjE21CKFemY1fVESPhYRskKkug+NeHHTSqxMryRKqpK5aN4dIdhFOhyYjvTVF2vqqZta ejioeM6d1x981N4aukKg926hb1jQTN8pJ6T1Zw8Bj5+84ZNrmuGLZq9+I1BFdcFCOYepMn JysKInZ3Yy7zRW2vo1ueGrg0ZBgdyPAx14imQ+ngoQGiZzIV0LcZvhTb5dp56g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=QVrEgZ7e; 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: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=QVrEgZ7e; 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: 76F1DD239 X-Spam-Score: -3.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: j8t9W0sEr0H1 Hi Timothy, Another thought about this. In some languages (e.g. python) blocks require an explicit return by default. It would be nice to be able to set header arguments in the property drawer separately for inline source blocks in such cases. src_python[:prologue "x = (" :epilogue ")\nreturn x"]{1 + 2} {{{results(=3=)}}} A quick review of ob-core and a check of the behavior suggests that there is a concept of inline-header-args, but only for default arguments, and that :inline-header-args:python: does not work. Extending the concept so that inline blocks can have headers set via property drawers separate from regular blocks seems important. Especially because inline blocks can accidentally inherit header-args that are incompatible (e.g. :results list). I don't think these patches depend on that though, so probably better to deal with that separately. Best, Tom