all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16154: Emacs crashes if $HOME isn't writable
@ 2013-12-15  7:59 Reinhard Kotucha
  2013-12-15 11:40 ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Reinhard Kotucha @ 2013-12-15  7:59 UTC (permalink / raw)
  To: 16154

Hi,
when I do (as root)

   su nobody
   VISUAL=/usr/local/bin/emacs-24.3 crontab -e

Emacs says

   Creating directory: permission denied, //.emacs.d/

and refuses to do anything useful.  It's on purpose that user 'nobody'
doesn't have a writable HOME directory.

My current workaround is to put the lines

  if [[ ${LOGNAME} == 'nobody' ]]; then
    EDITOR=vim
  else
    EDITOR=emacs
  fi
 
into /etc/bashrc.

It would be better if Emacs can be used even if the HOME directory
isn't writable.  

vim allows me to edit the crontab and issues a warning 

  E138: Can't write viminfo file /.viminfo!

afterwards end but emacs refuses to do anything useful if $HOME isn't
writable. 

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha@web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------





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

end of thread, other threads:[~2013-12-16 21:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-15  7:59 bug#16154: Emacs crashes if $HOME isn't writable Reinhard Kotucha
2013-12-15 11:40 ` Achim Gratz
2013-12-15 16:25   ` Eli Zaretskii
2013-12-15 19:47     ` Glenn Morris
2013-12-15 20:17       ` Eli Zaretskii
2013-12-16  3:01       ` Reinhard Kotucha
2013-12-16 21:15         ` Reinhard Kotucha
2013-12-16  7:24       ` Achim Gratz

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.