* [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
* Re: [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 [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
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-03-07 14:28 UTC (permalink / raw)
To: Farblos; +Cc: emacs-orgmode
"Farblos" <AKFKQU.9DF7RP@vodafonemail.de> writes:
> To reproduce, start on a Bourne shell command line with
> ...
I am unable to reproduce using the latest Org release.
Please, update Org.
Canceled.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.