From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: enabling ido requires sudo authentication Date: Wed, 24 Mar 2010 03:34:10 +0100 Message-ID: <87bpeeh2hp.fsf@telefonica.net> References: <1269325209.18666.26.camel@zerihar> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269398101 12856 80.91.229.12 (24 Mar 2010 02:35:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 02:35:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 24 03:34:57 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuGQq-00085L-4q for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Mar 2010 03:34:56 +0100 Original-Received: from localhost ([127.0.0.1]:52536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuGQp-00039B-Lq for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 22:34:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuGQQ-000394-GN for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 22:34:30 -0400 Original-Received: from [140.186.70.92] (port=34913 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuGQO-00038w-4l for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 22:34:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuGQM-00044u-IJ for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 22:34:28 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:46408) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuGQM-00044X-Cb for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 22:34:26 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NuGQI-0007uI-G5 for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 03:34:22 +0100 Original-Received: from 81.34.30.46 ([81.34.30.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2010 03:34:22 +0100 Original-Received: from ofv by 81.34.30.46 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2010 03:34:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 81.34.30.46 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) Cancel-Lock: sha1:ye01uGVEBZbAYYsLpEm2sJkWKdY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72469 Archived-At: Eric Abrahamsen writes: > I'm having a very weird problem: I recently switched from a Mac to > Ubuntu, and at some point during the tweaking and adjusting and fixing, > ido-mode started requiring my administrative password, via tramp. I have > ido turned on via the customize interface, and commenting out: > > '(ido-mode (quote both) nil (ido)) > > in the customize variable list fixes the problem. It also turns off > ido-mode, obviously, and re-enabling it via M-x ido-mode once again > prompts for my sudo password (I see "Password for /sudo:root@mymachine:" > in the minibuffer). Somethig similar happened to me recently. The solution was to remove $HOME/.ido.last That file keeps a history of visited files. I suspect that if you ever visited a file as root via TRAMP, the fact is recorded and when ido-mode is activated on the next emacs session somehow it tries to access the file, or at least test for its existence, which activates TRAMP. There are other issues with ido-mode and TRAMP. For instance, sometimes ido loads TRAMP for no reason, as in Windows the first time you enter a path containing a colon. ido-mode has some variables for avoiding loading TRAMP but they doesn't work on that case. I perused the source code without success. I guess that ido invokes some generic facility which is TRAMP-aware, that is, the problem is not in ido.el itself but on some emacs API. [snip]