emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2023-03-07 13:11 Farblos
  2023-03-07 14:28 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Farblos @ 2023-03-07 13:11 UTC (permalink / raw)
  To: emacs-orgmode

To reproduce, start on a Bourne shell command line with

cat << EOF > foo.org
* heading heading heading
:properties:
:foo: bar
:end:
EOF

Then start

emacs -Q foo.org

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':

	 (let* ((range (org-get-property-block beg 'force))
	        (end (cdr range))
	        (case-fold-search t))

When moving `(case-fold-search t)' to before the call of `org-get-property-block' things work as expected.

Emacs  : GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2023-01-18, modified by Debian
Package: Org mode version 9.5.2 (9.5.2 @ /usr/share/emacs/site-lisp/elpa/org-9.5.2/)




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-07 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 13:11 [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/)] Farblos
2023-03-07 14:28 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).