From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [calfw] Better use of space Date: Fri, 22 Jul 2011 11:12:46 +0200 Message-ID: <87hb6e7k6p.fsf@gmail.com> References: <87tyag57ue.fsf@gmail.com> <20110722070359.2BC7F13C54E@vps1.kiwanami.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkBlZ-00042e-4x for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 05:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkBlW-0006wQ-Nq for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 05:11:29 -0400 Received: from lo.gmane.org ([80.91.229.12]:56362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkBlV-0006wE-Rq for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 05:11:26 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QkBlT-0004Z7-JB for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 11:11:23 +0200 Received: from 0x555293e1.adsl.cybercity.dk ([85.82.147.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2011 11:11:23 +0200 Received: from rasmus by 0x555293e1.adsl.cybercity.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2011 11:11:23 +0200 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: emacs-orgmode@gnu.org Hi Masashi, > I like here We're trilled that you're here! > Thanks for your request and good images. > I think this request involves 3 functions. You are probably right. > * Time table layout > > I think this function is very difficult, because it needs many study > for me to implement, including following functions. > Of course, I consider the time table view is one of the goal of calfw. Oh, right; it could be done as a seperate view or layout. > * Display multiple-lines items (the source splits an item multiple lines.) > > This is not so difficult. In this mechanism, the source objects can > propose some formats, for example, "15:00 appointment" and ("15:00-15:30" > "appointment"). Then, calfw chooses the suitable format and displays > in the current layout algorithm. It could be a string similar to how BBDB, Gnus and other Emacs mode does it. See for example (describe-variable 'gnus-summary-line-format). User could specify calfw:timeview-format "%Starttime-%Endtime: %Event" or whatever. > * Word-wrapping and folding lines (calfw splits lines within a column.) > > This is little difficult. I think word-wrapping, folding lines and > truncating strings can not be achieved in the narrow columns > straightforwardly. I need a time to study this issue. Hmm, I guess the width of column is calculated when generating the view. I'll use pseudo-code as my Emacs Lisp isn't great. #+begin_src emacs-lisp (if (> (calfw:timeview-entry-length) (calfw:column-length)) (#split-entry after column-length, preferbly after word # and retur ) #+end_src I hope it makes sense. . . –Rasmus -- Sent from my Emacs