unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org, snogglethorpe@gmail.com,
	michael.cadilhac@lrde.org, monnier@iro.umontreal.ca,
	miles@gnu.org
Subject: Re: Use .emacs.d in savehist.el
Date: Sun, 30 Oct 2005 20:14:15 -0500	[thread overview]
Message-ID: <E1EWOFb-0006RP-QL@fencepost.gnu.org> (raw)
In-Reply-To: <87pspn9kc0.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 30 Oct 2005 08:59:43 -0500)

	  ;; This tells `load' to store the file name found
	  ;; into user-init-file.
	  (setq user-init-file t)
	  (load user-init-file-1 t t)

    If the `load' function succeeds, it automagically binds
    `user-init-file' to the loaded filename.  I don't know why this was
    written this way, but maybe there is a reason?

The reason is to record the actual name found, whether it be .emacs or
.emacs.el, or whatever.

We need the actual file name, not just something that we could
pass to `load' and load the same file.

    Also, if you want to use this function for the init file, you would
    have to account for the "_emacs" dotfile name used on MS-DOS and
    MS-Windows.  In particular, MS-Windows uses "~/.emacs" by default, but
    if that is not available it accepts "~/_emacs" as the dotfile.

That particular case does seem to needs special code.
It is no big deal if the one case of .emacs can't use the
general function (but it would be nice if it could).

    Another note: it seems to me that most libraries that use ".emacs.d"
    look for it in "~".  Would it make sense to extend the
    `init-file-user' variable so that the directory goes into

	  (concat "~" init-file-user "/.emacs.d")

Yes!

  reply	other threads:[~2005-10-31  1:14 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-24 15:58 Use .emacs.d in savehist.el Stefan Monnier
2005-10-24 21:22 ` Kim F. Storm
2005-10-25 20:27   ` Richard M. Stallman
2005-10-25  9:30 ` Hrvoje Niksic
2005-10-25 14:30   ` David Kastrup
2005-10-25 14:51   ` Stefan Monnier
2005-10-25 19:13     ` Hrvoje Niksic
     [not found] ` <87oe5e977f.fsf@mahaena.lrde>
2005-10-25  9:59   ` Michael Cadilhac
2005-10-25 14:54     ` Stefan Monnier
2005-10-26 16:46       ` Richard M. Stallman
2005-10-26 23:28         ` Miles Bader
2005-10-27  3:58           ` Richard M. Stallman
2005-10-27 16:53             ` Kevin Rodgers
2005-10-28 16:19               ` Richard M. Stallman
2005-10-28 20:16                 ` Miles Bader
2005-10-29  5:12                   ` Richard M. Stallman
2005-10-29 17:31                     ` Kim F. Storm
2005-10-30  0:03                       ` Miles Bader
2005-10-29  3:51             ` Chong Yidong
2005-10-29 20:33               ` Richard M. Stallman
2005-10-30  4:00                 ` Chong Yidong
2005-10-30  4:30                   ` Miles Bader
2005-10-30 13:59                     ` Chong Yidong
2005-10-31  1:14                       ` Richard M. Stallman [this message]
2005-10-31  2:29                         ` Chong Yidong
2005-11-01  2:14                           ` Richard M. Stallman
2005-11-01  3:43                             ` Chong Yidong
2005-11-01  5:12                               ` Stefan Monnier
2005-11-01 12:54                                 ` Chong Yidong
2005-11-02 10:27                                   ` Richard M. Stallman
2005-11-02 15:54                                     ` Stefan Monnier
2005-11-02 10:26                                 ` Richard M. Stallman
2005-11-02 10:26                               ` Richard M. Stallman
2005-10-27  9:16         ` Kim F. Storm
2005-10-30  4:07       ` Chong Yidong
2005-10-25 15:58 ` Richard M. Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1EWOFb-0006RP-QL@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.cadilhac@lrde.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=snogglethorpe@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).