* [bug?] org-repair-property-drawers does not repair whole file
@ 2015-02-25 23:36 Gregor Zattler
2015-03-08 17:01 ` Nicolas Goaziou
0 siblings, 1 reply; 8+ messages in thread
From: Gregor Zattler @ 2015-02-25 23:36 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]
Dear org-mode developers, dear Nicolas,
I invoked org-repair-property-drawers on a fairly large org-mode
file. It did sort some PROPERTIES drawers in front of LOGBOOK
ones but not all. Since I do not understand the logic of
org-repair-property-drawers I prepared a file with the structure
of the org-mode file after running org-repair-property-drawers on
it:
egrep "^\*+|^ *:PROPERTIES:|^ *:LOGBOOK:|^ *:END:" file.org |nl >headings-properties-logbook-numbered
sed -e "s/\(^ \+[0-9]\+[[:space:]]*\*\+[[:space:]]*\)\(TODO\|INPROGRESS\|WAITING\|VERIFY\|DONE\|DELEGATED\|CANCELLED\|PUTOFF\|IDEA\)*\(.*$\)/\1\2/" headings-properties-logbook-numbered >headings-properties-logbook-numbered.anon
I don’t how to isolate the bug or the circumstances which trigger
it. The file headings-properties-logbook-numbered.anon is
attached to this email. I hope it might be useful to you to find
the bug.
Via
grep -A2 LOGBOOK headings-properties-logbook-numbered.anon|grep PROPERTIES
I can see, that there are 18 occurrences where there is a
PROPERTIES drawer after a LOGBOOK drawer instead before.
Some of the corresponding headings had tags, some not. And also
some of the not corresponding headings had tags and some not.
Ciao, Gregor
--
-... --- .-. . -.. ..--.. ...-.-
[-- Attachment #2: headings-properties-logbook-numbered.anon --]
[-- Type: text/plain, Size: 20325 bytes --]
1 *
2 :PROPERTIES:
3 :END:
4 :LOGBOOK:
5 :END:
6 *** DONE
7 :PROPERTIES:
8 :END:
9 :LOGBOOK:
10 :END:
11 *** INPROGRESS
12 :LOGBOOK:
13 :END:
14 ***
15 :LOGBOOK:
16 :END:
17 ***
18 :LOGBOOK:
19 :END:
20 ***** DONE
21 :LOGBOOK:
22 :END:
23 *****
24 ***
25 :LOGBOOK:
26 :END:
27 *****
28 :LOGBOOK:
29 :END:
30 *****
31 :LOGBOOK:
32 :END:
33 ******* CANCELLED
34 :LOGBOOK:
35 :END:
36 ***
37 ***
38 ***** DONE
39 :LOGBOOK:
40 :END:
41 *****
42 ***** DONE
43 *** TODO
44 :LOGBOOK:
45 :END:
46 *** DONE
47 :LOGBOOK:
48 :END:
49 *** CANCELLED
50 :LOGBOOK:
51 :END:
52 *** DONE
53 :LOGBOOK:
54 :END:
55 ***** DONE
56 :LOGBOOK:
57 :END:
58 ***** DONE
59 :LOGBOOK:
60 :END:
61 *** PUTOFF
62 :LOGBOOK:
63 :END:
64 *** TODO
65 *****
66 *****
67 *****
68 *****
69 *****
70 *****
71 :LOGBOOK:
72 :END:
73 *** PUTOFF
74 :LOGBOOK:
75 :END:
76 *** DONE
77 *** TODO
78 *** INPROGRESS
79 :LOGBOOK:
80 :END:
81 *** DELEGATED
82 :PROPERTIES:
83 :END:
84 :LOGBOOK:
85 :END:
86 ***** CANCELLED
87 :LOGBOOK:
88 :END:
89 *****
90 *****
91 *****
92 *****
93 *****
94 *** INPROGRESS
95 :LOGBOOK:
96 :END:
97 *****************************
98 *****************************
99 ***** DONE
100 :LOGBOOK:
101 :END:
102 *** INPROGRESS
103 :LOGBOOK:
104 :END:
105 *** CANCELLED
106 :LOGBOOK:
107 :END:
108 *** INPROGRESS
109 :LOGBOOK:
110 :END:
111 *****
112 *****
113 *****
114 *****
115 *** INPROGRESS
116 :LOGBOOK:
117 :END:
118 *****
119 *******
120 *******
121 *******
122 *******
123 *******
124 *****
125 *****
126 *****
127 *****
128 ******* DONE
129 :LOGBOOK:
130 :END:
131 *****
132 *****
133 *******
134 *******
135 *****
136 *******
137 *********
138 :PROPERTIES:
139 :END:
140 *******
141 *******
142 *******
143 *******
144 :PROPERTIES:
145 :END:
146 *******
147 :PROPERTIES:
148 :END:
149 *******
150 *********
151 :PROPERTIES:
152 :END:
153 *********
154 ***** DONE
155 :LOGBOOK:
156 :END:
157 *****
158 :PROPERTIES:
159 :END:
160 *** DONE
161 :LOGBOOK:
162 :END:
163 :PROPERTIES:
164 :END:
165 *** DONE
166 :LOGBOOK:
167 :END:
168 *** DONE
169 :LOGBOOK:
170 :END:
171 *** DONE
172 :LOGBOOK:
173 :END:
174 *****
175 *****
176 *** DONE
177 :LOGBOOK:
178 :END:
179 *** DONE
180 :LOGBOOK:
181 :END:
182 *** DONE
183 :LOGBOOK:
184 :END:
185 *****
186 *** DONE
187 :LOGBOOK:
188 :END:
189 :PROPERTIES:
190 :END:
191 *** DONE
192 :LOGBOOK:
193 :END:
194 *** DONE
195 :LOGBOOK:
196 :END:
197 *** DONE
198 :LOGBOOK:
199 :END:
200 *** DONE
201 :LOGBOOK:
202 :END:
203 *** DONE
204 :LOGBOOK:
205 :END:
206 *** DONE
207 :LOGBOOK:
208 :END:
209 *****
210 *** DONE
211 :LOGBOOK:
212 :END:
213 *** DONE
214 :LOGBOOK:
215 :END:
216 *** DONE
217 :LOGBOOK:
218 :END:
219 *** DONE
220 :LOGBOOK:
221 :END:
222 *** DONE
223 :LOGBOOK:
224 :END:
225 *** DONE
226 *** DONE
227 :LOGBOOK:
228 :END:
229 *** DONE
230 :LOGBOOK:
231 :END:
232 *** DONE
233 :LOGBOOK:
234 :END:
235 *** DONE
236 :LOGBOOK:
237 :END:
238 *** DONE
239 :LOGBOOK:
240 :END:
241 *** DONE
242 :LOGBOOK:
243 :END:
244 *** DONE
245 :LOGBOOK:
246 :END:
247 *** DONE
248 :LOGBOOK:
249 :END:
250 *** DONE
251 :LOGBOOK:
252 :END:
253 *** DONE
254 :LOGBOOK:
255 :END:
256 *****
257 ******* DONE
258 *****
259 *****
260 *****
261 *******
262 *****
263 *** DONE
264 :LOGBOOK:
265 :END:
266 *** DONE
267 :LOGBOOK:
268 :END:
269 *** DONE
270 :LOGBOOK:
271 :END:
272 *** DONE
273 :LOGBOOK:
274 :END:
275 *** DONE
276 :LOGBOOK:
277 :END:
278 *** DONE
279 :LOGBOOK:
280 :END:
281 ***** DONE
282 :LOGBOOK:
283 :END:
284 *** CANCELLED
285 :LOGBOOK:
286 :END:
287 *** CANCELLED
288 :LOGBOOK:
289 :END:
290 *** PUTOFF
291 :LOGBOOK:
292 :END:
293 :PROPERTIES:
294 :END:
295 *** IDEA
296 ***
297 ***
298 :LOGBOOK:
299 :END:
300 ***
301 ***** DONE
302 :LOGBOOK:
303 :END:
304 ***** DONE
305 ***** DONE
306 :LOGBOOK:
307 :END:
308 ***** DONE
309 :LOGBOOK:
310 :END:
311 ***** PUTOFF
312 :LOGBOOK:
313 :END:
314 ***** DONE
315 :LOGBOOK:
316 :END:
317 *****
318 :LOGBOOK:
319 :END:
320 *****
321 :LOGBOOK:
322 :END:
323 *****
324 :LOGBOOK:
325 :END:
326 ***
327 :LOGBOOK:
328 :END:
329 ***** DONE
330 :LOGBOOK:
331 :END:
332 ***** DONE
333 :LOGBOOK:
334 :END:
335 ***** DONE
336 :LOGBOOK:
337 :END:
338 ***** DONE
339 :LOGBOOK:
340 :END:
341 ***** DONE
342 :LOGBOOK:
343 :END:
344 ***** DONE
345 :LOGBOOK:
346 :END:
347 ***** DONE
348 :LOGBOOK:
349 :END:
350 ***** CANCELLED
351 :LOGBOOK:
352 :END:
353 ***** DONE
354 :LOGBOOK:
355 :END:
356 ***
357 :LOGBOOK:
358 :END:
359 *****
360 *****
361 :LOGBOOK:
362 :END:
363 *****
364 :LOGBOOK:
365 :END:
366 *****
367 :LOGBOOK:
368 :END:
369 ******* INPROGRESS
370 :LOGBOOK:
371 :END:
372 ******* DONE
373 ******* DONE
374 :LOGBOOK:
375 :END:
376 *******
377 ********* DONE
378 :LOGBOOK:
379 :END:
380 ********* DONE
381 :LOGBOOK:
382 :END:
383 *********
384 ******* DONE
385 :LOGBOOK:
386 :END:
387 ******* DONE
388 :LOGBOOK:
389 :END:
390 *****
391 ******* DONE
392 :LOGBOOK:
393 :END:
394 *********
395 :LOGBOOK:
396 :END:
397 ********* DONE
398 :LOGBOOK:
399 :END:
400 ********* CANCELLED
401 :LOGBOOK:
402 :END:
403 ******* DONE
404 :LOGBOOK:
405 :END:
406 ******* DONE
407 :LOGBOOK:
408 :END:
409 *****
410 :LOGBOOK:
411 :END:
412 *****
413 :LOGBOOK:
414 :END:
415 ***** DONE
416 :LOGBOOK:
417 :END:
418 *****
419 :LOGBOOK:
420 :END:
421 *****
422 :LOGBOOK:
423 :END:
424 *******
425 *****
426 :LOGBOOK:
427 :END:
428 *****
429 :LOGBOOK:
430 :END:
431 *****
432 :LOGBOOK:
433 :END:
434 ***
435 :LOGBOOK:
436 :END:
437 ***** DONE
438 :LOGBOOK:
439 :END:
440 ***** DONE
441 :LOGBOOK:
442 :END:
443 ***** WAITING
444 :LOGBOOK:
445 :END:
446 ***** DONE
447 :LOGBOOK:
448 :END:
449 ***
450 ***
451 ***
452 ***
453 *****
454 ***
455 *****
456 *****
457 *****
458 *****
459 *****
460 *****
461 ***
462 ***
463 :LOGBOOK:
464 :END:
465 ***** DONE
466 :LOGBOOK:
467 :END:
468 ***** DONE
469 :LOGBOOK:
470 :END:
471 ***** DONE
472 :LOGBOOK:
473 :END:
474 *****
475 :LOGBOOK:
476 :END:
477 ******* DONE
478 :LOGBOOK:
479 :END:
480 ***** DONE
481 :LOGBOOK:
482 :END:
483 ***** DONE
484 :LOGBOOK:
485 :END:
486 ***** DONE
487 :LOGBOOK:
488 :END:
489 ***** CANCELLED
490 :LOGBOOK:
491 :END:
492 *****
493 :LOGBOOK:
494 :END:
495 :PROPERTIES:
496 :END:
497 ***
498 ***
499 *****
500 *****
501 *******
502 *****
503 *******
504 *******
505 *******
506 *******
507 *******
508 *******
509 ***
510 ***
511 :LOGBOOK:
512 :END:
513 ***
514 :LOGBOOK:
515 :END:
516 *****
517 :LOGBOOK:
518 :END:
519 :PROPERTIES:
520 :END:
521 ***
522 :PROPERTIES:
523 :END:
524 :LOGBOOK:
525 :END:
526 ***** IDEA
527 *****
528 :LOGBOOK:
529 :END:
530 *******
531 *******
532 *****
533 *******
534 *******
535 *********
536 *******
537 *******
538 *********
539 ***********
540 *******
541 *******
542 *******
543 *******
544 *******
545 *******
546 *********
547 *****
548 ***** DONE
549 :LOGBOOK:
550 :END:
551 *****
552 *****
553 ***** DONE
554 :LOGBOOK:
555 :END:
556 *****
557 ******* DONE
558 :LOGBOOK:
559 :END:
560 *****
561 ******* DONE
562 :LOGBOOK:
563 :END:
564 *****
565 *****
566 *****
567 *****
568 *****
569 *****
570 *****
571 *****
572 ***** DONE
573 :LOGBOOK:
574 :END:
575 ***** DONE
576 :LOGBOOK:
577 :END:
578 ***** DONE
579 :LOGBOOK:
580 :END:
581 ***** DONE
582 :LOGBOOK:
583 :END:
584 ***** DONE
585 ***** DONE
586 :LOGBOOK:
587 :END:
588 *****
589 *****
590 *****
591 *******
592 *****
593 *****
594 *****
595 *****
596 *****
597 *******
598 *******
599 *******
600 *******
601 *****
602 ******* CANCELLED
603 :LOGBOOK:
604 :END:
605 *******
606 *****
607 *******
608 :LOGBOOK:
609 :END:
610 *******
611 *******
612 *******
613 *******
614 :PROPERTIES:
615 :END:
616 *******
617 :LOGBOOK:
618 :END:
619 *******
620 :LOGBOOK:
621 :END:
622 *********
623 :LOGBOOK:
624 :END:
625 ***********
626 ***********
627 *******
628 *****
629 *******
630 *
631 *
632 *****
633 :PROPERTIES:
634 :END:
635 *****
636 :LOGBOOK:
637 :END:
638 *****
639 :LOGBOOK:
640 :END:
641 *
642 ***
643 ***** DONE
644 :LOGBOOK:
645 :END:
646 *** TODO
647 ***
648 :LOGBOOK:
649 :END:
650 ***** DONE
651 :LOGBOOK:
652 :END:
653 ***** DONE
654 :LOGBOOK:
655 :END:
656 *****
657 ***** CANCELLED
658 :LOGBOOK:
659 :END:
660 ***** DONE
661 :LOGBOOK:
662 :END:
663 ***** PUTOFF
664 :LOGBOOK:
665 :END:
666 *****************************
667 *****************************
668 ***** DONE
669 :PROPERTIES:
670 :END:
671 :LOGBOOK:
672 :END:
673 ***** DONE
674 :LOGBOOK:
675 :END:
676 ***** TODO
677 ***** INPROGRESS
678 :LOGBOOK:
679 :END:
680 ***** PUTOFF
681 :LOGBOOK:
682 :END:
683 ***** DONE
684 :LOGBOOK:
685 :END:
686 ***** DONE
687 :LOGBOOK:
688 :END:
689 ***** DONE
690 :LOGBOOK:
691 :END:
692 :PROPERTIES:
693 :END:
694 ***** DONE
695 :LOGBOOK:
696 :END:
697 ***************************** DONE
698 :LOGBOOK:
699 :END:
700 *****************************
701 *******
702 ***** DONE
703 :LOGBOOK:
704 :END:
705 :PROPERTIES:
706 :END:
707 ***** DONE
708 :LOGBOOK:
709 :END:
710 ***** DONE
711 :LOGBOOK:
712 :END:
713 ***** CANCELLED
714 :LOGBOOK:
715 :END:
716 ***** IDEA
717 :LOGBOOK:
718 :END:
719 *****************************
720 :PROPERTIES:
721 :END:
722 *****************************
723 *****
724 :LOGBOOK:
725 :END:
726 ***** INPROGRESS
727 :LOGBOOK:
728 :END:
729 ******* DONE
730 :LOGBOOK:
731 :END:
732 ******* DONE
733 :LOGBOOK:
734 :END:
735 *****
736 :LOGBOOK:
737 :END:
738 *****
739 :LOGBOOK:
740 :END:
741 *****
742 :LOGBOOK:
743 :END:
744 ***** DONE
745 ******* DONE
746 :LOGBOOK:
747 :END:
748 :PROPERTIES:
749 :END:
750 ***** DONE
751 :LOGBOOK:
752 :END:
753 *****
754 :LOGBOOK:
755 :END:
756 ***** DONE
757 :LOGBOOK:
758 :END:
759 ***** DONE
760 :LOGBOOK:
761 :END:
762 :PROPERTIES:
763 :END:
764 ***** DONE
765 :LOGBOOK:
766 :END:
767 :PROPERTIES:
768 :END:
769 ***
770 :LOGBOOK:
771 :END:
772 ***
773 :LOGBOOK:
774 :END:
775 ***
776 :LOGBOOK:
777 :END:
778 ***
779 :LOGBOOK:
780 :END:
781 ***** DONE
782 :LOGBOOK:
783 :END:
784 *****
785 :LOGBOOK:
786 :END:
787 ***** DONE
788 :LOGBOOK:
789 :END:
790 :PROPERTIES:
791 :END:
792 *******
793 ***** DONE
794 :LOGBOOK:
795 :END:
796 :PROPERTIES:
797 :END:
798 ******* DONE
799 :LOGBOOK:
800 :END:
801 ***** TODO
802 ***** DONE
803 :LOGBOOK:
804 :END:
805 *****
806 :LOGBOOK:
807 :END:
808 *** PUTOFF
809 :LOGBOOK:
810 :END:
811 *** INPROGRESS
812 :LOGBOOK:
813 :END:
814 *** DONE
815 :LOGBOOK:
816 :END:
817 :PROPERTIES:
818 :END:
819 ***
820 ***** DONE
821 :LOGBOOK:
822 :END:
823 *** DONE
824 :LOGBOOK:
825 :END:
826 *** DONE
827 :LOGBOOK:
828 :END:
829 *** DONE
830 :LOGBOOK:
831 :END:
832 *
833 :PROPERTIES:
834 :END:
835 :LOGBOOK:
836 :END:
837 *** TODO
838 :LOGBOOK:
839 :END:
840 *****
841 ***
842 :LOGBOOK:
843 :END:
844 *** DONE
845 :LOGBOOK:
846 :END:
847 ***** TODO
848 :LOGBOOK:
849 :END:
850 *** DONE
851 :LOGBOOK:
852 :END:
853 *** DONE
854 :PROPERTIES:
855 :END:
856 :LOGBOOK:
857 :END:
858 *** DONE
859 :LOGBOOK:
860 :END:
861 *** DONE
862 :LOGBOOK:
863 :END:
864 *** IDEA
865 :LOGBOOK:
866 :END:
867 *** DONE
868 :LOGBOOK:
869 :END:
870 *** DONE
871 *** DONE
872 :LOGBOOK:
873 :END:
874 *** DONE
875 :LOGBOOK:
876 :END:
877 ***** DONE
878 :LOGBOOK:
879 :END:
880 *** DONE
881 :LOGBOOK:
882 :END:
883 *** DONE
884 :PROPERTIES:
885 :END:
886 :LOGBOOK:
887 :END:
888 ***** DONE
889 :LOGBOOK:
890 :END:
891 ***** DONE
892 :LOGBOOK:
893 :END:
894 ***** DONE
895 :LOGBOOK:
896 :END:
897 ***** DONE
898 :LOGBOOK:
899 :END:
900 *****
901 *****
902 :LOGBOOK:
903 :END:
904 *** DONE
905 :LOGBOOK:
906 :END:
907 *** INPROGRESS
908 :LOGBOOK:
909 :END:
910 *** DONE
911 :PROPERTIES:
912 :END:
913 :LOGBOOK:
914 :END:
915 *****
916 *****
917 :LOGBOOK:
918 :END:
919 *** DONE
920 :LOGBOOK:
921 :END:
922 *****
923 :LOGBOOK:
924 :END:
925 :PROPERTIES:
926 :END:
927 *** DONE
928 :LOGBOOK:
929 :END:
930 *** DONE
931 :LOGBOOK:
932 :END:
933 *** DONE
934 :LOGBOOK:
935 :END:
936 ***** DONE
937 :LOGBOOK:
938 :END:
939 *** DONE
940 :LOGBOOK:
941 :END:
942 *** DONE
943 :LOGBOOK:
944 :END:
945 *** DONE
946 *** DONE
947 *** DONE
948 :LOGBOOK:
949 :END:
950 *** DONE
951 :LOGBOOK:
952 :END:
953 *** DONE
954 :LOGBOOK:
955 :END:
956 *** DONE
957 :LOGBOOK:
958 :END:
959 *****
960 :LOGBOOK:
961 :END:
962 :PROPERTIES:
963 :END:
964 *
965 ***
966 :LOGBOOK:
967 :END:
968 *
969 :PROPERTIES:
970 :END:
971 :LOGBOOK:
972 :END:
973 *
974 ***
975 ***
976 ***
977 *
978 :LOGBOOK:
979 :END:
980 *** DONE
981 :LOGBOOK:
982 :END:
983 ***
984 ***
985 ***
986 ***
987 :PROPERTIES:
988 :END:
989 :LOGBOOK:
990 :END:
991 ***
992 :LOGBOOK:
993 :END:
994 *****
995 :LOGBOOK:
996 :END:
997 *****
998 :LOGBOOK:
999 :END:
1000 ***
1001 :LOGBOOK:
1002 :END:
1003 :PROPERTIES:
1004 :END:
1005 ***
1006 *****
1007 :LOGBOOK:
1008 :END:
1009 *****
1010 *****
1011 *****
1012 *****
1013 :LOGBOOK:
1014 :END:
1015 ***
1016 :LOGBOOK:
1017 :END:
1018 *****
1019 :LOGBOOK:
1020 :END:
1021 ***** DONE
1022 :LOGBOOK:
1023 :END:
1024 :PROPERTIES:
1025 :END:
1026 *****
1027 :LOGBOOK:
1028 :END:
1029 :PROPERTIES:
1030 :END:
1031 *****
1032 :LOGBOOK:
1033 :END:
1034 ***** DONE
1035 :LOGBOOK:
1036 :END:
1037 *** CANCELLED
1038 :LOGBOOK:
1039 :END:
1040 ***
1041 *** DONE
1042 :LOGBOOK:
1043 :END:
1044 *** DONE
1045 :LOGBOOK:
1046 :END:
1047 ***
1048 *****************************
1049 *****************************
1050 *****************************
1051 *****************************
1052 *****************************
1053 *****************************
1054 *** CANCELLED
1055 :LOGBOOK:
1056 :END:
1057 ***
1058 :LOGBOOK:
1059 :END:
1060 ***
1061 :LOGBOOK:
1062 :END:
1063 ***
1064 :LOGBOOK:
1065 :END:
1066 ***
1067 :LOGBOOK:
1068 :END:
1069 ***
1070 ***
1071 ***
1072 :LOGBOOK:
1073 :END:
1074 ***
1075 :LOGBOOK:
1076 :END:
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-02-25 23:36 [bug?] org-repair-property-drawers does not repair whole file Gregor Zattler
@ 2015-03-08 17:01 ` Nicolas Goaziou
2015-03-08 20:02 ` Gregor Zattler
0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-03-08 17:01 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Gregor Zattler <telegraph@gmx.net> writes:
> I invoked org-repair-property-drawers on a fairly large org-mode
> file. It did sort some PROPERTIES drawers in front of LOGBOOK
> ones but not all. Since I do not understand the logic of
> org-repair-property-drawers I prepared a file with the structure
> of the org-mode file after running org-repair-property-drawers on
> it:
>
> egrep "^\*+|^ *:PROPERTIES:|^ *:LOGBOOK:|^ *:END:" file.org |nl >headings-properties-logbook-numbered
>
> sed -e "s/\(^
> \+[0-9]\+[[:space:]]*\*\+[[:space:]]*\)\(TODO\|INPROGRESS\|WAITING\|VERIFY\|DONE\|DELEGATED\|CANCELLED\|PUTOFF\|IDEA\)*\(.*$\)/\1\2/"
> headings-properties-logbook-numbered
>>headings-properties-logbook-numbered.anon
>
> I don’t how to isolate the bug or the circumstances which trigger
> it. The file headings-properties-logbook-numbered.anon is
> attached to this email. I hope it might be useful to you to find
> the bug.
Unfortunately it doesn't ring a bell.
Running `org-repair-property-drawers' on your file repairs it. Would it
be related to `org-inlinetask' (i.e., different behaviour if the library
is loaded or not)?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-03-08 17:01 ` Nicolas Goaziou
@ 2015-03-08 20:02 ` Gregor Zattler
2015-03-08 21:45 ` Nicolas Goaziou
0 siblings, 1 reply; 8+ messages in thread
From: Gregor Zattler @ 2015-03-08 20:02 UTC (permalink / raw)
To: emacs-orgmode
Hi Nicolas,
* Nicolas Goaziou <mail@nicolasgoaziou.fr> [08. Mar. 2015]:
> Unfortunately it doesn't ring a bell.
>
> Running `org-repair-property-drawers' on your file repairs it. Would it
> be related to `org-inlinetask' (i.e., different behaviour if the library
> is loaded or not)?
Sadly no: I reapplied `org-repair-property-drawers' on my org
file with no customisation at all:
emacs-snapshot -Q -nw -L /home/grfz/src/org-mode/lisp/ file.org ~/src/org-mode/etc/ORG-NEWS
I loaded `org-repair-property-drawers' from
~/src/org-mode/etc/ORG-NEWS and executed it in file.org. Result
is ’(nil nil nil nil nil nil nil nil nil nil nil nil ... )’ and
the buffer file.org remains unmodified.
This is with:
GNU Emacs 25.0.50.2 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-08 on boo
Org-mode version 8.3beta (release_8.3beta-893-g1219b0 @/home/grfz/src/org-mode/lisp/)
I rechecked with emacs24:
GNU Emacs 24.4.91.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-08 on boo
and same org-mode: same result.
Ciao, Gregor
--
-... --- .-. . -.. ..--.. ...-.-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-03-08 20:02 ` Gregor Zattler
@ 2015-03-08 21:45 ` Nicolas Goaziou
2015-03-09 11:09 ` Gregor Zattler
0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-03-08 21:45 UTC (permalink / raw)
To: emacs-orgmode
Gregor Zattler <telegraph@gmx.net> writes:
> Sadly no: I reapplied `org-repair-property-drawers' on my org
> file with no customisation at all:
>
> emacs-snapshot -Q -nw -L /home/grfz/src/org-mode/lisp/ file.org ~/src/org-mode/etc/ORG-NEWS
>
> I loaded `org-repair-property-drawers' from
> ~/src/org-mode/etc/ORG-NEWS and executed it in file.org. Result
> is ’(nil nil nil nil nil nil nil nil nil nil nil nil ... )’ and
> the buffer file.org remains unmodified.
Doesn't the function fix the "anon" file you sent?
Is it possible to have access to the file? You might want to hide
contents first with the following function
(defun scramble-contents ()
(interactive)
(let ((tree (org-element-parse-buffer)))
(org-element-map tree '(code comment comment-block example-block fixed-width
keyword link node-property plain-text verbatim)
(lambda (obj)
(cl-case (org-element-type obj)
((code comment comment-block example-block fixed-width keyword
node-property verbatim)
(let ((value (org-element-property :value obj)))
(org-element-put-property
obj :value (replace-regexp-in-string "[[:alnum:]]" "x" value))))
(link
(unless (string= (org-element-property :type obj) "radio")
(org-element-put-property obj :raw-link "http://orgmode.org")))
(plain-text
(org-element-set-element
obj (replace-regexp-in-string "[[:alnum:]]" "x" obj)))))
nil nil nil t)
(let ((buffer (get-buffer-create "*Scrambled text*")))
(with-current-buffer buffer
(insert (org-element-interpret-data tree))
(goto-char (point-min)))
(switch-to-buffer buffer))))
Regards,
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-03-08 21:45 ` Nicolas Goaziou
@ 2015-03-09 11:09 ` Gregor Zattler
2015-03-09 16:43 ` Nicolas Goaziou
0 siblings, 1 reply; 8+ messages in thread
From: Gregor Zattler @ 2015-03-09 11:09 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
Hi Nicolas,
* Nicolas Goaziou <mail@nicolasgoaziou.fr> [08. Mar. 2015]:
> Gregor Zattler <telegraph@gmx.net> writes:
>
>> Sadly no: I reapplied `org-repair-property-drawers' on my org
>> file with no customisation at all:
>>
>> emacs-snapshot -Q -nw -L /home/grfz/src/org-mode/lisp/ file.org ~/src/org-mode/etc/ORG-NEWS
>>
>> I loaded `org-repair-property-drawers' from
>> ~/src/org-mode/etc/ORG-NEWS and executed it in file.org. Result
>> is ’(nil nil nil nil nil nil nil nil nil nil nil nil ... )’ and
>> the buffer file.org remains unmodified.
>
> Doesn't the function fix the "anon" file you sent?
No. I removed the line numbers so that the stars of the headings
are at the first column and invoced `org-repair-property-drawers'
in the same way as described above. The buffer remains
unmodified and the output is `nil'.
> Is it possible to have access to the file? You might want to hide
> contents first with the following function
>
> (defun scramble-contents ()
Yes. I scrambled it with your function, changed tags (which were
not scrambled by `scramble-contents') and obfuscated clock lines.
The result is attached.
Thanks for looking into this, but if it’s only me: It would be
not much work to clean up the file by hand.
Gregor
[-- Attachment #2: scrambled.org.gz --]
[-- Type: application/gzip, Size: 63809 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-03-09 11:09 ` Gregor Zattler
@ 2015-03-09 16:43 ` Nicolas Goaziou
2015-03-09 19:27 ` Gregor Zattler
0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-03-09 16:43 UTC (permalink / raw)
To: emacs-orgmode
Gregor Zattler <telegraph@gmx.net> writes:
> No. I removed the line numbers so that the stars of the headings
> are at the first column and invoced `org-repair-property-drawers'
> in the same way as described above. The buffer remains
> unmodified and the output is `nil'.
I cannot reproduce it.
>> Is it possible to have access to the file? You might want to hide
>> contents first with the following function
>>
>> (defun scramble-contents ()
>
> Yes. I scrambled it with your function, changed tags (which were
> not scrambled by `scramble-contents') and obfuscated clock lines.
> The result is attached.
I see invalid property drawers, e.g.,
> :PROPERTIES:
> :Xxxx: Xxx, xx Xxx xxxx xx:xx:xx +xxxx
> :Xxxx: Xxxxxxx Xxxxxx <x.xxxxxx@xxx.xx>
> :Xxxxxxx-XX: <xxxxxxxX.xxxxxxx@xxx.xx>
> :Xxxxxxx: XXX XXX - XX xx xx.xx.xxxx - Xxxxxx xx. xx:xx
> :Xx: Xxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxxxxxx Xxxxxxxxx <x.xxxxxxxxx@xxx.xx>, Xxxxx Xxxx <x.xxxxx@xxx.xx>, Xxxxxxxxx Xxxxxxxx <x.xxxxxxxx@xxx.xx>, Xxxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxx Xxxxx Xxxx <x.xxxx@xxx.xx>, Xxxxxxxx Xxxx <x.xxxxx@xxx.xx>, Xxxxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxxx Xxxxxxx <x.xxxxxxx@xxx.xx>, Xxxxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxx Xxxxxx <x.xxxxxxx@xxx.xx>, Xxxxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxxxxx Xxxx <x.xxxx@xxx.xx>, Xxxxxxxxx Xxxxxxxx <x.xxxxxxxx@xxx.xx>
> :Xxxx: Xxxxx XXXxxx,
> xx xx.x.xxxx xxx xxx xxxxxxx Xxxxxxxxxxxxxxxxxxxxxxxxx xxx XXX.
> Xxx xxxxxxx xxx xxxxxxxx Xxxxxxxxxxxx xxx, xxxx xxxxxxx Xxxxxx xxx Xxxxxxxxx xxxx,
> xxxxx xxx Xxxx xx xxxx:
> XXX x Xxxxxxxxx
> XXX x Xxxxxxxxxxxx
> XXX x Xxxxxxxxxx
> XXX x Xxxxxxxxxxx xxx Xxxxxxxxxxxxxxxxxxxxx - Xxx xxxxxx xxx xxxx xxxxxx
> Xxxxxxxxxxxxxxxxxxxxx xxxxxxx xxxx? (Xxx x XX)
> XXX x Xxxxxxxxxxxx xxx Xxxx xxx Xxxxxxxxxx xxx Xxxxxxxxxxxxxx (Xxx x XX)
> XXX x Xxxxxxxxxxxxx xxx Xxxxxxxxxxxxxxxxxxx xxxx/Xxxxxxxxxxxxxxx xxxx xxx XX xxx
> XXX (Xxx x XX)
> XXX x Xxxxxxxxxxxxx xxx XXX-XXX (Xxxxxxxxxxxxxx!) xxxx xxx xxxxxxxx Xxxxxxxxxxx
> xxx XXX (Xxx x XX)
> XXX x Xxxxxxxxx
> Xxx xxxxxxx xxx, xxxx xxx xxxxxx Xxxxxxxx xxxx xxx Xxxxxxxxx xxxxxx (xx. xx:xx,
> xxxxxxx Xxxxxx xxx xxxx xxxxxxxxxxx).
> Xxx xxxx xxx Xxxxxx, xxx xxxxxxx xxxxx (xxxxxxx) xxxx xxxxx xxxxxxx.
> Xxxxx Xxxxx xxx xxx xxxxxxxxxx Xxxxxx.
> Xxxxxxx
> :END:
A property drawer can contain only node properties, and there is one
node property per line.
Ill-formed property drawers were not moved.
Regards,
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-03-09 16:43 ` Nicolas Goaziou
@ 2015-03-09 19:27 ` Gregor Zattler
2015-03-10 8:18 ` Nicolas Goaziou
0 siblings, 1 reply; 8+ messages in thread
From: Gregor Zattler @ 2015-03-09 19:27 UTC (permalink / raw)
To: emacs-orgmode
Hi Nicolas, org-mode developers and users,
* Nicolas Goaziou <mail@nicolasgoaziou.fr> [09. Mar. 2015]:
> Gregor Zattler <telegraph@gmx.net> writes:
> I see invalid property drawers, e.g.,
>
> > :PROPERTIES:
> > :Xxxx: Xxx, xx Xxx xxxx xx:xx:xx +xxxx
> > :Xxxx: Xxxxxxx Xxxxxx <x.xxxxxx@xxx.xx>
> > :Xxxxxxx-XX: <xxxxxxxX.xxxxxxx@xxx.xx>
> > :Xxxxxxx: XXX XXX - XX xx xx.xx.xxxx - Xxxxxx xx. xx:xx
> > :Xx: Xxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxxxxxx Xxxxxxxxx <x.xxxxxxxxx@xxx.xx>, Xxxxx Xxxx <x.xxxxx@xxx.xx>, Xxxxxxxxx Xxxxxxxx <x.xxxxxxxx@xxx.xx>, Xxxxxxx Xxxxxx <x.xxxxxx@xxx.xx>, Xxx Xxxxx Xxxx <x.xxxx@xxx.xx>, Xxxxxxxx Xxxx <x.xxxxx@xxx.xx>, Xxxxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxxx Xxxxxxx <x.xxxxxxx@xxx.xx>, Xxxxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxx Xxxxxx <x.xxxxxxx@xxx.xx>, Xxxxxxx Xxxxx <x.xxxxx@xxx.xx>, Xxxxxxxx Xxxx <x.xxxx@xxx.xx>, Xxxxxxxxx Xxxxxxxx <x.xxxxxxxx@xxx.xx>
> > :Xxxx: Xxxxx XXXxxx,
> > xx xx.x.xxxx xxx xxx xxxxxxx Xxxxxxxxxxxxxxxxxxxxxxxxx xxx XXX.
[... 17 lines deleted ...]
> > Xxxxxxx
> > :END:
>
> A property drawer can contain only node properties, and there is one
> node property per line.
As you might guess this part represents an email, the multi line
node being the message body. How would one incorporate such
info in proper org-mode syntax? Since as of now I do not query
the name=value pairs this is no strict necessity for me.
Is there a syntax checker for org-mode files?
> Ill-formed property drawers were not moved.
Thanks for your explanation and time spent, Gregor
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [bug?] org-repair-property-drawers does not repair whole file
2015-03-09 19:27 ` Gregor Zattler
@ 2015-03-10 8:18 ` Nicolas Goaziou
0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2015-03-10 8:18 UTC (permalink / raw)
To: emacs-orgmode
Gregor Zattler <telegraph@gmx.net> writes:
> As you might guess this part represents an email, the multi line
> node being the message body. How would one incorporate such
> info in proper org-mode syntax? Since as of now I do not query
> the name=value pairs this is no strict necessity for me.
It depends on what you want to do with that data. You may use another
drawer, e.g. :EMAIL: or a quote block, or an example block...
> Is there a syntax checker for org-mode files?
There is no invalid syntax in Org mode. What you wrote is a valid
drawer, albeit not a valid properties drawer.
Regards,
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-10 8:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 23:36 [bug?] org-repair-property-drawers does not repair whole file Gregor Zattler
2015-03-08 17:01 ` Nicolas Goaziou
2015-03-08 20:02 ` Gregor Zattler
2015-03-08 21:45 ` Nicolas Goaziou
2015-03-09 11:09 ` Gregor Zattler
2015-03-09 16:43 ` Nicolas Goaziou
2015-03-09 19:27 ` Gregor Zattler
2015-03-10 8:18 ` Nicolas Goaziou
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.