From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Emacs package management with org-mode Date: Fri, 20 Nov 2009 13:42:57 +0100 Message-ID: <87bpixs6y6.wl%maus.david@gmail.com> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBSpb-0005Ym-F4 for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:43:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBSpa-0005YH-Qf for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:43:19 -0500 Received: from [199.232.76.173] (port=47319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBSpa-0005YE-MJ for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:43:18 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:26774) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBSpZ-0005VC-KX for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:43:18 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1084033eyh.34 for ; Fri, 20 Nov 2009 04:43:16 -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: andrea Crotti Cc: emacs-orgmode@gnu.org Hi Andrea, At Sat, 14 Nov 2009 18:35:28 +0000 (UTC), andrea Crotti wrote: > > I was keeping a list of packages I use with emacs (here) > http://github.com/AndreaCrotti/Emacs-conf/blob/master/.emacs.d/README.txt > > but now I had another idea, why don't create a table with org mode? > > I thought a table like > > | PACK | UPDATE CMD | REPO | COMMENT | RANK | CONF | > > where > PACK: name and link > UPDATE CMD: command shell or elisp to give to update it > REPO: where is actually stored (could be a file or a directory) > CONF: my configuration file > > So in this way in my dream if for example I want to update auto-complete > my function > - looks for it on the table > - cd to the right directory > - git pull the differences (and do other things as needed) > > and I have all the informations in one table. > > It's not so easy I guess but it maybe worth the effort, what do you think? > Thanks Interesting idea as this sounds as a nice way to manage my list of remote repositories I am subscribed to. I cannot provide a fully working solution (yet?) but after playing arround with column view (Manual, Sec. 7.5) something like that could be a starting point: ,---- | * Repositories | :PROPERTIES: | :COLUMNS: %25ITEM %25Path %12LastUpdate | :END: | | #+BEGIN: columnview :hlines 1 :id local | | ITEM | Path | LastUpdate | | |-----------------+-------------+------------------| | | * Repository | | | | | ** Repository 1 | /home/david | 2009-10-11 11:12 | | #+END: | | ** Repository 1 | :PROPERTIES: | :Path: /home/david | :LastUpdate: 2009-10-11 11:12 | :END: `---- Instead of using a table to *store* the information about the repositories, use a dynamically created property view to display repository information that are kept in headlines with the appropriate properites. So an update-function would process all "repository headlines" (org-map-entry), read it's properties and act according to them. Despite of simply executing an update command it seems to me that wrapping common update commands (wget, git, hg etc.) in elisp functions that call the program and parse it's output. For instance one might find it useful to get notified if an update failed or, more general, keep a condensed update log for each repository. Regards, -- David -- OpenPGP... 0x316F4BE4670716FD Jabber.... dmjena@jabber.org Email..... maus.david@gmail.com ICQ....... 241051416