emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [bug?] org-repair-property-drawers does not repair whole file
Date: Mon, 9 Mar 2015 12:09:21 +0100	[thread overview]
Message-ID: <20150309110921.GB11863@boo.workgroup> (raw)
In-Reply-To: <87d24j40zr.fsf@nicolasgoaziou.fr>

[-- 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 --]

  reply	other threads:[~2015-03-09 11:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-03-09 16:43         ` Nicolas Goaziou
2015-03-09 19:27           ` Gregor Zattler
2015-03-10  8:18             ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150309110921.GB11863@boo.workgroup \
    --to=telegraph@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).