all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] emacs: Add interface for comparing generations.
Date: Sun, 02 Nov 2014 18:59:55 +0100	[thread overview]
Message-ID: <871tplmqjo.fsf@gnu.org> (raw)
In-Reply-To: <87bnopu9te.fsf@gmail.com> (Alex Kost's message of "Sun, 02 Nov 2014 14:21:49 +0300")

Alex Kost <alezost@gmail.com> skribis:

> In short, now (with this patch) after marking 2 generations (by pressing
> "m" in a “generation-list” buffer), you can perform diff/ediff on
> generation packages or manifests.  Thanks to Ludovic for the idea.

I just tried it, and I like it!

There are cases where the output of ‘=’ is slightly confusing: the
buffers being compared don’t include the directory name of the packages,
so, when packages have been upgraded (different directory names, but
same version), it just says “no differences.”

Perhaps the fix would be to add the directory names in the buffers being
diffed, in a format similar to that of ‘guix package -I’?

I have another case where C-u = shows that the only difference is the
addition of one package, but = shows a diff with only minuses, as if
everything had been removed.  Any idea what could be wrong?

> +++ b/doc/emacs.texi
> @@ -239,6 +239,21 @@ Mark the current generation for deletion (with prefix, mark all
>  generations).
>  @item x
>  Execute actions on the marked generations---i.e., delete generations.
> +@item e
> +Run Ediff (@pxref{Top,,, ediff, Ediff}) on package outputs installed in
> +the 2 marked generations.  With prefix argument, run Ediff on manifests
> +of the marked generations.
> +@item D
> +@itemx =
> +Run Diff (@pxref{Diff Mode,,, emacs, The Emacs Editor}) on package
> +outputs installed in the 2 marked generations.  With prefix argument,
> +run Diff on manifests of the marked generations.
> +@item +
> +List package outputs added to the latest marked generation comparing
> +with another marked generation.
> +@item -
> +List package outputs removed from the latest marked generation comparing
> +with another marked generation.

Likewise, ‘u’ (for ‘upgraded’) could be added (possibly in a future
patch.)

Also, s/The Emacs Editor/GNU Emacs Manual/, which is the real title of
the Emacs manual as it appears in the texi source.

Thanks,
Ludo’.

  reply	other threads:[~2014-11-02 17:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02 11:21 [PATCH 2/2] emacs: Add interface for comparing generations Alex Kost
2014-11-02 17:59 ` Ludovic Courtès [this message]
2014-11-02 22:31   ` Alex Kost
2014-11-03 22:22     ` Ludovic Courtès
2014-11-04  7:30       ` Alex Kost
2014-11-04  9:50         ` Ludovic Courtès
2014-11-04 12:52           ` Alex Kost
2014-11-04 16:50             ` Ludovic Courtès

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

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

  git send-email \
    --in-reply-to=871tplmqjo.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=alezost@gmail.com \
    --cc=guix-devel@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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.