From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: PATCH: org-mobile.el, fix line encoding for checksums.dat Date: Fri, 13 Nov 2009 00:51:44 +0100 Message-ID: <2149CDBF-F41B-4817-AD63-D96B7238C15A@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8jSD-0005nV-7L for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 18:51:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8jS8-0005mR-E1 for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 18:51:52 -0500 Received: from [199.232.76.173] (port=56594 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8jS8-0005mN-9w for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 18:51:48 -0500 Received: from ey-out-1920.google.com ([74.125.78.146]:40999) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8jS7-0003t3-Nc for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 18:51:48 -0500 Received: by ey-out-1920.google.com with SMTP id 3so696780eyh.34 for ; Thu, 12 Nov 2009 15:51:46 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Charles Sebold Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Nov 12, 2009, at 8:06 PM, Charles Sebold wrote: > After discussing the problem briefly with Richard, I have a > suggested patch for org-mobile.el. > > This will force checksums.dat to always be Unix line encoding. > > --- a/lisp/org-mobile.el > +++ b/lisp/org-mobile.el > @@ -409,6 +409,7 @@ The table of checksums is written to the file > mobile-checksums." > (files org-mobile-checksum-files) > entry file sum) > (with-temp-file sumfile > + (set-buffer-file-coding-system 'undecided-unix nil) > (while (setq entry (pop files)) > (setq file (car entry) sum (cdr entry)) > (insert (format "%s %s\n" sum file)))))) > > He said he may update MobileOrg to handle other linefeed encodings, > but for the meantime this seems to work for me. > > On Thu, Nov 12, 2009 at 11:47 AM, Charles Sebold > wrote: > I wonder, does MobileOrg always expect Unix-style line feeds? > > I ask because it seems to me as if, when I push from Emacs on > Windows, from then on every time I sync, I have to download and read > in every single org file. I have 20-30 org files and a couple of > them are over 200K so this takes a while. > > If I take the same org files and push them from Linux, I have to > reread everything once, and then every sync from Linux after that > only seems to force it to reread the files that changed. > > So, I'm wondering if it's not reading one of the files correctly: > checksums.dat, or one of the agenda files. I don't know enough > about the iPhone app source to figure that one out, but I could > think of workarounds for org-mobile.el if it always needs to produce > Unix-style files for pushing. > -- > Charles Sebold > http://triablogue.blogspot.com/ > http://merbc.invigorated.org/ > Ego delendus sum > > > > -- > Charles Sebold > http://triablogue.blogspot.com/ > http://merbc.invigorated.org/ > Ego delendus sum > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten