From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?R=C3=A9mi_Vanicat?= Subject: [FEATURE] mobile-org on android don't show the hours of the event Date: Sun, 03 Apr 2011 13:45:03 +0200 Message-ID: <87pqp34kzk.dlv@debian.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=47767 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6Lke-0004tq-Vm for emacs-orgmode@gnu.org; Sun, 03 Apr 2011 07:46:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6Lk9-0006uu-AI for emacs-orgmode@gnu.org; Sun, 03 Apr 2011 07:45:29 -0400 Received: from lo.gmane.org ([80.91.229.12]:59266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6Lk8-0006uU-Sl for emacs-orgmode@gnu.org; Sun, 03 Apr 2011 07:45:21 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q6Lk7-0002ve-DG for emacs-orgmode@gnu.org; Sun, 03 Apr 2011 13:45:19 +0200 Received: from 78.116.68.143 ([78.116.68.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Apr 2011 13:45:19 +0200 Received: from vanicat by 78.116.68.143 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Apr 2011 13:45:19 +0200 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello list, 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) 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Show-the-time-in-org-mobile-agenda.patch >From 0ce98d4f5606cade97edfc4165bf1119e1fcb1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Sun, 3 Apr 2011 11:36:02 +0200 Subject: [PATCH] Show the time in org-mobile agenda. --- lisp/org-mobile.el | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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." (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 ""))) -- 1.7.4.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit -- RĂ©mi Vanicat --=-=-=--