From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Trouble saving to the emacs file dir under Windows
Date: Mon, 13 Jun 2016 16:57:44 +0300 [thread overview]
Message-ID: <83h9cxfaxz.fsf@gnu.org> (raw)
In-Reply-To: <2ad2e21d-065f-4cdb-a836-8b30b199a235@googlegroups.com> (message from Davin Pearson on Mon, 13 Jun 2016 00:39:18 -0700 (PDT))
> Date: Mon, 13 Jun 2016 00:39:18 -0700 (PDT)
> From: Davin Pearson <davin.pearson@gmail.com>
>
> > > c:\Program Files (x86)\emacs-24.5\share\info>chmod 666 dir
> > > chmod: changing permissions of 'dir': Permission denied
> > >
> > > What gives? How do I go about getting write access to the file "dir"?
> >
> > Is that file really a read-only file? Does its Properties tab in
> > Explorer show the Read-only attribute set? If not, chmod won't help
> > you, and your problem is probably due to the fact that your user is
> > denied access to "Program Files" and everything under it. In that
> > case, the solution is not to install Emacs under "C:\Program Files",
> > but elsewhere, preferably on disk D.
>
> I am trying to write an automated installer module that patches the dir
> file to add an additional link to a file jtw-manual.info. My installer module complains about not being able to save the file "dir".
>
> If there is no way to change the file "dir" then my system will be less usable
> to users of GNU Emacs on Windows systems. Everything works fine under Linux, although the user has to be in logged in as root to patch the "dir" file, among
> other things.
>
> I thought that there must be a way of writing to the "dir" file...
You didn't reply to any of the questions I asked. You also didn't
tell enough about your installer module. So it's hard to help you
more.
One thing I can add to what I already said: the usual way of modifying
the 'dir' file is by running the 'install-info' utility. Not sure if
doing so will solve your problem, but manually updating 'dir' is not a
good idea, either.
> It is possible under GNU/Linux to change the "dir" file. That may be some way forward here. The user could boot into Linux and run the installer script which
> enables them to access the C:/Program Files (x86)/ folder.
IME, installing data files under "C:\Program Files" is asking for
trouble. IME, all those problems go away if you install on a
non-system drive. But I already said that.
next prev parent reply other threads:[~2016-06-13 13:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 1:26 Trouble saving to the emacs file dir under Windows Davin Pearson
2016-06-13 3:49 ` Eli Zaretskii
[not found] ` <mailman.1408.1465789707.1216.help-gnu-emacs@gnu.org>
2016-06-13 7:39 ` Davin Pearson
2016-06-13 8:00 ` Yuri Khan
2016-06-13 13:57 ` Eli Zaretskii [this message]
[not found] ` <mailman.1431.1465826221.1216.help-gnu-emacs@gnu.org>
2016-06-14 0:14 ` Davin Pearson
2016-06-14 6:34 ` Yuri Khan
2016-06-14 15:14 ` Eli Zaretskii
[not found] ` <mailman.1493.1465917237.1216.help-gnu-emacs@gnu.org>
2016-06-15 0:34 ` Davin Pearson
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=83h9cxfaxz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.