From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13298: 24.3.50; Cannot write backup file; backing up in ~\.emacs.d\%backup%~ Date: Sat, 29 Dec 2012 21:11:10 +0200 Message-ID: <83zk0wk71t.fsf@gnu.org> References: <87zk0xnc0f.fsf@yandex.ru> <83zk0xl4cv.fsf@gnu.org> <50DED342.7040901@yandex.ru> <83ip7lkqp6.fsf@gnu.org> <50DEF35F.9090107@yandex.ru> <83d2xtklu1.fsf@gnu.org> <50DEF66E.4020106@yandex.ru> <83bodclxyl.fsf@gnu.org> <50DF14C3.6040702@yandex.ru> <83a9swlrp7.fsf@gnu.org> <50DF25FE.3010900@yandex.ru> <83623klqdc.fsf@gnu.org> <50DF3760.7060500@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1356808328 396 80.91.229.3 (29 Dec 2012 19:12:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 19:12:08 +0000 (UTC) Cc: 13298-done@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 20:12:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tp1pX-00089g-6b for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 20:12:23 +0100 Original-Received: from localhost ([::1]:55212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp1pI-0002sM-1n for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 14:12:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp1pF-0002sF-C5 for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 14:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tp1pE-0007x4-2Z for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 14:12:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp1pD-0007wx-VL for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 14:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tp1qB-0007AT-1g for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 14:13:03 -0500 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Dec 2012 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13298@debbugs.gnu.org, eliz@gnu.org, dgutov@yandex.ru Original-Received: via spool by 13298-done@debbugs.gnu.org id=D13298.135680832527483 (code D ref 13298); Sat, 29 Dec 2012 19:13:02 +0000 Original-Received: (at 13298-done) by debbugs.gnu.org; 29 Dec 2012 19:12:05 +0000 Original-Received: from localhost ([127.0.0.1]:36376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp1pE-00079D-2e for submit@debbugs.gnu.org; Sat, 29 Dec 2012 14:12:04 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46527) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tp1pB-00078p-RR for 13298-done@debbugs.gnu.org; Sat, 29 Dec 2012 14:12:03 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MFT005003RFOW00@a-mtaout23.012.net.il> for 13298-done@debbugs.gnu.org; Sat, 29 Dec 2012 21:11:00 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFT005AY3YCNI60@a-mtaout23.012.net.il>; Sat, 29 Dec 2012 21:11:00 +0200 (IST) In-reply-to: <50DF3760.7060500@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69170 Archived-At: > Date: Sat, 29 Dec 2012 22:33:04 +0400 > From: Dmitry Gutov > CC: 13298@debbugs.gnu.org > > On 29.12.2012 21:28, Eli Zaretskii wrote: > >> Why doesn't Emacs try to show the elevation dialog, anyway? > > > > The elevation dialog comes from Windows, when it does. Applications > > don't show it, they just can trigger it by performing operations that > > require elevation. But UAC behaves strangely when Administrators are > > involved. > > I'm not familiar with Windows API, but I think there's a specific way to > request the elevation. For example, foobar2000 installer starts up > normally, but shows the elevation dialog when you click on the "Update" > button, with the same standard shield icon as in Explorer. I'm guessing that this foobar2000 restarts itself with elevated level when you click on "Update". That's the only way I know of to request elevation programmatically -- it can only be done at process start time. Once the process started, it has its privileges in the process token, and that cannot be changed. > > You could try taking care of this issue by manually taking ownership > > of the C:\Users\Gutov directory and all of its files and > > subdirectories. Setting the owner of C:\Users\Gutov to either your > > user or the Administrators group will probably resolve the problem. > > Changing the owner of the directory itself didn't do it (I didn't check > "replace on all subcontainers"), but changing the owner of each > problematic file did it. Thanks! OK, so I guess I can now close this bug. Thanks for helping me test the solution.