From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yIKZBwxSamO/jQAAbAwnHQ (envelope-from ) for ; Tue, 08 Nov 2022 13:56:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0JG5BwxSamNHzwAA9RJhRA (envelope-from ) for ; Tue, 08 Nov 2022 13:56:44 +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 A690D28E18 for ; Tue, 8 Nov 2022 13:56:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osO8z-0005SI-VW; Tue, 08 Nov 2022 07:55:57 -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 1osO8y-0005S3-GY for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 07:55:56 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osO8w-0001jy-IC for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 07:55:56 -0500 Received: by mail-ej1-x631.google.com with SMTP id ft34so2008834ejc.12 for ; Tue, 08 Nov 2022 04:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Ku1NaMubySmEIKVuhBMQi7105JJnad2RhKWwuqyfYGg=; b=CbyWkxsuPuexNUItc0UZX4qog/B7RBeOAFqT1V7jworEoqlB2eHicFv6c/nC+UX98/ VZgAX4hafdPEHrHgpx/oRsyuuYCKSZjMOFU6JZZqgaFFX4Cs+2bIQx86YDicjRGZtzgL +pwNf5Pd+lUHp8fBcXeupVOeW1vI4oke3A+MREMCh0kt73lMyUj5JYTxESXS3RAK7CTD yNMgvbXyYPyoZlvQ8YdOjfu0GtU8ErnWNA3xm2mE6jwwW35Thx8ltU3dlhMGSRZt69AO n+snxRn4JBAHVaUvMrBRxuMEXOpTEuKp5b2RKcRwKAa5gm+L9HDtTOs8B8IBGRdhUHwa Ohwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ku1NaMubySmEIKVuhBMQi7105JJnad2RhKWwuqyfYGg=; b=uOseoz9ECfGz9O0+iNoVmfdM5B2/8X0ANsHwLQifZngue7JNwExFqT1TY5foDr/XSc DaXL3QOLSlvT/MX3t5k+BvBj5A/pfhGUDGBwMIWeqOZYTNXzJOUrnktiSV4zRt9fZ1bV lW0oLs7CIN/czlYClGS3ZAkCkIXtm/s2ES1ZA06v5pCc1B9cTFdoIG++lg4app0NsLe3 a647EXq4z2fkPmJIPkLrLuLYz21HCht8MLuZ/Few7Pxyoq0obr5UpNBxhBTF9XLgfZJ5 FC/oQwu/8tUFwoKBr2BJhdsUDUITp0kPDG0yJE0MhFVXSEHztkrlrf/dj+4pC9EyPJUz HlUw== X-Gm-Message-State: ANoB5pmxG/mwm4uikG2oqV6S74DvHWVRrdek+8gzB8ilati7K2EuZCuy 6QhgyLva/LJCCzuvBMx2r+6m8+4LjGB2wjGCmm7OWSnpLNzbRw== X-Google-Smtp-Source: AA0mqf6sSIALqYunftEfaJHArYqxHNg+SLoeQaWH3IeuICZ4oUpLmh23fGMtOgEP8udy7a5m4xFRqyqjvVfOu1itZXY= X-Received: by 2002:a17:906:5daa:b0:7ae:6015:d6ca with SMTP id n10-20020a1709065daa00b007ae6015d6camr12111224ejv.614.1667912151904; Tue, 08 Nov 2022 04:55:51 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?RGF2aWQgTHVrZcWh?= Date: Tue, 8 Nov 2022 13:55:40 +0100 Message-ID: Subject: [BUG] Freeze with org-adapt-indentation set to headline-data To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=dafydd.lukes@gmail.com; helo=mail-ej1-x631.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.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667912203; 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=Ku1NaMubySmEIKVuhBMQi7105JJnad2RhKWwuqyfYGg=; b=KUT2i6kpDEqBacoBOYqkmqFQUEJn5c6JtHdqL/jdKhNPkach/weZTstmjr8BCX5ZjNjH7R ZgybEdqEZu0TTGi7aViTdTmsHmbYoSgruCGSaTuZDHPknLwadGsNTOAAviwVAd1UOmRTOJ K1knl8qi89GjxT18rMOJn/YfXtmTMTcM4CLF+Mpa+zdyPbn41x3N2vqCfl3IFjx2std4zW CIzez3MUIHI8v3BpnvLU6XLoOx/NVh1cZ9V8oUgKZ/Z7fjkCCKXb/+irplwMEF0EsxGSgw GPxBwPSCqucNGBa00v7SJ+Ay/Gjsjz8KN5gQ301/5pStqJAR4u/ct7/s7L3pDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667912203; a=rsa-sha256; cv=none; b=F/TeR/y8U1i8dqWoBcHSJjvAIdplEHs4u2yBSWbpXbZPFMvY6qblS7uxiC4jb4eEAMIVMx V7tw9/h/0JQvx2WE1XsIWjqjYzz0G28NujRDUs2lYZ7H8mcJquEXS4EoUqp+1hLY6W4WPg ZJyCOxOks6wcsj7j+Fmz75lSSaqGoEh4fKnVTCJ5jnnXht1vfDsP0/B4frpBcaqFZq07vv HgO1Fh/sUnfL1vyDrSmPjt4TKgiGNPlCiNOYJYkdcQZp+PZcawu/vX389uriI/vm9eIs7R bo3LVl+uPcTeU1zterdsk31iuFoRW3qEsbfc6bQjmomidcy4WipG6puz7VK9Tw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CbyWkxsu; 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" X-Migadu-Spam-Score: -5.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CbyWkxsu; 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" X-Migadu-Queue-Id: A690D28E18 X-Spam-Score: -5.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q9JQmrWP0iJ4 Hi all, I've hit a freeze when setting org-adapt-indentation to headline-data. I've bisected it to commit 0a6a56, "org-adapt-indentation: Fix 'headline-data checks". I can reproduce it in Emacs 28.2 on macOS with the following minimal init file: (add-to-list 'load-path "~/repos/org-mode/lisp") (require 'org-loaddefs) (setq org-adapt-indentation 'headline-data) The freeze is perhaps best explained visually, please see here: https://trnka.korpus.cz/~lukes/files/headline-data.mp4 Commentary / reproduction steps: 1. Open an Org file. 2. Type a level 1 heading, e.g. * foo, then RET. 3. Type a level 2 heading, e.g. ** bar, then RET. 4. Type RET a few more times -- works fine. 5. Go back to the level 2 heading line (C-p), jump to its end (C-e), press RET. 6. Press RET a few more times. No additional lines get inserted, Emacs freezes (a spinner gets displayed, see video), C-g has to be used to interrupt this. A few more observations: - After step 5, if you type a few regular characters first (letters, numbers) and only then RET, no freeze occurs. - After step 5, you can also type just a series of spaces, and no freeze occurs while typing those spaces, but as soon as you type a RET (i.e., a RET after a line which consists only of spaces), the freeze triggers. Not sure if this reproduces on Linux, I'm traveling ATM, so I don't currently have access to a Linux box unfortunately. Let me know if I can provide any additional information! Best, David