From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.devel Subject: Re: Async Package.el Feedback Date: Tue, 7 Apr 2015 10:32:19 -0700 Message-ID: <21796.5283.460048.898286@retriever.mtv.corp.google.com> References: <21795.9431.463084.313806@gargle.gargle.HOWL> <21796.1453.613891.252869@retriever.mtv.corp.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1428427957 3319 80.91.229.3 (7 Apr 2015 17:32:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2015 17:32:37 +0000 (UTC) Cc: emacs-devel@gnu.org, raman@google.com To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 07 19:32:36 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YfXMY-0004Hh-G9 for ged-emacs-devel@m.gmane.org; Tue, 07 Apr 2015 19:32:34 +0200 Original-Received: from localhost ([::1]:47691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfXMX-0005VO-Rn for ged-emacs-devel@m.gmane.org; Tue, 07 Apr 2015 13:32:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfXMO-0005Nc-PH for emacs-devel@gnu.org; Tue, 07 Apr 2015 13:32:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfXMM-0005Cy-1G for emacs-devel@gnu.org; Tue, 07 Apr 2015 13:32:24 -0400 Original-Received: from mail-ie0-x249.google.com ([2607:f8b0:4001:c03::249]:33331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfXML-0005Cm-S0 for emacs-devel@gnu.org; Tue, 07 Apr 2015 13:32:21 -0400 Original-Received: by iebtr6 with SMTP id tr6so3418835ieb.0 for ; Tue, 07 Apr 2015 10:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:cc:subject:in-reply-to:references; bh=yQu6fV3R1R1LfZQdC5PHMueN1njlpEkzvfakTD1qbFg=; b=lrjzIn/Db+kTXc18mjTYr+QGZ54ZexgRraxmEyvbzrbJqZPb7lKq1iEt6UtynHK+sR MYBxdiS1WtGN5Q0e4CkHWP8yCYI/MCWB96+4n0Ni9jrAsFyiPt89eIw1bvimbvaT5HST lgjS1Wb4cPsyJhiG2N+tTgcvRYY5dUaYHy2yCJluhBXkEBwO5o0kfAiaMhvzWPSuAlmS ybAzYnWSGfd/mqF7zIGO92S8JcQVSh8kQZfabxw69RT3CFHlVRuPPhRe0s2k3a23b8ob hPTxn13wWuKyzrPnT6kKOPPsrlSEizabm3eNWUSR/9U5AmkKE/ScsDEprNUliQtFBfYO qi6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:cc:subject:in-reply-to :references; bh=yQu6fV3R1R1LfZQdC5PHMueN1njlpEkzvfakTD1qbFg=; b=AyEdMzTzgtDiuLD4aa6P4Q8PJypl4uFMijZ5b7wVUKPmZS8rXWVyTYGnVlAA7fKs+8 7gk9GMPEfDNwtiOF60f+y4BrlOjC6pTiXofupXb6iD1qjq7OGlYKuIcRD81UhlLBG8hU e7LEsqvEZ/DA8BmqPYrjgnNvrtIHI+Yl5W19HcgD9MU8ZWuzG0AcZTbW/bL2OWR1Cidr jmdhzgpTsYGWgrPslnbP4JK3EEnH2ldY5yPPoxOwJh7YoE/QmOCTHSmXMYCToW507Kq9 /GNnsJCljOoKLikMe+E6ErNhffemxpUIvMbzB/h3VfJ8CsKEP96Edh+1m66PquKYdifU HTCA== X-Gm-Message-State: ALoCoQmgNWTcpxNleuL6X9Qg0tX2rzcRGbeQ5ksL89rh3xo1Q7wNT35bacrILuNfF9XvlKhLTNcv X-Received: by 10.50.50.195 with SMTP id e3mr4213370igo.6.1428427940422; Tue, 07 Apr 2015 10:32:20 -0700 (PDT) Original-Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id 40si370298yho.6.2015.04.07.10.32.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 10:32:20 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([172.22.128.40]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id t83O9zg8.1; Tue, 07 Apr 2015 10:32:20 -0700 Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 974181A34D2; Tue, 7 Apr 2015 10:32:19 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 25.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::249 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185099 Archived-At: For now, the first solution sounds good to me -- personally I've always found env vars a source of surprize and prefer to keep emacs customizations inside emacs. What I do wish for (separate from package.el) is the ability to 1. Have the custom file split into a per-package collection of files and 2. A solution that encrypts them all. The present giant custom file gets very fragile -- I keep losing settings inexplicably, and encryption would be nice. Artur Malabarba writes: > 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 : > > Simple way to repro: create symlink foo to file bar, then find-file > > foo you'll see the dialog/prompt I'm talking about. > > -- > > > > -- -- --