From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylor Sutton Newsgroups: gmane.emacs.bugs Subject: bug#18414: org-mobile checksum stuff supressing errors and using inconsistent checksum Date: Fri, 5 Sep 2014 14:00:29 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b86e924fa654905025540c8 X-Trace: ger.gmane.org 1409940981 19711 80.91.229.3 (5 Sep 2014 18:16:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2014 18:16:21 +0000 (UTC) To: 18414@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 20:16:15 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XPy3P-0001OZ-OQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2014 20:16:12 +0200 Original-Received: from localhost ([::1]:59635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPy3P-0005Jf-A2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2014 14:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPy3I-0005Ep-Ld for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPy3G-0002ij-Kh for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:16:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPy3G-0002ie-C0 for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XPy3F-0004md-Q5 for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Taylor Sutton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Sep 2014 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18414 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140994095718372 (code B ref -1); Fri, 05 Sep 2014 18:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Sep 2014 18:15:57 +0000 Original-Received: from localhost ([127.0.0.1]:60067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XPy39-0004mE-85 for submit@debbugs.gnu.org; Fri, 05 Sep 2014 14:15:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39681) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XPxp5-0004Pc-S9 for submit@debbugs.gnu.org; Fri, 05 Sep 2014 14:01:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPxoy-0006f0-6v for submit@debbugs.gnu.org; Fri, 05 Sep 2014 14:01:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPxoy-0006eu-3l for submit@debbugs.gnu.org; Fri, 05 Sep 2014 14:01:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPxov-0003ff-He for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:01:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPxot-0006e9-CT for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:01:13 -0400 Original-Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:49169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPxot-0006do-0f for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 14:01:11 -0400 Original-Received: by mail-pa0-f43.google.com with SMTP id et14so22701022pad.16 for ; Fri, 05 Sep 2014 11:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=bFxhp7Z5m4iwVCTqgDjL5Ve7DXWKaxZQbuIJq+AreUI=; b=unOy156Vu5Gs76MSRPiryBx0+i3HqtIPaf7eNeYQu/D5gMGXcUttSDEmWamhJO2xom dMY560xlyozcc2ptXOTe+f6mHJspw5jwlBRMnh1m5HAiQ+JOwg1JbiAf4X/aa/lFmT0q eWTgFVNGOPv1oAs2iIlPQWkJJslp7VfrB9Z7pfY7QE7wA4LVtLUA0wlqNZNj1CLITjSB Nqy0jH4h0xFlVIq3X/c+lxiwo2jxYd9NOEd9IMs9foObSaviTCVOq5Dul8XGHrISEg7x Id316YLLO4ce1bn15lZ3xdRr8hq2W8XfUoS7lmypW1dP+LGWiItPxDBh4QgiUCo+5u5l uE3w== X-Received: by 10.66.161.130 with SMTP id xs2mr24173480pab.36.1409940069178; Fri, 05 Sep 2014 11:01:09 -0700 (PDT) Original-Received: by 10.70.6.33 with HTTP; Fri, 5 Sep 2014 11:00:29 -0700 (PDT) X-Google-Sender-Auth: 1cuO8MskYqp7v5bBko9c2MM7f9c X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Fri, 05 Sep 2014 14:15:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93081 Archived-At: --047d7b86e924fa654905025540c8 Content-Type: text/plain; charset=UTF-8 Two related bugs. As far as I understand, in org-mobile.el, part of the org-mobile code is writing checksums of the files to be sync'd to checksums.dat, and the checksum function is (supposed to be) governed by the custom variable org-mobile-checksum-binary. However, for the index file, the agenda file, and the capture file, the checksums are always computed with the elisp md5 function instead. I am not sure if this particular part should actually be considered a bug. But it affected the next part. If the custom org-mobile-checksum-binary is set wrong (in my case, I did not quote the filepath which has spaces in it) then in the function 'org-mobile-copy-agenda-files, after running the 'shell-command-to-string, the output which was, for me on windows, 'c:/program' is not recognized as an internal or external command, operable program or batch file and that did not satisfy the when statement's string-match, and so the checksums of my files were not written to checksums.dat - but there was no message of any kind indiciating this to me as a user, and I didn't realize what was happening until I delved into org-mobile.el. It was especially confusing because some checksums were being written due to the hard-coded checksum function described above. Anyway so, in sum (haha) if there are any issues running the shell-command-to-string inside of org-mobile-copy-agenda-files, those issues seem to be silently suppressed, leading to checksums not being written and files not syncing WITHOUT any indication of what's going on. Expected behavior is that I get some indication of what happened so I can fix it. -Taylor Sutton taylors@mit.edu The data below was included by report-emacs-bug In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ENU locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Org Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-k C-k C-x C-s C-n C-n C-n C-n k C-/ C-x C-s C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-x C-s M-x C-g C-x C-f C-g C-h f m o b i l e SPC - SPC o r g SPC m b o o b i l e SPC p u s SPC C-x o C-n C-f C-x r j a C-x r b a C-s m o b i l e C-g C-s c h e c k s u m - f i l e s C-s C-s C-s C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-r b u f f e r - s r C-g C-n C-g C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-s C-g C-r m d 5 C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-g M-x e r r r b u g SPC SPC r SPC C-g C-x 4 b t o d o M-x r e p o r t SPC b u e m SPC b SPC Recent messages: (No changes need to be saved) Saving file c:/Users/taylors/Dropbox/todo.org... Wrote c:/Users/taylors/Dropbox/todo.org Quit [2 times] Type C-x 1 to delete the help window. jump-to-register: Register doesn't contain a buffer position or configuration Quit Mark saved where search started [2 times] Quit [3 times] byte-code: Beginning of buffer [4 times] Quit Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch bookmark pp help-mode org-archive org-id tabify diary-lib diary-loaddefs cal-iso org-mobile org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus gnus-util org-docview org-bibtex bibtex org-bbdb org byte-opt warnings bytecomp byte-compile cconv advice help-fns cl-lib advice-preload ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs ido haskell-mode-autoloads edmacro kmacro imenu info easymenu package time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) --047d7b86e924fa654905025540c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Two related bugs. As far as I understand, in org-mobile.el= , part of
the org-mobile code is writing checksums of the files to be sy= nc'd to
checksums.dat, and the checksum function is (supposed to be)= governed by
the custom variable org-mobile-checksum-binary. However, fo= r the index
file, the agenda file, and the capture file, the checksums a= re always
computed with the elisp md5 function instead. I am not sure if= this
particular part should actually be considered a bug. But it affect= ed the
next part.

