all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 4347@emacsbugs.donarmstrong.com,
	Angelo Graziosi <angelo.graziosi@alice.it>
Subject: bug#4347: Bug for .emacs.d?
Date: Fri, 11 Sep 2009 16:23:14 -0400	[thread overview]
Message-ID: <jwv1vmdnsu6.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <f7ccd24b0909041912k3cbf7c94h7b2d55b739c0c6bb@mail.gmail.com> (Juanma Barranquero's message of "Sat, 5 Sep 2009 04:12:06 +0200")

>> The build of current CVS creates the empty directory '~/.emacs.d', each time
>> one starts Emacs, even if in the '.emacs' file there is

Just so I understand better: is the problem that ~/.emacs.d is created
at build-time, or that it's created at run-time?

IIUC it's done both times right now.  The build-time case is a bug
(which I think should be fixed along the lines of the patch below), but
w.r.t the run-time case, I'm not convinced it's a bug.


        Stefan


Index: lisp/abbrev.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/abbrev.el,v
retrieving revision 1.83
diff -u -r1.83 abbrev.el
--- lisp/abbrev.el	29 Aug 2009 19:22:44 -0000	1.83
+++ lisp/abbrev.el	11 Sep 2009 20:20:26 -0000
@@ -40,7 +40,8 @@
 
 (defcustom abbrev-file-name
   (locate-user-emacs-file "abbrev_defs" ".abbrev_defs")
-  "Default name of file to read abbrevs from."
+  "Default name of file from which to read abbrevs."
+  :initialize 'custom-initialize-delay
   :type 'file)
 
 (defcustom only-global-abbrevs nil
Index: lisp/custom.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/custom.el,v
retrieving revision 1.146
diff -u -r1.146 custom.el
--- lisp/custom.el	5 Jan 2009 03:18:51 -0000	1.146
+++ lisp/custom.el	11 Sep 2009 20:20:27 -0000
@@ -130,6 +119,17 @@
 	(t
 	 (set-default symbol (eval value)))))
 
+(defvar custom-delayed-init-variables nil
+  "List of variables whose initialization is pending.")
+
+(defun custom-initialize-delay (symbol value)
+  "Delay initialization of SYMBOL to the next Emacs start.
+This is used in files that are preloaded, so that the initialization is
+done in the run-time context rather than the build-time context.
+SYMBOL is temporarily initialized to nil."
+  (set symbol nil)
+  (push symbol custom-delayed-init-variables))
+
 (defun custom-declare-variable (symbol default doc &rest args)
   "Like `defcustom', but SYMBOL and DEFAULT are evaluated as normal arguments.
 DEFAULT should be an expression to evaluate to compute the default value,
Index: lisp/files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.1080
diff -u -r1.1080 files.el
--- lisp/files.el	7 Sep 2009 15:23:12 -0000	1.1080
+++ lisp/files.el	11 Sep 2009 20:20:31 -0000
@@ -204,6 +204,7 @@
 by programs that create small temporary files.  This is for systems that
 have fast storage with limited space, such as a RAM disk."
   :group 'files
+  :initialize 'custom-initialize-delay
   :type '(choice (const nil) directory))
 
 ;; The system null device. (Should reference NULL_DEVICE from C.)
@@ -385,6 +386,7 @@
   :group 'auto-save
   :type '(repeat (list (string :tag "Regexp") (string :tag "Replacement")
 					   (boolean :tag "Uniquify")))
+  :initialize 'custom-initialize-delay
   :version "21.1")
 
 (defcustom save-abbrevs t





  reply	other threads:[~2009-09-11 20:23 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-05  0:27 Bug for .emacs.d? Angelo Graziosi
2009-09-05  2:12 ` bug#4347: " Juanma Barranquero
2009-09-11 20:23   ` Stefan Monnier [this message]
2009-09-11 20:34     ` Juanma Barranquero
2009-09-11 21:21     ` Angelo Graziosi
2009-09-12  4:25       ` Stefan Monnier
2009-09-12  8:29         ` Angelo Graziosi
2009-09-12  8:29         ` Angelo Graziosi
2009-09-12 19:32           ` Stefan Monnier
2009-09-12 21:43             ` Angelo Graziosi
2009-09-13  2:31               ` Miles Bader
2009-09-13  2:57                 ` message creates ~/Mail [was Re: bug#4347: Bug for .emacs.d?] Glenn Morris
2009-09-13  3:23                   ` message creates ~/Mail Miles Bader
2009-09-13  8:20                     ` Reiner Steib
2009-09-13  8:56                       ` Miles Bader
2009-09-13 11:12                         ` Daniel Clemente
2009-09-14 19:07                       ` Glenn Morris
2009-09-13  4:16                   ` Stefan Monnier
2009-09-13  2:31               ` bug#4347: Bug for .emacs.d? Miles Bader
2009-09-12 21:43             ` Angelo Graziosi
2009-09-13 13:06             ` Angelo Graziosi
2009-09-13 13:06             ` Angelo Graziosi
2009-09-13 13:35               ` Juanma Barranquero
2009-09-13 13:35               ` Juanma Barranquero
2009-09-13 13:48                 ` Angelo Graziosi
2009-09-13 13:48                 ` Angelo Graziosi
2009-09-13 14:04               ` Stefan Monnier
2009-09-13 14:04               ` Stefan Monnier
2009-09-13 14:12                 ` Angelo Graziosi
2009-09-13 14:12                 ` Angelo Graziosi
2009-09-13 17:41                   ` Juanma Barranquero
2009-09-13 17:41                   ` Juanma Barranquero
2009-09-13 16:06                 ` desktop and ~/.emacs.d/ (was: bug#4347: Bug for .emacs.d?) Reiner Steib
2009-09-14  1:26                   ` desktop and ~/.emacs.d/ Stefan Monnier
2009-09-14  1:30                     ` Juanma Barranquero
2009-09-14 14:22                     ` Davis Herring
2009-09-14 14:43                       ` Lennart Borgman
2009-09-14 15:17                         ` Davis Herring
2009-09-12 19:32           ` bug#4347: Bug for .emacs.d? Stefan Monnier
2009-09-12 11:16         ` Juanma Barranquero
2009-09-12 19:38           ` Stefan Monnier
2009-09-12 19:42             ` Juanma Barranquero

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=jwv1vmdnsu6.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=4347@emacsbugs.donarmstrong.com \
    --cc=angelo.graziosi@alice.it \
    --cc=lekktu@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 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.