all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* no such var: user-emacs-directory
@ 2005-08-08 11:44 Thien-Thi Nguyen
  2005-08-08 16:33 ` Stuart D. Herring
  2005-08-08 17:00 ` Emilio C. Lopes
  0 siblings, 2 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2005-08-08 11:44 UTC (permalink / raw)


`scheme-start-file' in cmuscheme.el now references `user-emacs-directory'
but that variable is never defined anywhere.  the NEWS blurb mentions it,
although the docstring says "~/.emacs.d".

if the fix is to define `user-emacs-directory', probably many places that
hardcode "~/.emacs.d" could benefit from using the new variable.  but
that's more work than simply hardcoding it in cmuscheme.el as well (and
updating NEWS), so i propose to do the latter unless there are objections.

thi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: no such var: user-emacs-directory
  2005-08-08 11:44 no such var: user-emacs-directory Thien-Thi Nguyen
@ 2005-08-08 16:33 ` Stuart D. Herring
  2005-08-08 18:22   ` Thien-Thi Nguyen
  2005-08-08 17:00 ` Emilio C. Lopes
  1 sibling, 1 reply; 4+ messages in thread
From: Stuart D. Herring @ 2005-08-08 16:33 UTC (permalink / raw)
  Cc: emacs-devel

> `scheme-start-file' in cmuscheme.el now references `user-emacs-directory'
> but that variable is never defined anywhere.  the NEWS blurb mentions it,
> although the docstring says "~/.emacs.d".
>
> if the fix is to define `user-emacs-directory', probably many places that
> hardcode "~/.emacs.d" could benefit from using the new variable.  but
> that's more work than simply hardcoding it in cmuscheme.el as well (and
> updating NEWS), so i propose to do the latter unless there are objections.

I actually have a variable in my .emacs for this:
`emacs-hidden-directory-base' (usually set to "~/.emacs.d/").  I then put
backups in "backup/" under that, and auto-save-files as ".saves-*" under
it.  My reason is to support that file structure even on systems without a
useful home directory, but it might be generally useful.  I'd be in favor
of defining that variable; using it everywhere instead of ".emacs.d" would
be trivial.  If this sounds good, I can make a patch (either now, or after
22.1).

Davis Herring

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: no such var: user-emacs-directory
  2005-08-08 11:44 no such var: user-emacs-directory Thien-Thi Nguyen
  2005-08-08 16:33 ` Stuart D. Herring
@ 2005-08-08 17:00 ` Emilio C. Lopes
  1 sibling, 0 replies; 4+ messages in thread
From: Emilio C. Lopes @ 2005-08-08 17:00 UTC (permalink / raw)


Thien-Thi Nguyen <ttn@gnu.org> writes:

> `scheme-start-file' in cmuscheme.el now references `user-emacs-directory'
> but that variable is never defined anywhere.  the NEWS blurb mentions it,
> although the docstring says "~/.emacs.d".

I submitted these changes, so it was my fault.  Could someone please
apply the following patch?

Thanks and sorry for any inconvenience.

2005-08-08  Emilio C. Lopes  <eclig@gmx.net>

	* cmuscheme.el (scheme-start-file): replaced reference to
	`user-emacs-directory' by "~/.emacs.d/".


*** orig/etc/NEWS
--- mod/etc/NEWS
***************
*** 1757,1763 ****
  evaluate a Scheme expression but no Scheme subprocess is running.
  
  *** If a file `.emacs_NAME' (where NAME is the name of the Scheme interpreter)
! exists in the user's home directory or in `user-emacs-directory', its
  contents are sent to the Scheme subprocess upon startup.
  
  *** There are new commands to instruct the Scheme interpreter to trace
--- 1757,1763 ----
  evaluate a Scheme expression but no Scheme subprocess is running.
  
  *** If a file `.emacs_NAME' (where NAME is the name of the Scheme interpreter)
! exists in the user's home directory or in ~/.emacs.d, its
  contents are sent to the Scheme subprocess upon startup.
  
  *** There are new commands to instruct the Scheme interpreter to trace


*** orig/lisp/cmuscheme.el
--- mod/lisp/cmuscheme.el
***************
*** 272,278 ****
           (start-file (concat "~/" name)))
      (if (file-exists-p start-file)
          start-file
!       (let ((start-file (concat user-emacs-directory name)))
          (and (file-exists-p start-file) start-file)))))
  
  (defun scheme-send-region (start end)
--- 272,278 ----
           (start-file (concat "~/" name)))
      (if (file-exists-p start-file)
          start-file
!       (let ((start-file (concat "~/.emacs.d/" name)))
          (and (file-exists-p start-file) start-file)))))
  
  (defun scheme-send-region (start end)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: no such var: user-emacs-directory
  2005-08-08 16:33 ` Stuart D. Herring
@ 2005-08-08 18:22   ` Thien-Thi Nguyen
  0 siblings, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2005-08-08 18:22 UTC (permalink / raw)
  Cc: emacs-devel

"Stuart D. Herring" <herring@lanl.gov> writes:

> If this sounds good, I can make a patch (either now, or after
> 22.1).

sounds good to me.  i'm indifferent wrt the timing (but not to
the work that needs to be done that i don't want to do :-).

you can always post a patch and see how it fares.

thi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-08 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 11:44 no such var: user-emacs-directory Thien-Thi Nguyen
2005-08-08 16:33 ` Stuart D. Herring
2005-08-08 18:22   ` Thien-Thi Nguyen
2005-08-08 17:00 ` Emilio C. Lopes

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.