Timeline for Getting rid of multiple :PROPERTIES: drawers in org-mode
Current License: CC BY-SA 4.0
23 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2023 at 22:42 | answer | added | NickD | timeline score: 3 | |
Nov 21, 2023 at 22:15 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 47 characters in body
|
Nov 21, 2023 at 22:09 | comment | added | Amorpheuses | org-version shows 9.4.6 | |
Nov 21, 2023 at 22:09 | comment | added | NickD |
For the Org mode version, please do M-x org-version . BTW, 28.0.50 is NOT a released version of Emacs. The current version in the Emacs 28 release stream is 28.2 . The most recent release version is 29.1 . See Emacs releases. So you may have an old, prerelease version of Emacs.
|
|
Nov 21, 2023 at 22:09 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 4 characters in body
|
Nov 21, 2023 at 22:02 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 59 characters in body
|
Nov 21, 2023 at 21:58 | comment | added | Amorpheuses | Can't delete all of them. It is a one-off but I have done it previously. I think that org-id has to have the :PROPERTIES: drawer right below the headline (or :CLOSED: line in the above example); if that's not the case then it adds it. All you have to do to replicate it is to add a blank line right after the :CLOSED: line in the above example and when you now go to save the file, org-id will add another :PROPERTIES: drawer. At least that's what happens in the version of emacs listed above. | |
Nov 21, 2023 at 21:54 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 420 characters in body
|
Nov 21, 2023 at 21:51 | comment | added | NickD | Please answer all the questions in both of my comments above, by editing your question and adding all the relevant information. A recipe to reproduce the problem would be ideal. Thanks! | |
Nov 21, 2023 at 21:50 | comment | added | NickD |
So what did you do to get the multiple ID drawers? What is the "encoding snafu" that you mention? Will deleting all the property drawers with just an ID property in them work as an automated solution or should the code be more careful than that? Is this a one-off problem that could e.g. be solved with a quick-and dirty regexp-replace or is it a recurring problem that needs a more formal solution? Finally, why does it happen? I don't think this is a common problem, so I wonder if it's a bug in your version of Org mode.
|
|
Nov 21, 2023 at 21:39 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 29 characters in body
|
Nov 21, 2023 at 21:08 | history | edited | Amorpheuses | CC BY-SA 4.0 |
deleted 11 characters in body
|
Nov 21, 2023 at 20:46 | comment | added | Amorpheuses | I think the last from the top is the 'oldest' - ie the original property drawer. All ids are unique. I've done this before. Think the file it was in was relatively small so I manually deleted the redundant drawers. This time the file is huge - so I can't do that. I'm still googling for an answer. I suspect I'll have to write some sort of elisp script - which I'm not anywhere close to proficient at. I guess I wonder what others do in this situation - assuming others have encountered it. | |
Nov 21, 2023 at 20:43 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 24 characters in body
|
Nov 21, 2023 at 20:42 | comment | added | NickD | An example would help. Do you have headlines with multiple property drawers and identical contents? That's a bug that should not happen. Which version of Org mode are you using? How do you know which drawer is the oldest? Are there property drawers containing other things than just an ID? | |
Nov 21, 2023 at 20:10 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 339 characters in body
|
Nov 21, 2023 at 19:54 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 44 characters in body
|
Nov 21, 2023 at 19:09 | history | edited | Amorpheuses | CC BY-SA 4.0 |
deleted 157 characters in body
|
Nov 21, 2023 at 18:48 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 260 characters in body
|
Nov 21, 2023 at 18:37 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 22 characters in body
|
Nov 21, 2023 at 18:22 | history | edited | Amorpheuses | CC BY-SA 4.0 |
added 45 characters in body
|
S Nov 21, 2023 at 17:56 | review | First questions | |||
Nov 21, 2023 at 18:55 | |||||
S Nov 21, 2023 at 17:56 | history | asked | Amorpheuses | CC BY-SA 4.0 |