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] emacs: Add 'pretty-sha-path'.
Date: Tue, 04 Nov 2014 22:37:14 +0100	[thread overview]
Message-ID: <87h9ye8x6d.fsf@gnu.org> (raw)
In-Reply-To: <87d2926he1.fsf@gmail.com> (Alex Kost's message of "Tue, 04 Nov 2014 19:48:54 +0300")

Alex Kost <alezost@gmail.com> skribis:

> Also I forgot to mention “emacs/guix-messages.el” in “emacs.am” in
> commit 62f261d, so I did it in this patch (I hope it's not too evil :-))

Maybe “evil” is too strong a word ;-), but please keep the
emacs/guix-messages.el addition in a separate commit.

Commits are cheap and easy, so let’s favor clarity.

> From e7ca6550d7f33d894e0023e3305938fce365fdba Mon Sep 17 00:00:00 2001
> From: Alex Kost <alezost@gmail.com>
> Date: Tue, 4 Nov 2014 19:38:27 +0300
> Subject: [PATCH] emacs: Add 'pretty-sha-path'.
>
> * emacs/pretty-sha-path.el: New file.
> * emacs.am (ELFILES): Add it.
> * doc/emacs.texi (Emacs Pretty Path): New node.

[...]

> +@node Emacs Pretty Path
> +@subsection Pretty SHA Path Mode

What about adding, at the end of the first paragraph of the “Features”
section, something like:

  ... where @code{xxx} is a base32 string (note that Guix comes with an
  Emacs extension to shorten those file names, @ref{Emacs Pretty Path}.)

> +Along with ``guix.el'', GNU@tie{}Guix comes with ``pretty-sha-path.el''.
> +It provides a minor mode for abbreviating store paths by replacing
> +SHA-sequences of symbols with ``@dots{}'':
> +
> +@example
> +/gnu/store/onecansee32lettersandnumbershere-foo-0.1  @result{}  /gnu/store/…-foo-0.1

Perhaps insert a line break before @result{}, otherwise the PDF output
may be truncated.

> +@item M-x pretty-sha-path-global-mode
> +Enable/disable prettifying globally.

It seemed to me that the convention would be to call it
global-pretty-sha-path-mode rather, no?

Other than that, LGTM!

Mark is right about refining the regexp, but OTOH false positives are
very unlikely, and it might make things slightly slower, no?  So either
way is fine with me.

Thanks!

Ludo’.

  parent reply	other threads:[~2014-11-04 21:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 16:48 [PATCH] emacs: Add 'pretty-sha-path' Alex Kost
2014-11-04 19:39 ` Mark H Weaver
2014-11-05 11:24   ` Alex Kost
2014-11-04 21:37 ` Ludovic Courtès [this message]
2014-11-05 11:24   ` Alex Kost
2014-11-05 20:12     ` Ludovic Courtès
2014-11-05 21:38       ` Alex Kost
2014-11-06  9:37         ` Ludovic Courtès
2014-11-06 13:13           ` [PATCH] emacs: Add 'guix-prettify' Alex Kost
2014-11-06 16:05             ` 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=87h9ye8x6d.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.