From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CJbcEZ8FA2EzQgEAgWs5BA (envelope-from ) for ; Thu, 29 Jul 2021 21:46:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oE5jDZ8FA2EJZAAAbx9fmQ (envelope-from ) for ; Thu, 29 Jul 2021 19:46:39 +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 558C227B80 for ; Thu, 29 Jul 2021 21:46:38 +0200 (CEST) Received: from localhost ([::1]:55280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9BzJ-0001qf-E5 for larch@yhetil.org; Thu, 29 Jul 2021 15:46:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9ByY-0001p9-Hp for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 15:45:50 -0400 Received: from forward106p.mail.yandex.net ([77.88.28.109]:36116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9ByV-0006wi-Vo for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 15:45:49 -0400 Received: from myt5-b88997415fa8.qloud-c.yandex.net (myt5-b88997415fa8.qloud-c.yandex.net [IPv6:2a02:6b8:c12:1fa2:0:640:b889:9741]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 31E5D1C809FD for ; Thu, 29 Jul 2021 22:45:42 +0300 (MSK) Received: from myt5-ca5ec8faf378.qloud-c.yandex.net (myt5-ca5ec8faf378.qloud-c.yandex.net [2a02:6b8:c12:2514:0:640:ca5e:c8fa]) by myt5-b88997415fa8.qloud-c.yandex.net (mxback/Yandex) with ESMTP id V9Kq6JxSWv-jgHCMHsB; Thu, 29 Jul 2021 22:45:42 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1627587942; bh=a5entWcbQDdlERrwz2JkFZ7BCC6oE6QqXMl+ifqX828=; h=Message-ID:Date:Subject:To:From; b=kkhOQfYx+XMnBhH2KVi8wODOCnSziBTxawI2M+ddx07BMC67ctoZhaGaW/q61kRi3 w9cHiOYg241x65UYgoztYS0/10ifIXEryzH/rxIZ/4EKxHw5ZMXOZQzTeOEOfYdenJ qCxcy5Nc2ZuwTog+ytzPYGG9a7rh+dOc6EN9Opk0= Received: by myt5-ca5ec8faf378.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id AmDcPngQSb-jf28w1Gk; Thu, 29 Jul 2021 22:45:41 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Ivan Sokolov To: emacs-orgmode@gnu.org Subject: [BUG] Indentation broken after double quote Date: Thu, 29 Jul 2021 22:45:40 +0300 Message-ID: <87k0l852fv.fsf@ya.ru> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=77.88.28.109; envelope-from=ivan-p-sokolov@ya.ru; helo=forward106p.mail.yandex.net 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, 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=1627587998; 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=a5entWcbQDdlERrwz2JkFZ7BCC6oE6QqXMl+ifqX828=; b=OTGEa7qL28rXiseKPKFBofIQyoV73XRxzM7lJPmrRaC9PKN6ehUP7Xlk0SjFTbzpAe05M5 JaK7BV/rhF6k9lNwPNyreZyn5N+h5xD2AyXNN1gYk7+MrWO4aOIegK1ZDTxj+5fSnryBVg bJblV0govBEjpLI9OeQleJhCtkp9Ua2SUDV1K9WjKY0lhmqEH/ix9uCmoUuq5kNx+zL2No kVNLUrBzHS9XOPfahCvHukQzwf/StAiER60oFm7FOjiW9+8Actp4kyGwZt0jxacICHcZ7v YTA3Q5AZ1+F0WuLtp9YuhtzPV1xiJfQmnOwh/MxdrIqjuzC55hZGNYoxo+RGVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627587998; a=rsa-sha256; cv=none; b=HOZVoFIOHS9bT6t614FLDxesVdQ99Tt0rb4MMnEwMne0Uo8/e7STAo+YLqdfMrqoUMMV0W jJrGfUriuBz0m0LDBLqJCBLsHukoKhaXjEk6aQw8lo0yDzGdLV/qJZD9vt/ErMHeIdksRF A2I7oCKU0p8orJazyi9laNDTnhhchdKNcf4Qq2JHny8olqbJRRE9BoL6AcY6ClJ/eUjtr6 rInWWNY6WgOubj72T+EHjjSDEqj7AUDsDml/KAzb88E5tuI3Nl8MXiY5pIjVbH2LQpfk5R iito7USvoaQbNVTsEHFeY9ya/jqxevIf/OlP8fb3gaL5yHlHzeBkTucdcf1LTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=kkhOQfYx; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=kkhOQfYx; dmarc=pass (policy=none) header.from=ya.ru; 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: 558C227B80 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9Pzj+wHxoWg9 How to reproduce: 1. open org file 2. set org-adapt-indentation to t 3. insert headline, text after headline should be automatically indented 4. insert double quote (") 5. org-return won't indent after double quote Tested versions: Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/) Org mode version 9.4.6 (9.4.6-11-g1ee52c-elpa @ /home/ivan/.local/share/emacs/package/org-20210726/) I am not sure if this bug even fixable, but I think we at least should mention it in org-adapt-indenation docstring. I also want to point out that this behaviour can be triggered by syntactically correct constructs, e.g. #+begin_src sh '"' #+end_src