From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wFLUGGY4B2T7UAEASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 14:13:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GLieGGY4B2S4gAEAauVa8A (envelope-from ) for ; Tue, 07 Mar 2023 14:13:10 +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 39A76DF0B for ; Tue, 7 Mar 2023 14:13:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-21dec header.b=XLyR5gNn; 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"; dmarc=pass (policy=quarantine) header.from=vodafonemail.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678194790; 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=f45ULyclvLdEysjFhta3KRnrU6pZsYOU4/HYDkrW7hQ=; b=T5toymtfIy6mCSwhQUIHudd6a4TLMYv006/yWm3xtU8H+wPNjPZ1hDY9VbfnqcQuoT2lJh YH0VIAqr5GFTR2mXiVRLBYcdsDWqpZ5S4G+jzaTKtQ3qPZUlQlAaOU0lxXislWk+ujxku7 3x+0q1wBR/s4gXKTU3ASzxjPwUWEgncyjTixgxDsfCHN5NVJEZeZfbIHiPVv3JrI9wu/cY tyBoiEKrGD2ioVlb6z986UGF7aK4UfkuWhE6OJpARhLcx23Z8JZpfITSg4ItcOxgK0nS+A Q5L+yhhdB7JugqK6f9oOa7aSajHvQIcn3TMUHEoFBV9P6Vw9JvnnadGs1mMbEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678194790; a=rsa-sha256; cv=none; b=BL+LMiHwORECknOLhMEYG2eE6I3jfwIHyiM3j1kNk7VoM+KzpbvfMuYARCcOY2CMMK+C03 A8N+N3lfUb1j95CQKs0Ml2SbSV0aQWt7YUAigkHtzwnLVJXwNHEqySow9zym5Qm8WLb7Tz Sksk7EgewBy9TleKlYUDZ92rPHeMPEyzQOxn81kaNFm+4D9owiLz/eelmCaOof2RbM7KhQ 0rs0PGkpnOUlK41ybeKmT4EGWkLXfpebL1WzQLcCTLP6rL+eIhD9sLcb/sA3XLbrkZiD1U pEC6u+zPQNDdotU25r+XuCnqe/HIrunIsSy50YkrHAzNH7Q4IqTQRBvzsUARsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-21dec header.b=XLyR5gNn; 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"; dmarc=pass (policy=quarantine) header.from=vodafonemail.de Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZX6i-00009t-5e; Tue, 07 Mar 2023 08:11:56 -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 1pZX6g-00009Q-1V for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 08:11:54 -0500 Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZX6e-00006G-3E for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 08:11:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1678194709; bh=f45ULyclvLdEysjFhta3KRnrU6pZsYOU4/HYDkrW7hQ=; h=From:To:Message-ID:Date:Subject:Content-type:From; b=XLyR5gNnCAqA63j2ypMPp1KP+9QFB/b7ImbQAR3nYgNzWR+e7lzvSdZrLOligx88o JMekPgA25nUeHn7SZgL+oPMZUw0aDize429dnjE4n5yVZPHrfE1lPAIiKuTB9NcMab 1vANllLVT/S8I4WwYw45dPKL+5IFHvVYH+8Cyzn4= Received: from mp103.fra-mediabeam.com (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr5.vodafonemail.de (Postfix) with ESMTPS id 4PWG793vlKz27Hb for ; Tue, 7 Mar 2023 13:11:49 +0000 (UTC) Received: from mailbackend01 (unknown [10.0.0.2]) by mp103.fra-mediabeam.com (Postfix) with ESMTP id 4PWG793MxZz8t66 for ; Tue, 7 Mar 2023 13:11:49 +0000 (UTC) From: "Farblos" To: emacs-orgmode@gnu.org Message-ID: Date: Tue, 07 Mar 2023 14:11:46 +0100 X-Priority: 3 Subject: [BUG] `org-entry-put' creates a new property drawer if case folding is turned off [9.5.2 (9.5.2 @ /usr/share/emacs/site-lisp/elpa/org-9.5.2/)] MIME-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-purgate-type: clean X-purgate: clean X-purgate-size: 1080 X-purgate-ID: 155817::1678194709-48FF81CD-088E4BB5/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=AKFKQU.9DF7RP@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 39A76DF0B X-Spam-Score: -7.81 X-Migadu-Spam-Score: -7.81 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-TUID: FxvKq7bbZ5/o To reproduce, start on a Bourne shell command line with cat << EOF > foo=2Eorg * heading heading heading :properties: :foo: bar :end: EOF Then start emacs -Q foo=2Eorg In Emacs continue: M-x set-variable RET case-fold-search RET nil RET C-c C-x p foo RET bar RET For me Org then creates a new property drawer, so the buffer looks like= this afterwards: --- snip --- * heading heading heading :PROPERTIES: :foo: bar :END: :properties: :foo: bar :end: --- snip --- Root cause should be the following snippet in function `org-entry-put': =09 (let* ((range (org-get-property-block beg 'force)) =09 (end (cdr range)) =09 (case-fold-search t)) When moving `(case-fold-search t)' to before the call of `org-get-prope= rty-block' things work as expected=2E Emacs : GNU Emacs 28=2E2 (build 2, x86_64-pc-linux-gnu, X toolkit, cai= ro version 1=2E16=2E0, Xaw3d scroll bars) of 2023-01-18, modified by Debian Package: Org mode version 9=2E5=2E2 (9=2E5=2E2 @ /usr/share/emacs/site-= lisp/elpa/org-9=2E5=2E2/)