From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iNY5OkndYWB2nAAAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 15:59:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ECIrNEndYWC2RgAAB5/wlQ (envelope-from ) for ; Mon, 29 Mar 2021 13:59:37 +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 3B45522C6D for ; Mon, 29 Mar 2021 15:59:37 +0200 (CEST) Received: from localhost ([::1]:38956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQsQZ-0003Ab-S9 for larch@yhetil.org; Mon, 29 Mar 2021 09:59:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQsQ2-0003AI-4E for emacs-orgmode@gnu.org; Mon, 29 Mar 2021 09:59:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQsPz-0005ut-MQ for emacs-orgmode@gnu.org; Mon, 29 Mar 2021 09:59:01 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 195B02400FB for ; Mon, 29 Mar 2021 15:58:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1617026335; bh=M2JaWfN3oZLoIUnf6FvNZmvtZemBQCpVjqwIBH3Lv+w=; h=Subject:To:From:Cc:Date:From; b=oiGm2VY+TQuQA4REggr/hE04AKZxFcZOUqB4++uBNI5+rbgjsCmIL30y4swcQuNW2 5ucJ2QR1g+ft0LnYXL2y1K7iXvx+eo7HuI27naQdrW49lltkfw+dluDMNgJtbe/ql9 SHhWpnxb3hAvQjDTWujWovlMb9udgs2jckbXMSWoKJkOzNax36e6OEYjY2mDmowunR Iwe7MulGa3lF2zSVvDRYdWD7kUncURWdsP2NyTx6DoiCUlp4iI45y/cCGefvN5nDQm 7kZUVe2rdxn94GriG7c7xE2neBLX/u/oY6Q5SAtVfsiUk0NjrplEaRlWZ3ldbyosTi vjg/Kg69tktTg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F8DhG3wckz6tmP; Mon, 29 Mar 2021 15:58:54 +0200 (CEST) Subject: Re: Why is there no inline-src syntax highlighting? To: Timothy References: <87a6r6avgg.fsf@gmail.com> <87o8f2kta7.fsf@gmail.com> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <4ef07c13-482d-734c-aa17-479439493c68@posteo.eu> Date: Mon, 29 Mar 2021 15:58:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <87o8f2kta7.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode@gnu.org 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=1617026377; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=v06mcPLeR+IsnwqmMsZ3GQF1T8Ic3utPx77xEZwq0Ro=; b=UreFPkqMVkwcq2wnW5CZmZ8Gi0HxlsZdW/vO+msxtGpTbt3aOea+tUW93k7U5YfmT5xH8P Dnt2mRuvCJItZo4nPtZ1iDTENi/2ZVPm0EP2njXA3xwgROORJ2E/GUEax379RLNrlhjv8J t/E0a2wJL8L9gzNVx4OkxkKVHagvlvZDwXIGjpnI8t1XyWc7J90eZUJsBkqqv/77gNEi2w Mp6hXm2jABlEJo/YTu/gwQ0zcEgsrn1rH5rACOb+WMzOUCK4+ao4wO+GkPS+GZXHj4h/8o LHe/Ho/Y7dzYE13VLIWrQlpb1zjQT+7XiBojyWSaUJlDHTTBvzxEOtIELJRfBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617026377; a=rsa-sha256; cv=none; b=rDcQRHak2g94pVM58rxEp9jV8T+BaWHiFvCv2qu5YH9tiS6X52bRsiUOnvLkAb5jQ0Ldbs RdXBxiFt9Q4wwfJZhEpBXsniJm2OqF9OiliyJGMMSI8aqKZPL15imJUM0TZAOB8n1nEIrW xWmF5DfVCpuQV1kSZJuNgBZGy35G4qhmJMq5z78kXbTHhvcEpBu0/dUJMVdCIIXp5ReMOK nAKojChP3siZcV/O4rDQJXJ8IhFQiFpxJaQ7oXc1qF4go1N/rYVcE/iv+qfh41p+SqRAMt wN2NdMk5Ovt5DEtayDZ5/cOV8RJODt+rzhpElYEzd+onlB4p8BMYAzZROQCn1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=oiGm2VY+; dmarc=pass (policy=none) header.from=posteo.eu; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=oiGm2VY+; dmarc=pass (policy=none) header.from=posteo.eu; 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: 3B45522C6D X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: CAf/61ZeRfYC Hi, I don't use inline src blocks, but your work makes me want to start ! Timothy writes: > there's just one thing I > haven't been able to work out --- how to have font-lock apply to > *multiple* inline src blocks on one line. With multiple inline src blocks that each have a result part, fontification appears to work. I think there are these two issues with the code :  - When an inline src blocks has no matching result part,    `org-fontify-inline-src-blocks-1` returns nil. It should return t    instead, then it will be called again, to fontify the next block.  - If an inline src block without results is followed by a src block    with results, your function skips over the second src block.    Perhaps you should assume that only whitespace separates a src    block and its results (this is already assumed for subsequent    evaluations of the block  to replace the results). Regards, -- Sébastien Miquel