emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A couple of locate-user-emacs-file questions


From: Stefan Monnier
Subject: Re: A couple of locate-user-emacs-file questions
Date: Thu, 20 Jun 2013 16:14:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> is mildly incompatible, in the sense that some external tool *could*
> potentially depend on the session file being in $HOME; but that seems
> unlikely. Does anyone see a problem with it?

I don't.

> And speaking of `locate-user-emacs-file', there are a couple of cases
> (in cmuscheme.el and shell.el, both related to passing a filename to
> comint only if the file does really exist) that could benefit from it,
> if there was a way to tell it to check for OLDNAME and NEWNAME, but
> return nil (and not create `user-emacs-directory') if neither file
> exists. Something like this (diff -b to ignore irrelevant indentation
> changes):

I think it should still not return nil but the "preferred name".

> On one hand, seems like a bit overengineered; on the other hand, a
> function called *locate*-user-emacs-file should be able to tell
> whether it did, in fact, locate it without causing side effects...

I think the problem is that the function should have come with
a `and-create-directory' argument instead, so the directory is only
created when explicitly requested.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]