emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <maus.david@gmail.com>
To: andrea Crotti <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Emacs package management with org-mode
Date: Fri, 20 Nov 2009 13:42:57 +0100	[thread overview]
Message-ID: <87bpixs6y6.wl%maus.david@gmail.com> (raw)
In-Reply-To: <loom.20091114T192952-532@post.gmane.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

      reply	other threads:[~2009-11-20 12:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-14 18:35 Emacs package management with org-mode andrea Crotti
2009-11-20 12:42 ` David Maus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpixs6y6.wl%maus.david@gmail.com \
    --to=maus.david@gmail.com \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).