If the custom org-mobile-checksum-binary is set= wrong (in my case, I did
not quote the filepath which has spaces in it)= then in the function
'org-mobile-copy-agenda-files, after running t= he
'shell-command-to-string, the output which was, for me on windows= ,

'c:/program' is not recognized as an internal or external= command,
operable program or batch file

and that did not satisfy= the when statement's string-match, and so the
checksums of my files= were not written to checksums.dat - but there was
no message of any kin= d indiciating this to me as a user, and I didn't
realize what was ha= ppening until I delved into org-mobile.el. It was
especially confusing b= ecause some checksums were being written due to
the hard-coded checksum = function described above.

Anyway so, in sum (haha) if there are any = issues running the
shell-command-to-string inside of org-mobile-copy-age= nda-files, those
issues seem to be silently suppressed, leading to check= sums not being
written and files not syncing WITHOUT any indication of w= hat's going
on. Expected behavior is that I get some indication of w= hat happened so
I can fix it.

-Taylor Sutton taylors@mit.edu

The data below was included by re= port-emacs-bug

In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
=C2=A0= of 2013-03-17 on MARVIN
Windowing system distributor `Microsoft Corp.= 9;, version 6.1.7601
Configured using:
=C2=A0`configure --with-gcc (4= .7) --cflags
=C2=A0-ID:/devel/emacs/libs/libXpm-3.5.8/include
=C2=A0-= ID:/devel/emacs/libs/libXpm-3.5.8/src
=C2=A0-ID:/devel/emacs/libs/libpng= -dev_1.4.3-1/include
=C2=A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/includ= e
=C2=A0-ID:/devel/emacs/libs/giflib-4.1.4-1/include
=C2=A0-ID:/devel= /emacs/libs/jpeg-6b-4/include
=C2=A0-ID:/devel/emacs/libs/tiff-3.8.2-1/i= nclude
=C2=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include
=C2=A0-ID:/de= vel/emacs/libs/libiconv-1.13.1-1-dev/include
=C2=A0-ID:/devel/emacs/libs= /libxml2-2.7.8/include/libxml2'

