From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UJe/EvDPq2C5JQAAgWs5BA (envelope-from ) for ; Mon, 24 May 2021 18:10:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QJNpDvDPq2AvZAAA1q6Kng (envelope-from ) for ; Mon, 24 May 2021 16:10:24 +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 75354203E3 for ; Mon, 24 May 2021 18:10:23 +0200 (CEST) Received: from localhost ([::1]:43148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llD9q-0007BJ-Hg for larch@yhetil.org; Mon, 24 May 2021 12:10:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llD7c-0004kf-NO for emacs-orgmode@gnu.org; Mon, 24 May 2021 12:08:04 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:33343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llD7a-0000dV-Jq for emacs-orgmode@gnu.org; Mon, 24 May 2021 12:08:04 -0400 Received: by mail-lf1-x12b.google.com with SMTP id c10so20386714lfm.0 for ; Mon, 24 May 2021 09:08:00 -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=xRZs9gXyMYrSTeZfRd6VGy9iy8kFwmTnPKxcCWQ6Ru0=; b=RpH8oI7XFPvQhiEN5KmSDjOTfTLUf/bi08eXjeMuJlXHGGtIGCnCaLlJPwUG7KddZX Ti7iRw9mc8FNcLL3U6H7NdOTrGRGwF0SZH7S0LpJfh9hFrcpPDi3Lt4pELpjBm8tJ+/6 btA7UNOX3zH6QV/AU2yu7loXk6cgDRqpvcBltSKHs0Xz6BEohJB4bujKg2P5hWhy69vb voz9xAH4U880A1JEsyB+yK7LxTPuO9sZzY+pFNWw/BQzdOB6KoKXa8A/3FSA8NZB5EDQ rcp5SzpEOC18+18EnWV7OOR0iQLzODYBCCLJeTDEpGGvZxa0s9mRAqwTPr1vo3Gzh/xz igBg== 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=xRZs9gXyMYrSTeZfRd6VGy9iy8kFwmTnPKxcCWQ6Ru0=; b=QJ7x8P4AH4UC+E6y/ZxgW28ALDasrgrY4Mi6IwGMsPWVhszeLWXVQbHGdCbndIdIAi QQG69VN1qFljH1y4xy9rTVPNG1S5hpSg2UfsQjz09rTUpSsz8Ii4eGvVfMn2XXJpaQUZ knS+IrpfLqJIF8C9fWeQpNZ0RfxusulCg2/PHpXMoxtaayLn/4hIaRPc+is+itxsx6fK bB6UN5TH/j4kSm/M3yj5fT6DWjpGEbX0piH1pi1iFt0n0p0dIh5aMhRDb2zkGf87o/pd dYGGzJcNS0fhy3L6IA2wCWsnT49EY/Egn5rxa9x7jYXVhQsElt4dlIeKwLPmDM/w+3N6 BqgA== X-Gm-Message-State: AOAM531I+6K7eQySf+WQWU3dLfUxLh7DOwUMRFvAX0twqS+jT3/eUt9Z Ea3oRnAaxQRWctu054ZhdnafqY67SJZldo94cqDB7+0T6qNVfw== X-Google-Smtp-Source: ABdhPJzOL9+BlfJ0pEB3oNylKeMskUGsAHvJ1zq78MNiAq+7YbAVqz70/kqWSW+SQX8MSbwMy2+fIlPfrZgjkuh+R9Q= X-Received: by 2002:a19:384a:: with SMTP id d10mr10814790lfj.397.1621872479416; Mon, 24 May 2021 09:07:59 -0700 (PDT) MIME-Version: 1.0 From: Michael Dauer Date: Mon, 24 May 2021 18:07:48 +0200 Message-ID: Subject: misaligned tab and spaces in src block To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000001b40f05c3159deb" Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=mick.dauer@gmail.com; helo=mail-lf1-x12b.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.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=1621872623; 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=xRZs9gXyMYrSTeZfRd6VGy9iy8kFwmTnPKxcCWQ6Ru0=; b=KpSAXaxe9l8V8+WunXM05FNPSoRNDjtwy0FoSrwsseAa+xp+1nNNY5KjUSbD+RxhvmPWeX wItqUJXS/P1Dr6qjRv4zDe463G2CdTzpeHZYcf/ARLhH70XPTzUcRN3jploL2ztjD+/kZ3 BmLUdlkoWW/5kgsA2ZYM8MLJmVic2IesMTH7e30sljAYEmc+fOQPQI9MwiBjYgA4ddINx8 S1p1q5Uh8oGXZf3aZivo9jLlCT6zpX3fQ4I9pgfMBzpd1roHweNY7mzLrHH7704WrblMZd 4hzH4LM2j4i2BHTTUxeGJqxjI/A/i1ipWfBrpoSAQXzT7P9csxy8rZs6uxqoNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621872623; a=rsa-sha256; cv=none; b=CpHzxvmSc545g1B85U5aONrY6eQWcYX8p85V8s3ZmOjoAA1fAiY6awLYsqElG1iyvsPOrq jSWtQ2R4pVNzpTCV9R8Vd7u4Y4Qji2cWLLVrso6TMNxEN4E0CAoPSQVP1E1rGQPD7PzJ2s fAI6mzODj/kzsoRaDhA+A0Or6jvZSi+6pKNbuxiK1QeIsM8tighDj1QtoC043J9x+nI7x+ iE/q8nUjjc4hMZF9+UsnkGJkluCmLXtBHf/ntktoy2g2n/GcG/6dii2+RniROLAPYt6xKQ UVjVpcHB5xSrqCZPs8jyMBisR3NLWuWJfsVwxUGMafSpjqVZ5YNvThXefdmHzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RpH8oI7X; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RpH8oI7X; 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: 75354203E3 X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: eROBLhOaZwo3 --00000000000001b40f05c3159deb Content-Type: text/plain; charset="UTF-8" Hi, #+begin_src elisp :results output (aaa bbb ( #x09#x09#x09ccc)) ccc #+end_src looks like this in the editor (aaa bbb ( ccc)) ccc Line 1-3 were indented automatically by pressing Tab. In line 4 I inserted 6 spaces manually. This is what I would expect to find in line 3 too. But at my surprise there are 3 tab chars in line 3. Line 2 was indented automatically with 1 space. 1. So why is line 3 indented with 3 tabs instead of 6 spaces? 2. How can I prevent this? 3. Why does a tab have a width between 1 and 2 spaces? 4. How can I prevent this misalignment? org-block face has fixed-pitch. Org mode version 9.4.6 (9.4.6-gcf30f7 (setq-default tab-width 2) (setq org-src-fontify-natively t org-src-window-setup 'current-window org-src-strip-leading-and-trailing-blank-lines t org-src-preserve-indentation t org-src-tab-acts-natively t) Thanks, Michael --00000000000001b40f05c3159deb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

#+begin_src elisp :results output
(aaa=
=C2=A0bbb (
#x09#x09#x09ccc))
=C2=A0 =C2=A0 =C2=A0 ccc
#+end_s= rc
looks like this in the editor
(aaa
=C2=A0bbb = (
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ccc))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ccc

Line 1-3 were indented automatically b= y pressing Tab. In line 4 I inserted 6 spaces manually. This is what I woul= d expect to find in line 3 too. But at my surprise there are 3 tab chars in= line 3. Line 2 was indented automatically with 1 space.

1. So why is line 3 indented with 3 tabs instead of 6 spaces?
<= div>2. How can I prevent this?
3. Why does a tab have a width bet= ween 1 and 2 spaces?
4. How can I prevent this misalignment?

org-block face has fixed-pitch.

Org mode version 9.4.6 (9.4.6-gcf30f7
(setq-default tab-wi= dth 2)
(setq org-src-fontify-natively t
org-src-window-setup '= current-window
org-src-strip-leading-and-trailing-blank-lines t
= org-src-preserve-indentation t
org-src-tab-acts-natively t)

Thanks,
Michael
--00000000000001b40f05c3159deb--