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 16:33:46 +0200 (CEST) Message-ID: <99676126.1919199.1566311626414.JavaMail.zimbra@laposte.net> References: <1109001605.1628158.1566304636039.JavaMail.zimbra@laposte.net> Reply-To: bruno.vasselle@laposte.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1919198_1707822104.1566311626413" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34098"; mail-complaints-to="usenet@blaine.gmane.org" To: 37116@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 20 18:13:22 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 1i06l6-0008fw-DJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Aug 2019 18:13:20 +0200 Original-Received: from localhost ([::1]:39410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i06l5-0001YN-9Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Aug 2019 12:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42276) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i06f1-0001Kt-Qo for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 12:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i06f0-0002xl-E8 for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 12:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i06f0-0002xX-0R for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 12:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i06ez-0001Fl-RE for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 12:07:01 -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 16:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37116 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15663171674734 (code B ref -1); Tue, 20 Aug 2019 16:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Aug 2019 16:06:07 +0000 Original-Received: from localhost ([127.0.0.1]:33718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i06e5-0001EH-Q3 for submit@debbugs.gnu.org; Tue, 20 Aug 2019 12:06:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i05DG-00077K-EK for submit@debbugs.gnu.org; Tue, 20 Aug 2019 10:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54873) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i05DE-0004XV-KX for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 10:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i05DC-0004aI-7j for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 10:34:15 -0400 Original-Received: from smtpoutz12.laposte.net ([194.117.213.173]:55699 helo=smtp.laposte.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i05DB-0004OI-M5 for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 10:34:14 -0400 Original-Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout002 (Postfix) with ESMTP id C909CA4140E for ; Tue, 20 Aug 2019 16:33:46 +0200 (CEST) Original-Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout002 (Postfix) with ESMTP id B0AC7A4141E for ; Tue, 20 Aug 2019 16:33:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1566311626; bh=Uh7suCeGIKs8m14X4Mu9yh+o4kqydy1yHrF+SD7bRV4=; h=Date:From:To:In-Reply-To:Subject; b=Ppb1sULx9+/HXLPiNZo1rO+rqXHy4H1G2TLudaLjCzQedy0uWAIRdUQXwI7DuDA0o 9+YWZGbzuiruMD1eFppenR8mYf1KsOwGgyRzi4uB221jexbodkisOSANw3F+QpfX5/ IUfEDSyTo0yhawF4gtVWBOg6Q86Wa7OM/33NFDP6EF3rTZCBCFOJciZcmeok+e1TWC i3NzlZCLlG2wkWn6cJ+FRQ9EDUEcXlzXdt8J2dHgGp/z1k/TfBHkWuOjrHC9koAiLM Vt7JLp6BRlsPN01rvW/4gOx1ZahXRi0HooKfszZg9PN+H8EXaQDUUAQf2NcgFBwgVc jgiDt2D4dgg/w== Original-Received: from lpn-prd-mstr087.laposte (lpn-prd-mstr087 [10.128.59.113]) by lpn-prd-vrout002 (Postfix) with ESMTP id 98DA1A4140E for ; Tue, 20 Aug 2019 16:33:46 +0200 (CEST) In-Reply-To: <1109001605.1628158.1566304636039.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: 26.1; User choice user-emacs-directory is not honored Thread-Index: fRu4GXHJ25RTtQN12L0OlZsInOt3WQ== X-VR-FullState: 0 X-VR-Score: 0 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrgeduvddrudeguddgjeehucetufdoteggodetrfdotffvucfrrhho X-VR-Cause-2: fhhilhgvmecunfetrffquffvgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeffhffvkfgj X-VR-Cause-3: ufggtghiofhtsegrtdgtsgertdejnecuhfhrohhmpegsrhhunhhordhvrghsshgvlhhlvgeslhgrphho X-VR-Cause-4: shhtvgdrnhgvthenucffohhmrghinhepghhnuhdrohhrghenucfkphepuddtrdduvdekrdehledruddu X-VR-Cause-5: fedpkeekrddukeejrddujeelrdduudenucfrrghrrghmpehmohguvgepshhmthhpohhuthdpihhnvght X-VR-Cause-6: pedutddruddvkedrheelrdduudefpdhhvghloheplhhpnhdqphhrugdqmhhsthhrtdekjedrlhgrphho X-VR-Cause-7: shhtvgdpmhgrihhlfhhrohhmpegsrhhunhhordhvrghsshgvlhhlvgeslhgrphhoshhtvgdrnhgvthdp X-VR-Cause-8: rhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihii X-VR-Cause-9: vgeptd X-VR-AvState: No X-VR-State: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Tue, 20 Aug 2019 12:06:04 -0400 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:165424 Archived-At: ------=_Part_1919198_1707822104.1566311626413 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Although I start my init.el by setting `user-emacs-directory' to something that suits me, emacs keeps on creating an unwanted "~/.emacs.d/". How to reproduce: Create an init file, say "~/.config/emacs/please-do-it.el": (setq user-emacs-directory "~/.cache/emacs/") ;; (setq auto-save-list-file-prefix ;; I shall not have to do this ;; (concat user-emacs-directory "saves")) Do the following in a shell session: $ cd $ rm -r .emacs.d # actually there was one $ ls .emacs.d ls: cannot access '.emacs.d': No such file or directory $ emacs -l ~/.config/emacs/please-do-it.el & $ ls -d .emacs.d .emacs.d $ ls .emacs.d $ There's nothing in .emacs.d, but the directory is there. It should not, as this is not my choice as an emacs user, and the only way I've got to state this is setting `user-emacs-directory' in my init file. Let's edit some file with emacs and wait about 2 minutes: $ ls .emacs.d auto-save-list $ In emacs, describe variable `user-emacs-directory': this is actually what I want, namely "~/.cache/emacs/". Quit emacs Is the auto-save guilty ? If I uncomment the part related to auto-save in please-to-it.el: $ rm -r .emacs.d $ emacs -l ~/.config/emacs/please-do-it.el & $ ls -d .emacs.d .emacs.d $ Edit some file and wait about 2 minutes; then: $ ls .emacs.d $ Nothing in .emacs.d. Let's see what I asked for auto-save: $ ls .cache/emacs saves14634-xanadu~ $ 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 material. If I need to, this means I need to also for every possible package that uses user-emacs-directory. And emacs still trashes my home directory. I did not find bug reports on the subject, except for this one, which is precisely on topic: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15539 ------=_Part_1919198_1707822104.1566311626413 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Although I start my init.el by s= etting `user-emacs-directory' to something that suits me, emacs keeps on cr= eating an unwanted "~/.emacs.d/".

How to reproduce= :

Create an init file, say "~/.config/emacs/please= -do-it.el":
    (setq user-emacs-directo= ry "~/.cache/emacs/")

    ;; (setq auto-save-list-file-prefix = ;; I shall not have to do this
    ;; (concat user-= emacs-directory "saves"))


Do the following in a shell session:
    $ cd
    $ rm -r .= emacs.d # actually there was one
    $ ls .emacs.d
    ls: cannot access '.emacs.d': No such file or= directory
   &nb= sp;$ emacs -l ~/.config/emacs/= please-do-it.el &
    $ ls -d= .emacs.d
    .emacs.d
  =   $ ls .emacs.d
    $

There's nothing in .emacs.d, but the directory is there. It should not, a= s this is not my choice as an emacs user, and the only way I've got to stat= e this is setting `user-emacs-directory' in my init file.

= In emacs, describe variable `user-emacs-directory': this is actually what I= want, namely "~/.cache/emacs/".
Quit emacs
=
<= br>
Is the auto-save guilty ? If I uncomment the part relat= ed to auto-save in please-to-it.el:

&= nbsp;   $ rm -r .emacs.d
    $ emacs -l <= /span>= ~/.config/emacs/please-do-it.el &
   &n= bsp;$ ls -d .emacs.d
    .emacs.d
    $ 

Edit some file and wait about 2 minutes; then:
    $ ls .emacs.d
    $ 

Nothing in .emacs.d. Let's see what I asked for auto-save:

    $ ls .cache/emacs
    saves14634-xanadu~
    $
=

Alright... but it's not legitimate: as I've set = `user-emacs-directory', I should not have to furthermore tell auto-save whe= re to put its material. If I need to, this means I need to also for every p= ossible package that uses user-emacs-directory. And emacs still trashes my = home directory.

I did not find bug reports on the subject, except for this one, whic= h is precisely on topic:


------=_Part_1919198_1707822104.1566311626413--