From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sGhQFP4VUmW6PwEAG6o9tA:P1 (envelope-from ) for ; Mon, 13 Nov 2023 13:26:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sGhQFP4VUmW6PwEAG6o9tA (envelope-from ) for ; Mon, 13 Nov 2023 13:26:38 +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 E7DD110E46 for ; Mon, 13 Nov 2023 13:26:37 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=X8OuvjTd; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699878398; a=rsa-sha256; cv=none; b=cheukBoMItAhxLiHeBCk1qQ/bn0jqRizKXgspsTs4WgNRxdtq6yNVp0qALkH/qvGaTqJy8 MoBPjCmHiAnAZlL7y1me5V6OFOU49Zg0j8GZi3yXaM3b3p0bQxW2FAEgLWjzxuKZe0k+F+ bSrPAcjPaBMqYfybpCoLDe/rqQqaDRmnNIYwdlDbx25NDa/srRWAVCM7kgkwRdivvQ9+92 WTfSZTC/VELtmeWOCdNwL4VAoHS+gbG+3R6fPeAJhs6G6t8baFoGJjoYJYNp30ISA8y0YU IChjaDNLZuii9FLY599fRSMrrGEiWp+sSddJ2VAGsaYJoTpX/La9gibrCQjl1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699878398; 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: 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=Km6j913amq+KvDoI7kCc5mYJCzZfIpRZK97huD1LY90=; b=iuGVn47uVza3x2kUhgmIEx6uwcIyYISH8m8n/hluUmSR+BSh9JTpyAAHu2+SIVudBwWkM4 3/lEj4o+GczftX+B/xC/2Wy3l/eJwRz/woD7GmggNCBWvYNFVpTMBrUZ5NCsD2tBI98jL9 dwlpgu2Rqup5zunpRRdCQYLkLtRNxAcHFk+n0s6Vg8/kD/1HewmW0MomUc04kgsSaBepmu XWaHh2Sqtm66XBSv3mh9lS8TckTqOYnnr6Lfih7A+3/yyACtMajv8HOv+Vz77DAb5A+d9+ 5HhlqPqItlbrEh10Xzc/lnZSCF20KSWnQtIRK2odzIln1++QD7+CMGoCBQwEXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=X8OuvjTd; dmarc=pass (policy=none) header.from=gmail.com; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2W0b-0000dl-1u; Mon, 13 Nov 2023 07:25: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 1r2W0Y-0000dK-Ik for emacs-orgmode@gnu.org; Mon, 13 Nov 2023 07:25:38 -0500 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2W0W-0000g3-DZ for emacs-orgmode@gnu.org; Mon, 13 Nov 2023 07:25:38 -0500 Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7a689bd4928so127874239f.0 for ; Mon, 13 Nov 2023 04:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699878335; x=1700483135; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Km6j913amq+KvDoI7kCc5mYJCzZfIpRZK97huD1LY90=; b=X8OuvjTdwFIROA8UgW9UUx9BHA1eswcE8VuUglk+hS48K0J9v0kRq5GHdTFh6E3TVe rhyDQCcsKHw2Zxx/a2RwKnnmp8TATut+lQ17h0D0dRQv0HsZfm23If5255NrHmzwVOX7 szxOidfhvBvi2ISPQdRGt4jrYMX0nipdqW4HBFdNIyReoPp15LnD0DUxz2Iq9G2Ts5jx +FcBe2KScEWFUmxHmuk/EUYD/sROmeinhMfBAKw8K0u/lSd39fujAVcBvsgOtLSLcWjd rl8Ff9JnVKWhcRgzKgUl7aw+YQUDJOwHX7OmoCmZlFLy0Igeek2gFRqxEp0fdeazLr9S /JkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699878335; x=1700483135; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Km6j913amq+KvDoI7kCc5mYJCzZfIpRZK97huD1LY90=; b=sET/1gBcK+ZtS5HoVFup2V827A2IpTHITLQV9+9S3kTw6KS5HmM0one+00pU0fLBx1 +NcyxkED3RJxM5QoyIyalA5nt9WJlBOygzKm32rQ1hiyq/9KO0RR/4Pan0xTxICnMjpz eCXkE9zUuWmxF+P3txRM9LYTyFqCi+mpe6ERc8nQqJ7BLHCVy+W0lzfW3Owv0rrrXen2 a83NkIJz/ZYjwsG4PtmtyC/g/1fSvDyk0D6FtfJTzTwzWedX3VR+yGTmnnP4PkFK+2Mj R/g6Mgo+NgCKYN5mzxBlhkh2eNjRZuteDC2b4ZDtMJgEXaqpX+lT1z3qxGhGh8zq9Nen 7TMg== X-Gm-Message-State: AOJu0Yy8XrzloD7FNRSDhhXWCtOCo04HvXP2/4J+3Iu/4TRtdRxRkhvT /gV3IWEUWUaCXO56XpEhw4V/XR9kaQ8= X-Google-Smtp-Source: AGHT+IEWUH5+ju9p8nBOmysOjaDlWnMTBai8rsQZSlpubY6IdscP2c5OFQaKdro0nA2hy0yzjoHijA== X-Received: by 2002:a05:6e02:1be6:b0:35a:a2f1:5910 with SMTP id y6-20020a056e021be600b0035aa2f15910mr10497077ilv.10.1699878334774; Mon, 13 Nov 2023 04:25:34 -0800 (PST) Received: from smtpclient.apple (cm-24-53-187-34.buckeyecom.net. [24.53.187.34]) by smtp.gmail.com with ESMTPSA id f17-20020a056e0212b100b003579c7d376csm1640812ilr.35.2023.11.13.04.25.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2023 04:25:34 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: org-src-font-lock-fontify-block is unaware of org-edit-src-content-indentation, leading to fontification issues From: JD Smith In-Reply-To: <87edguujzd.fsf@localhost> Date: Mon, 13 Nov 2023 07:25:22 -0500 Cc: emacs-orgmode@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: <51424ED6-CFEC-4A6C-A0F0-9D0FDF4CB1AA@gmail.com> References: <371CA9D8-B187-43BF-B6BE-B2122627C068@gmail.com> <87edguujzd.fsf@localhost> To: Ihor Radchenko X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2c; envelope-from=jdtsmith@gmail.com; helo=mail-io1-xd2c.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, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -6.41 X-Migadu-Queue-Id: E7DD110E46 X-Migadu-Spam-Score: -6.41 X-TUID: TcOcxHVhGJ0r > On Nov 13, 2023, at 3:37 AM, Ihor Radchenko = wrote: >=20 > JD Smith writes: >=20 >> When `org-edit-src-content-indentation=E2=80=99 is non-nil (default: = 2), editing SRC blocks preserves this amount of extra indentation space = at the beginning of each line of the block, removing and then re-adding = it on round trips through `org-edit-src-code=E2=80=99. >>=20 >> But `org-src-font-lock-fontify-block' does not consider this extra = space. Instead it simply copies the full block verbatim into e.g. = *org-src-fontification:python-mode*, as if the extra indent space were a = legitimate part of the source. Normally this wouldn=E2=80=99t be a = problem, as faces are attached to keywords. But for any fontification = that depends explicitly on indentation, this leads to incorrect results. = For example, my indent-bars package adds indentation bars via text = properties based on absolute column position. These bars are then = offset in the displayed org src block by 2 columns from their correct = locations, due to the extra space org has put there. >=20 > Duplicate of > = https://list.orgmode.org/orgmode/CAOn=3DhbevUMGS0-qMTy8kB4-db65s1Tmn0cQJcw= 8b++PZZ=3DvULA@mail.gmail.com/ > Handled. Great. In Org 9.7?