unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: "T.V Raman" <raman@google.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Async Package.el Feedback
Date: Tue, 7 Apr 2015 18:22:41 +0100	[thread overview]
Message-ID: <CAAdUY-JVX1SkhtKXnTH+P9_45=u4ccCyBP+jCd5StnJCPwv1Kw@mail.gmail.com> (raw)
In-Reply-To: <21796.1453.613891.252869@retriever.mtv.corp.google.com>

I just did the following and I don't get any prompt.

    ln -s file1 file2
    emacs -q
    M-x find-file file2

But if `file1' is a version controled file, then I do get the prompt
(asRasmus explained).

I think I'll do 2 things about this:

1. Read the contents of the file before visiting it, so if it already
contains `package-initialize' we don't need to visit it at all. This
will get rid of this prompt for users who version control their init
file.
2. Do this visiting thing during package-initialize instead of during
package-install, this way it should only happen once per session
(unless the user manually initializes again, which is not a big
issue). This way, if another unexpected corner case like this shows
up, the user won't get faced with the problem 28 times in a row.


Another possibility I've been considering would be to let go of this
solution and switch to the second solution initially proposed on the
other thread (checking a file or an enviroment variable to decide
whether to package-initialize at startup or not).

2015-04-07 17:28 GMT+01:00 T.V Raman <raman@google.com>:
> Simple way to repro: create symlink foo to file bar, then find-file
> foo you'll see the dialog/prompt I'm talking about.
> --
>
> --



  reply	other threads:[~2015-04-07 17:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07  0:29 Async Package.el Feedback raman
2015-04-07  9:41 ` Artur Malabarba
2015-04-07 15:23   ` raman
2015-04-07 16:08     ` Artur Malabarba
2015-04-07 16:28       ` T.V Raman
2015-04-07 17:22         ` Artur Malabarba [this message]
2015-04-07 17:32           ` T.V Raman
2015-04-07 17:46             ` Artur Malabarba
2015-04-07 16:20     ` Rasmus

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='CAAdUY-JVX1SkhtKXnTH+P9_45=u4ccCyBP+jCd5StnJCPwv1Kw@mail.gmail.com' \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.com \
    /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).