all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Daniel Hackney <dan@haxney.org>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Re: package.el changes before the feature freeze
Date: Thu, 04 Oct 2012 16:16:51 +0800	[thread overview]
Message-ID: <87626qk5xo.fsf@gnu.org> (raw)
In-Reply-To: <CAMqXDZtYNN2HNKcQ-kmW_T4-R_hN6AvSaNd4V6hkV6t7HrC1tw@mail.gmail.com> (Daniel Hackney's message of "Wed, 3 Oct 2012 18:41:36 -0400")

In general, I find this patch very difficult to review.  As just one
example, you made a big change to `list-packages' by making it no longer
call package-read-all-archive-contents, but there is no justification or
explanation given, and appears to have nothing to do with the defstruct
cleanup.

Could you break it up into several different patches, each doing one
thing?

Here are some comments from a quick skim through the patch:

> -;; Version: 1.0
> +;; Version: 1.5

Why the jump of 0.4 versions?

> -;; GNU Emacs is free software: you can redistribute it and/or modify
> +;; GNU Emacs is free software; you can redistribute it and/or modify

Please get rid of such differences, they make the patch harder to read.

> -                :value-type (string :tag "URL or directory name"))
> +		:value-type (string :tag "URL or directory name"))

Likewise, please get rid of whitespace differences.

> +;; Translations for the old versions of package-desc-* substitutions.
> +(defsubst package-old-desc-vers (desc)
> +  "Extract version from an old-style package description vector."
> +  (aref desc 0))
> ...
> +(defvar package-builtins-newified nil

Please get rid of these functions and their callers, and all the newify
stuff.  Instead, change `finder-compile-keywords' in finder.el to use
the defstruct format and include it in the patch.

>      (cond ((string= sA sB)
> 	   (package-menu--name-predicate A B))
> -	  ((string= sA "new") t)
> -	  ((string= sB "new") nil)
> -	  ((string= sA "available") t)
> +	  ((string= sA  "available") t)
> 	  ((string= sB "available") nil)

Why did you get rid of the "new" status?  Also, you added more
gratuitous whitespace differences to this function.

> -(defun package-menu-mark-unmark (&optional _num)
> +(defun package-menu-mark-unmark (&optional num)

Why?



  reply	other threads:[~2012-10-04  8:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-30 16:58 package.el changes before the feature freeze Daniel Hackney
2012-09-30 20:21 ` Stefan Monnier
2012-09-30 23:50   ` Daniel Hackney
2012-10-01  1:21     ` Stefan Monnier
2012-10-01  3:11 ` Chong Yidong
2012-10-03  0:33   ` Daniel Hackney
2012-10-03 22:41   ` [PATCH] " Daniel Hackney
2012-10-04  8:16     ` Chong Yidong [this message]
2012-10-05 23:13       ` Daniel Hackney
2012-10-06  1:38         ` Stefan Monnier
2012-10-08  2:32           ` Chong Yidong
2012-10-08 19:16           ` Daniel Hackney
2012-10-08 19:50             ` Stefan Monnier
2012-10-09  1:11               ` Daniel Hackney
2012-10-09  6:48                 ` Stefan Monnier
2012-10-09 17:07                   ` Daniel Hackney
2012-10-09 17:39                     ` Stefan Monnier
2012-10-09 21:39                       ` Daniel Hackney
2012-10-09 22:25                         ` Glenn Morris
2012-10-12  3:58                         ` Chong Yidong

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=87626qk5xo.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=dan@haxney.org \
    --cc=emacs-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/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.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.