Important settings:
=C2=A0 va= lue of $LANG: ENU
=C2=A0 locale-coding-system: cp1252
=C2=A0 default = enable-multibyte-characters: t

Major mode: Org

Minor modes in= effect:
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 = tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode= : t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2= =A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-= encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number= -mode: t
=C2=A0 transient-mark-mode: t

Recent input:
<mouse= -1> C-k C-k C-x C-s C-n C-n C-n C-n k C-/ C-x
C-s C-k C-k C-k C-k C-= k C-k C-k C-k C-k C-k C-k C-k
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C= -k C-k C-k
C-x C-s M-x C-g C-x C-f C-g C-h f m o b i l e SPC -
SPC = <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> o r g SPC m b o
= <backspace> <backspace> o b i l e SPC p u s SPC <return> =
C-x o C-n C-f <return> C-x r j a C-x r b a <return>
C-s= m o b i l e C-g C-s c h e c k s u m - f i l e s
C-s C-s C-s <return= > C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-= p C-p C-p C-p C-p
C-p C-p C-p C-p C-r b u f f e r <tab> - s r <= ;backspace>
<backspace> <tab> C-g C-n C-g C-n C-n C-n C-= n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C= -n C-n C-n C-n C-s C-g C-r m d 5 C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-= s C-s C-g <help-echo> <wheel-up>
<double-wheel-up> &l= t;wheel-up> <wheel-up> <wheel-up>
<wheel-up> <d= ouble-wheel-up> <triple-wheel-up> <triple-wheel-up>
<= triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<= ;triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
&l= t;triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
&= lt;triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
= <triple-wheel-up> <triple-wheel-up> <triple-wheel-up> <triple-wheel-up> <help-echo> M-x e r r r <backspace> <backspace> <backspace> <backspace> b u g SPC SPC r <backspace> <backspace> <backspace> <backspace> &l= t;backspace>
<backspace> <backspace> <backspace> &= lt;backspace> SPC
<backspace> <backspace> <backspace&= gt; <backspace> <backspace>
<backspace> <backspace= > <backspace> <backspace> <backspace>
<backspac= e> <backspace> <backspace> C-g C-x 4 b t o
d o <retur= n> M-x r e p o r t SPC b u <backspace> <backspace>
e m S= PC b SPC <return>

Recent messages:
(No changes need to be s= aved)
Saving file c:/Users/taylors/Dropbox/todo.org...
Wrote c:/Users= /taylors/Dropbox/todo.org
Quit [2 times]=
Type C-x 1 to delete the help window.
jump-to-register: Register doe= sn't contain a buffer position or configuration
Quit
Mark saved w= here search started [2 times]
Quit [3 times]
byte-code: Beginning of = buffer [4 times]
Quit

Load-path shadows:
None found.

Fe= atures:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-de= code
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailhea= der
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utilsmisearch multi-isearch bookmark pp help-mode org-archive org-id tabify
= diary-lib diary-loaddefs cal-iso org-mobile org-wl org-w3m org-vm
org-rm= ail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp
ob-ex= p org-exp-blocks org-agenda org-info org-gnus gnus-util org-docview
org-= bibtex bibtex org-bbdb org byte-opt warnings bytecomp byte-compile
cconv= advice help-fns cl-lib advice-preload ob-tangle ob-ref ob-lob
ob-table = org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete
comint an= si-color ring org-list org-faces org-entities noutline outline
easy-mmod= e org-version ob-emacs-lisp ob org-compat org-macs ob-eval
org-loaddefs = format-spec find-func cal-menu calendar cal-loaddefs ido
haskell-mode-au= toloads edmacro kmacro imenu info easymenu package
time-date tooltip edi= ff-hook vc-hooks lisp-float-type mwheel dos-w32
ls-lisp w32-common-fns d= isp-table w32-win w32-vars tool-bar dnd fontset
image regexp-opt fringe = tabulated-list newcomment lisp-mode register
page menu-bar rfn-eshadow t= imer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-cor= e frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-v= iet lao korean japanese hebrew
greek romanian slovak czech european ethi= opic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simp= le abbrev minibuffer loaddefs
button faces cus-face macroexp files text-= properties overlay sha1 md5
base64 format env code-pages mule custom wid= get hashtable-print-readable
backquote make-network-process w32 multi-tt= y emacs)

--047d7b86e924fa654905025540c8--