From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Reverting *Locate* buffers. Date: Mon, 26 Jun 2006 09:43:33 +0200 Message-ID: <853bdsmkey.fsf@lola.goethe.zz> References: <200606260327.k5Q3Rfpd013691@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151395630 10701 80.91.229.2 (27 Jun 2006 08:07:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2006 08:07:10 +0000 (UTC) Cc: Peter Breton , "T. V. Raman" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 27 10:07:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fv8ao-00072c-BV for ged-emacs-devel@m.gmane.org; Tue, 27 Jun 2006 10:06:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fv8an-0008EJ-Sk for ged-emacs-devel@m.gmane.org; Tue, 27 Jun 2006 04:06:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fv8ac-0008EB-3x for emacs-devel@gnu.org; Tue, 27 Jun 2006 04:06:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fv8ab-0008Dz-Pi for emacs-devel@gnu.org; Tue, 27 Jun 2006 04:06:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fv8ab-0008Dw-GT for emacs-devel@gnu.org; Tue, 27 Jun 2006 04:06:29 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fv8mf-0004nR-13 for emacs-devel@gnu.org; Tue, 27 Jun 2006 04:18:57 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Fv8aa-0003fQ-KM; Tue, 27 Jun 2006 04:06:28 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id BDDDF1C4CD63; Tue, 27 Jun 2006 10:05:51 +0200 (CEST) Original-To: Luc Teirlinck In-Reply-To: <200606260327.k5Q3Rfpd013691@jane.dms.auburn.edu> (Luc Teirlinck's message of "Sun, 25 Jun 2006 22:27:41 -0500 (CDT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56216 Archived-At: Luc Teirlinck writes: > There have been in the past several complaints about the fact that > trying to revert a *Locate* buffers first asks whether you want to > update the locate database. > > If you answer yes, then in my setup and I would guess in most > setups, you get an error unless you are running as root, because you > need to be root to update the locate database. As a result, the > buffer does not get reverted. In this case, one option would be to try (let ((default-directory "/sudo::")) ... or (depending on the setup of the system) (let ((default-directory "/su::")) ... around rerunning the database. This could be one customization option (and a failed regeneration as normal user might point out the availability), I think. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum