all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bruno.vasselle--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 37116@debbugs.gnu.org
Subject: bug#37116: 26.1; User choice user-emacs-directory is not honored
Date: Tue, 20 Aug 2019 16:33:46 +0200 (CEST)	[thread overview]
Message-ID: <99676126.1919199.1566311626414.JavaMail.zimbra@laposte.net> (raw)
In-Reply-To: <1109001605.1628158.1566304636039.JavaMail.zimbra@laposte.net>

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

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 



[-- Attachment #2: Type: text/html, Size: 4861 bytes --]

       reply	other threads:[~2019-08-20 14:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1109001605.1628158.1566304636039.JavaMail.zimbra@laposte.net>
2019-08-20 14:33 ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2019-08-20 16:55   ` bug#37116: 26.1; User choice user-emacs-directory is not honored Eli Zaretskii
2019-08-20 18:50     ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-20 20:11       ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-21  2:36         ` Eli Zaretskii
2019-08-21  8:24           ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-21 16:35             ` Eli Zaretskii
     [not found]               ` <891641150.2753162.1566490697114.JavaMail.zimbra@laposte.net>
2019-08-22 16:49                 ` Eli Zaretskii
2019-08-22 17:27                   ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-22 17:47                     ` Eli Zaretskii
2019-08-24 15:49                       ` Eli Zaretskii
2019-08-24 16:33                         ` Stefan Kangas
2019-08-26 20:07                   ` bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

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

  git send-email \
    --in-reply-to=99676126.1919199.1566311626414.JavaMail.zimbra@laposte.net \
    --to=bug-gnu-emacs@gnu.org \
    --cc=37116@debbugs.gnu.org \
    --cc=bruno.vasselle@laposte.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.