Re: [PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-18 Thread Alex Kost
Ludovic Courtès (2016-04-17 18:40 +0300) wrote: > Alex Kost skribis: > >> Ludovic Courtès (2016-04-16 01:23 +0300) wrote: > > [...] > >>> If you choose to take the ‘define-values’ approach above, I think you >>> can just list they keys already in the vhash: >>> >>> (define-values (package-by-so

Re: [PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-17 Thread Ludovic Courtès
Alex Kost skribis: > Ludovic Courtès (2016-04-16 01:23 +0300) wrote: [...] >> If you choose to take the ‘define-values’ approach above, I think you >> can just list they keys already in the vhash: >> >> (define-values (package-by-something-file package-something-files) >> (let* ((table (d

Re: [PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-17 Thread Alex Kost
Ludovic Courtès (2016-04-16 01:23 +0300) wrote: > Alex Kost skribis: [...] >> The problem (well, not really a problem) is: along with this procedure >> (to get packages by location file), I need another one (to get a list >> of location files). > > Right, I had forgotten about that second use. >

Re: [PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-15 Thread Ludovic Courtès
Alex Kost skribis: > Ludovic Courtès (2016-04-05 23:38 +0300) wrote: > >> Alex Kost skribis: >> >>> * emacs/guix-main.scm (%package-location-table): New variable. >>> (package-location-table, package-locations, packages-by-location): New >>> procedures. >>> (%patterns-makers): Add 'location' sea

Re: [PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-06 Thread Alex Kost
Ludovic Courtès (2016-04-05 23:38 +0300) wrote: > Alex Kost skribis: > >> * emacs/guix-main.scm (%package-location-table): New variable. >> (package-location-table, package-locations, packages-by-location): New >> procedures. >> (%patterns-makers): Add 'location' search type. >> * emacs/guix-mess

Re: [PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-05 Thread Ludovic Courtès
Alex Kost skribis: > * emacs/guix-main.scm (%package-location-table): New variable. > (package-location-table, package-locations, packages-by-location): New > procedures. > (%patterns-makers): Add 'location' search type. > * emacs/guix-messages.el (guix-message-packages-by-location): New procedur

[PATCH 1/6] emacs: Add 'guix-packages-by-location' command.

2016-04-04 Thread Alex Kost
* emacs/guix-main.scm (%package-location-table): New variable. (package-location-table, package-locations, packages-by-location): New procedures. (%patterns-makers): Add 'location' search type. * emacs/guix-messages.el (guix-message-packages-by-location): New procedure. (guix-messages): Use it. * e