all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: bruno.vasselle@laposte.net
Cc: 37116@debbugs.gnu.org
Subject: bug#37116: 26.1; User choice user-emacs-directory is not honored
Date: Thu, 22 Aug 2019 19:49:24 +0300	[thread overview]
Message-ID: <83tva9b0x7.fsf@gnu.org> (raw)
In-Reply-To: <891641150.2753162.1566490697114.JavaMail.zimbra@laposte.net> (bruno.vasselle@laposte.net)

[Please use Reply All so that the bug tracker is CC'ed and records the
discussion.]

> Date: Thu, 22 Aug 2019 18:18:17 +0200 (CEST)
> From: bruno.vasselle@laposte.net
> 
> > Please try the following patch instead of the one I sent earlier:
> Patched against master (ef8531d2): details below in 'git diff master'
> 
> Emacs still creates .emacs.d in my home dir.

This is expected, and cannot be helped, at least not easily, because
various variables are computed during the startup, when your init file
has not yet been processed.

But with the patch I sent the auto-save-history files should be in
your customized user-emacs-directory.  Did you check that?  If not,
please do.

> Furthermore, if I feed it with my actual 'init.el'  - which defines a user-init-file emacs "custom.el" can play with
> under user-emacs-directory - I come up with:
> 
> Cannot open file file: No such file or directory, ~/.emacs.d/custom.el
> 
> in the minibuffer.

I cannot look into this without seeing a minimal init.el file that
causes this.  In particular, I need to understand how come your
init.el file uses ~/.emacs.d when your user-emacs-directory is
different.

> I very much appreciate your help, especially in this case where anybody would ask "who cares?".
> 
> But I mind. I very mind, because I like emacs. But I don't like it omitting respect for its users.

My latest patch should do that, please try it.

> I secretly hoped you would come to the conclusion that the solution was already given in the bug report
> (actually more in wishlist) I've mentioned earlier (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15539).

I don't think the solution proposed there would help in your case
because the value of user-emacs-directory is used to compute
auto-save-list-file-prefix before the command-line arguments are
processed.  IOW, by the time we look at the command-line arguments,
it's too late for auto-save-list-file-prefix: its value was already
computed using the default value of "~/.emacs.d".

> We're mutually wasting out times. Don't misunderstand me: you've got all my respect, but I won't follow you
> furthermore in the direction you take.

Does this mean you are giving up on this issue, and don't want to
continue looking for its solution?





  parent reply	other threads:[~2019-08-22 16:49 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 ` bug#37116: 26.1; User choice user-emacs-directory is not honored bruno.vasselle--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-08-20 16:55   ` 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 [this message]
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=83tva9b0x7.fsf@gnu.org \
    --to=eliz@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.