From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: bruno.vasselle--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#37116: 26.1; User choice user-emacs-directory is not honored Date: Tue, 20 Aug 2019 22:11:32 +0200 (CEST) Message-ID: <1709344906.2816463.1566331892630.JavaMail.zimbra@laposte.net> References: <99676126.1919199.1566311626414.JavaMail.zimbra@laposte.net> <838srnlqsp.fsf@gnu.org> <1564913112.2639585.1566327047431.JavaMail.zimbra@laposte.net> Reply-To: bruno.vasselle@laposte.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2816462_1037236515.1566331892629" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="239747"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37116@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 20 22:12:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0AUF-0010Hl-3I for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Aug 2019 22:12:11 +0200 Original-Received: from localhost ([::1]:41060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0AUE-0007NS-2W for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Aug 2019 16:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45936) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0AU7-0007NC-Py for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 16:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0AU6-0000Jt-Em for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 16:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0AU6-0000Jp-Bg for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 16:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0AU6-00045Y-3X for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: bruno.vasselle@laposte.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Aug 2019 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37116 X-GNU-PR-Package: emacs Original-Received: via spool by 37116-submit@debbugs.gnu.org id=B37116.156633189715684 (code B ref 37116); Tue, 20 Aug 2019 20:12:02 +0000 Original-Received: (at 37116) by debbugs.gnu.org; 20 Aug 2019 20:11:37 +0000 Original-Received: from localhost ([127.0.0.1]:34148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0ATg-00044t-PL for submit@debbugs.gnu.org; Tue, 20 Aug 2019 16:11:37 -0400 Original-Received: from smtpoutz10.laposte.net ([194.117.213.175]:43473 helo=smtp.laposte.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0ATe-00044k-3G for 37116@debbugs.gnu.org; Tue, 20 Aug 2019 16:11:35 -0400 Original-Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout004 (Postfix) with ESMTP id F00F5617C99 for <37116@debbugs.gnu.org>; Tue, 20 Aug 2019 22:11:32 +0200 (CEST) Original-Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout004 (Postfix) with ESMTP id D8250617A9D for <37116@debbugs.gnu.org>; Tue, 20 Aug 2019 22:11:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1566331892; bh=TRFxT/snRVujLckrQZk6J/v3hjqQDVD1KX+oMHvq2GQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=LdFLCBKlAVmQDuelz68tHBj5rHi3j5gO5IgWS5hup8mY+i2MMfvd+Fd9fNHpl1l6/ oDyywpfDT6y4ooEtIxnZnSbgsZJD+8Rv/J8pI+p1yA+Zax7HOFeZzomOTKBAbICZL4 rrX7rZ9NPv04UYiZkV4P6zYQOmLSCgjUp1nKyOehWXdk4Nc/IyqP2eVKm4sa578sFk grSoPecBJ8/pSoCeKasa+daw/7NbrzkQ6HdFqnJwNDLHzU47lk2CqcQzBUS57CSLrW h0yM3EK0uCpQ34uG9Fx+eSw5CxfUPDziwHroG7lIBKDUCwwHw3NBeQQ4rCcCBOyWtA g645pDmTXA1Gg== Original-Received: from lpn-prd-mstr087.laposte (lpn-prd-mstr087 [10.128.59.113]) by lpn-prd-vrout004 (Postfix) with ESMTP id BCEE6617A4E; Tue, 20 Aug 2019 22:11:32 +0200 (CEST) In-Reply-To: <1564913112.2639585.1566327047431.JavaMail.zimbra@laposte.net> X-Originating-IP: [88.187.179.11] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - GC70 (Linux)/La Poste) Thread-Topic: bug#37116: 26.1; User choice user-emacs-directory is not honored Thread-Index: OAt9OPc0DdhaIWun3OIv7AzfqcF6LabR+l1b X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrgeduvddrudeguddgudegfecutefuodetggdotefrodftvfcurfhr X-VR-Cause-2: ohhfihhlvgemucfntefrqffuvffgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghn X-VR-Cause-3: thhsucdlqddutddtmdenucfjughrpeffhffvkfgjfhfugggtihfothesrgdttggsredtjeenucfhrhho X-VR-Cause-4: mhepsghruhhnohdrvhgrshhsvghllhgvsehlrghpohhsthgvrdhnvghtnecukfhppedutddruddvkedr X-VR-Cause-5: heelrdduudefpdekkedrudekjedrudejledruddunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VR-Cause-6: pdhinhgvthepuddtrdduvdekrdehledruddufedphhgvlhhopehlphhnqdhprhguqdhmshhtrhdtkeej X-VR-Cause-7: rdhlrghpohhsthgvpdhmrghilhhfrhhomhepsghruhhnohdrvhgrshhsvghllhgvsehlrghpohhsthgv X-VR-Cause-8: rdhnvghtpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepfeejudduieesuggv X-VR-Cause-9: sggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-VR-AvState: No X-VR-State: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165444 Archived-At: ------=_Part_2816462_1037236515.1566331892629 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Note: commit 32051c2 is not in my git tree...=20 Note: tried from commit emacs-26.2: same result=20 Note: tried from last commit in master (68f086): same result=20 Typo: you've certainly corrected by yourself, but it is actually auto-save-= list that is created under .emacs.d, not auto-save-list-file-prefix=20 ----- Mail original ----- De: "bruno vasselle" =20 =C3=80: "Eli Zaretskii" =20 Cc: 37116@debbugs.gnu.org=20 Envoy=C3=A9: Mardi 20 Ao=C3=BBt 2019 20:50:47=20 Objet: Re: bug#37116: 26.1; User choice user-emacs-directory is not honored= =20 Added (manually) to commit tagged emacs-26.1.92, in defcustom auto-save-lis= t-file-prefix':=20 :initialize 'custom-initialize-delay=20 Done same tests with auto-save configuration commented out in "please-do-it= .el".=20 - The directory .emacs.d is created=20 - It is populated with a directory auto-save-list-file-prefix=20 Checked that emacs is actually the one I've just build: it is.=20 Also checked that /usr/share/emacs/26.1.92/lisp/startup.el* are up to date:= they are, though sibling .el are not affected except subdirs.el.=20 Thus, no, it does not seem to work.=20 Shall I try from another commit ?=20 ----- Mail original ----- De: "Eli Zaretskii" =20 =C3=80: "bruno vasselle" =20 Cc: 37116@debbugs.gnu.org=20 Envoy=C3=A9: Mardi 20 Ao=C3=BBt 2019 18:55:50=20 Objet: Re: bug#37116: 26.1; User choice user-emacs-directory is not honored= =20 > Date: Tue, 20 Aug 2019 16:33:46 +0200 (CEST)=20 > From: bruno.vasselle--- via "Bug reports for GNU Emacs,=20 > the Swiss army knife of text editors" =20 >=20 > Alright... but it's not legitimate: as I've set `user-emacs-directory', I= should not have to furthermore tell=20 > auto-save where to put its material. If I need to, this means I need to a= lso for every possible package that uses=20 > user-emacs-directory. And emacs still trashes my home directory.=20 Does the patch below solve your problem?=20 diff --git a/lisp/startup.el b/lisp/startup.el=20 index 32051c2..d753e6a 100644=20 --- a/lisp/startup.el=20 +++ b/lisp/startup.el=20 @@ -405,6 +405,7 @@ auto-save-list-file-prefix=20 Directories in the prefix will be created if necessary.=20 Set this to nil if you want to prevent `auto-save-list-file-name'=20 from being initialized."=20 + :initialize 'custom-initialize-delay=20 :type '(choice (const :tag "Don't record a session's auto save list" nil)= =20 string)=20 :group 'auto-save)=20 ------=_Part_2816462_1037236515.1566331892629 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Note: commit 32051c2 is not= in my git tree...
Note: tried from commit emacs-26.2: same r= esult
Note: tried from last commit in master (68f086): same resul= t

