From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UO+MHwIiOmFCigAAgWs5BA (envelope-from ) for ; Thu, 09 Sep 2021 17:02:26 +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 KNkQGwIiOmG8FgAAB5/wlQ (envelope-from ) for ; Thu, 09 Sep 2021 15:02:26 +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 D5D9D1518E for ; Thu, 9 Sep 2021 17:02:25 +0200 (CEST) Received: from localhost ([::1]:42342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOLZI-0006ha-3l for larch@yhetil.org; Thu, 09 Sep 2021 11:02:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOLY7-0006fS-6N for emacs-orgmode@gnu.org; Thu, 09 Sep 2021 11:01:12 -0400 Received: from les.jabatus.fr ([109.234.163.36]:45672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOLXu-0000ds-5E for emacs-orgmode@gnu.org; Thu, 09 Sep 2021 11:01:10 -0400 X-MailPropre-MailScanner-From: victor@svictor.net X-MailPropre-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.08, required 5, autolearn=disabled, RCVD_IN_DNSWL_HI 0.01, SPF_HELO_PASS -0.10, SPF_PASS -1.00, SUKEN_2 0.01) X-MailPropre-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailPropre-MailScanner-ID: 9F93E10049B.A0DAE X-MailPropre-MailScanner-Information: Please contact the ISP for more information DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=svictor.net ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Fv/lTxGRXSQ+zFdjkxdrry+izuTvybgh+J3m1Vg5Mwc=; b=p8GUjBOTslVMsx4TzZUAv6fNXe ouw8wdYIe5MkjQO/VXcShp1STlIkPC84hHOZHU8QVNrov1jmPq7x1L2A/qDF9/s0WCfWC7ToQrpF9 +QhoaYWuYlL3cTRnq0USNQ2S3IYTWMI5mJLBqqsvY8GS3/xXOEyIBU6h7vrFv6yPM3Tc=; From: "Victor A. Stoichita" To: emacs-orgmode Subject: behavior of (org-insert-heading-respect-content) Date: Thu, 09 Sep 2021 16:55:36 +0200 Message-ID: <87lf4594t3.fsf@svictor.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - pam.o2switch.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - svictor.net X-Get-Message-Sender-Via: pam.o2switch.net: authenticated_id: victor@svictor.net X-Authenticated-Sender: pam.o2switch.net: victor@svictor.net X-Source: X-Source-Args: X-Source-Dir: Received-SPF: pass client-ip=109.234.163.36; envelope-from=victor@svictor.net; helo=les.jabatus.fr X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 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=1631199746; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Fv/lTxGRXSQ+zFdjkxdrry+izuTvybgh+J3m1Vg5Mwc=; b=kvVbRBhpqa/l6EUwnYgL9R/9npaBvXQTLd2e98b7QibLGZ1wBapm205b9tZzlc0k8Q/wxg IG5he50kxE7zFWgFHI+5g3gwDjQvcBfsQK5y/KffAbYP8AFwZj702ktu3OfnyG9fR67Y3Y 9hYti0p1aOEc06+oMNGCs10hQbnzrhjSCJVHXMUR9BA4BMPo0kg8+D2Kw6Q1qseDeD8jBB s8GMQ4+FgFVIVzlleYO8xrMeBjJf5iuCEeEBRAyuSKp0SqPUFy9VfQQQljE87EIeX6+TC+ NDq3xinidf+eKN6Npm+nbM6s8JfuBzfYI/REdxh36wwZm7KtPyTO2sMwY0luQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631199746; a=rsa-sha256; cv=none; b=YvptfgrvVoh8EF9HcJ1Vfd7H3myu6oHe3/EgIq6itZ7TrltvR6H1pFtiLvi6pIBuoWOCUd Vu9l0jGLxJ+Sme8Tn6YXAR+H2OZMLJ45GiATUzJKxLlmvtoXuvdaZ1X+qXxCTq6vPe36FM 6/YR8Lh9mDuBwgp5fuNyz0uwa8MuWlM5bnq3TbjCAoDv9M7wzImp1pDivugFy2fY+Etzs9 SXzqayvGGjYSXyECUCAX0bTQyMPrLPa2aZ5iuiiWbyTwFZAwvIswKsLbGGpIk1ryMx5b0o 4cl/0KaNTjhyN+YLizhaV4g+1DkGvSkrj4306ztTuSdnQgOhj5SWuY8/mP5fog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=svictor.net header.s=default header.b=p8GUjBOT; 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: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=svictor.net header.s=default header.b=p8GUjBOT; dmarc=none; 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: D5D9D1518E X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Oahjdqa/oBP8 Hi, I see the following behavior which seems erroneous to me=C2=A0: - When I issue (org-insert-heading-respect-content) in a brand new org buffer, with point at point-min I get the error "Beginning of buffer" and no heading is inserted. - If I write something on the 1st line, say "test", but no newline, and then issue (org-insert-heading-respect-content), the result is=C2=A0: "test * " which is not a properly formatted heading - Only if there is a newline before point does (org-insert-heading-respect-content) insert a proper heading.=20 Am I getting something wrong or is this a bug=C2=A0? Regards, Victor