From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [FEATURE] mobile-org on android don't show the hours of the event Date: Mon, 6 Jun 2011 09:29:36 +0200 Message-ID: References: <87pqp34kzk.dlv@debian.org> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTUFq-0000eM-UP for emacs-orgmode@gnu.org; Mon, 06 Jun 2011 03:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTUFp-00077r-7y for emacs-orgmode@gnu.org; Mon, 06 Jun 2011 03:29:42 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:45215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTUFo-00077n-R4 for emacs-orgmode@gnu.org; Mon, 06 Jun 2011 03:29:41 -0400 Received: by ewy9 with SMTP id 9so1449841ewy.0 for ; Mon, 06 Jun 2011 00:29:39 -0700 (PDT) In-Reply-To: <87pqp34kzk.dlv@debian.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?iso-8859-1?Q?R=E9mi_Vanicat?= Cc: emacs-orgmode@gnu.org Hi Remi, On Apr 3, 2011, at 1:45 PM, R=E9mi Vanicat wrote: > Hello list, >=20 > When looking at the agenda on my phone, I can't see the hours of the > events I'm looking at. It seem the information is available (it's in = the > agenda.org that is used by android's mobile-org to show, but I can't > understand how to make my android phone) >=20 > There is a patch to org-mobile.el that make the times visible on my > phone. I don't know how it will shine on others phone (I've no iphone = to > test it), and even if the choice to hide this is seen as a feature for > some.=20 >=20 Could you please show an example? Show us an entry in the Org file, what it looks like on an iphone (if possible) and what it looks like on your Android. Only then we can judge if this is an issue with MobileOrg for Android, or with Org-mode itself. - Carsten > =46rom 0ce98d4f5606cade97edfc4165bf1119e1fcb1ff Mon Sep 17 00:00:00 = 2001 > From: =3D?UTF-8?q?R=3DC3=3DA9mi=3D20Vanicat?=3D > Date: Sun, 3 Apr 2011 11:36:02 +0200 > Subject: [PATCH] Show the time in org-mobile agenda. >=20 > --- > lisp/org-mobile.el | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) >=20 > diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el > index 83462f0..af3c8b1 100644 > --- a/lisp/org-mobile.el > +++ b/lisp/org-mobile.el > @@ -597,7 +597,7 @@ The table of checksums is written to the file = mobile-checksums." >=20 > (defvar org-mobile-creating-agendas nil) > (defun org-mobile-write-agenda-for-mobile (file) > - (let ((all (buffer-string)) in-date id pl prefix line app short m = sexp) > + (let ((all (buffer-string)) in-date id pl prefix line app short m = sexp time) > (with-temp-file file > (org-mode) > (insert "#+READONLY\n") > @@ -630,6 +630,7 @@ The table of checksums is written to the file = mobile-checksums." > (get-text-property (point) 'org-marker))) > (setq sexp (member (get-text-property (point) 'type) > '("diary" "sexp"))) > + (setq time (get-text-property (point) 'time)) > (if (setq pl (text-property-any (point) (point-at-eol) = 'org-heading t)) > (progn > (setq prefix (org-trim (buffer-substring > @@ -638,6 +639,8 @@ The table of checksums is written to the file = mobile-checksums." > pl > (point-at-eol)))) > (delete-region (point-at-bol) (point-at-eol)) > + (when time > + (insert time " ")) > (insert line "" prefix "") > (beginning-of-line 1)) > (and (looking-at "[ \t]+") (replace-match ""))) > --=20 > 1.7.4.1 >=20 >=20 > --=20 > R=E9mi Vanicat - Carsten