Typo: you've certainly corrected= by yourself, but it is actually auto-save-list that is created under = .emacs.d, not auto-save-list-file-prefix



De: "bruno vasselle" <bruno.vasselle@laposte.net>
<= b>=C3=80: "Eli Zaretskii" <eliz@gnu.org>
Cc: 37116@debb= ugs.gnu.org
Envoy=C3=A9: Mardi 20 Ao=C3=BBt 2019 20:50:47
O= bjet: Re: bug#37116: 26.1; User choice user-emacs-directory is not hono= red

Added (manually) to co= mmit tagged emacs-26.1.92, in defcustom auto-save-list-file-prefix':
<= div>  :initialize 'custom-initialize-delay

Do= ne same tests with auto-save configuration commented out in "please-do-it.e= l". 
- The directory .emacs.d is created
- It is p= opulated with a directory auto-save-list-file-prefix

Checked that emacs is actually the one I've just build: it is.
Also checked that /usr/share/emacs/26.1.92/lisp/startup.el* are = up to date: they are, though sibling .el are not affected except subdirs.el= .

Thus, no, it does not seem to work.
Shall I try from another commit ?


= De: "Eli Zaretskii" <eliz@gnu.org>
=C3=80: "bruno va= sselle" <bruno.vasselle@laposte.net>
Cc: 37116@debbugs.gnu.= org
Envoy=C3=A9: Mardi 20 Ao=C3=BBt 2019 18:55:50
Objet: Re: bug#37116: 26.1; User choice user-emacs-directory is not honored
<= div>
> Date: Tue, 20 Aug 2019 16:33:46 +0200 (CEST)
> Fro= m: bruno.vasselle--- via "Bug reports for GNU Emacs,
>  the Swis= s army knife of text editors" <bug-gnu-emacs@gnu.org>
>
>= ; Alright... but it's not legitimate: as I've set `user-emacs-directory', I= should not have to furthermore tell
> auto-save where to put its mat= erial. If I need to, this means I need to also for every possible package t= hat uses
> user-emacs-directory. And emacs still trashes my home dire= ctory.

Does the patch below solve your problem?
<= br>
diff --git a/lisp/startup.el b/lisp/startup.el
index 32051c2..d= 753e6a 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -405,= 6 +405,7 @@ auto-save-list-file-prefix
 Directories in the prefix w= ill be created if necessary.
 Set this to nil if you want to preven= t `auto-save-list-file-name'
 from being initialized."
+  := initialize 'custom-initialize-delay
   :type '(choice (const := tag "Don't record a session's auto save list" nil)
   &nb= sp;            =   string)
   :group 'auto-save)

<= /div>

------=_Part_2816462_1037236515.1566331892629--