unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: Forcing reinstall in package.el
Date: Wed, 15 Dec 2010 08:55:51 -0600	[thread overview]
Message-ID: <87y67rytjc.fsf@lifelogs.com> (raw)
In-Reply-To: AANLkTikGUX12eNmkE39u3BzQu8EM1Rp0XzEw_dbTHSG8@mail.gmail.com

On Tue, 14 Dec 2010 17:27:55 -0800 Phil Hagelberg <phil@hagelb.org> wrote: 

PH> 2010/12/14 Ted Zlatanov <tzz@lifelogs.com>:
>> On Tue, 14 Dec 2010 10:21:28 -0800 Phil Hagelberg <phil@hagelb.org> wrote:
>> 
PH> While doing development of packages using package.el, I often find
PH> myself reinstalling packages using M-x package-install-from-buffer.
PH> However, this is a bit cumbersome because I have to remember to delete
PH> the old version of the package out of my .emacs.d first. It would be
PH> nice for package-install-from-buffer to be able to take a prefix
PH> argument or something that would delete the package before attempting
PH> to install it.
>> 
PH> I volunteer to implement this if it's desired.
>> 
>> Asking the user to give a prefix argument puts a burden on them.  Can
>> `package-install-from-buffer' figure out if it needs to delete the old
>> package on its own, with maybe a y-or-n prompt at the end?

PH> To be honest, I'd prefer it if overwriting were the default behaviour
PH> for all installations, but I hesitated to suggest a wide-sweeping
PH> change like that. =) 

I think that's reasonable, since the user chooses what to upgrade from
the package list.  Chong, Stefan, what do you think?

PH> I agree that overwriting should probably be the default for
PH> package-install-from-buffer especially; confirmation is unnecessary.

Yes, that was the specific use case I had in mind.  But maybe there
should be a message with sit-for 2 seconds so the user can tell
something tragic is about to happen.

Ted




  reply	other threads:[~2010-12-15 14:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-14 18:21 Forcing reinstall in package.el Phil Hagelberg
2010-12-14 21:28 ` Ted Zlatanov
2010-12-15  1:27   ` Phil Hagelberg
2010-12-15 14:55     ` Ted Zlatanov [this message]
2010-12-15 20:06       ` Tom Tromey
2010-12-15 21:54         ` Ted Zlatanov
2010-12-29 20:08           ` Phil Hagelberg
2011-01-19 20:18             ` Ted Zlatanov
2011-02-10 18:05             ` [PATCH] " Phil Hagelberg
2011-02-12  1:18               ` Chong Yidong
2010-12-17  4:10         ` Stefan Monnier
2010-12-17 14:17           ` Tom Tromey
2010-12-17 14:48             ` Ted Zlatanov
2010-12-17 15:56               ` Tom Tromey
2010-12-18 15:42                 ` Ted Zlatanov
2010-12-21 15:42                   ` Tom Tromey

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87y67rytjc.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).