From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug with automount-dir-prefix handling in abbreviate-file-name Date: Thu, 06 Aug 2009 14:09:48 -0400 Message-ID: References: <9aa0cfde0908060935r41e5959fy436168b3fcd352a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249582212 28131 80.91.229.12 (6 Aug 2009 18:10:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 18:10:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ami Fischman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 06 20:10:05 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MZ7Pg-0006l2-Lp for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 20:10:04 +0200 Original-Received: from localhost ([127.0.0.1]:54697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ7Pg-0005Fs-3w for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 14:10:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ7PY-0005DO-FR for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:09:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ7PT-0005BL-MH for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:09:56 -0400 Original-Received: from [199.232.76.173] (port=51928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ7PT-0005BF-IW for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:09:51 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:15747 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ7PT-0003So-8Z for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:09:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuEEAN+4ekpFxL8W/2dsb2JhbACBUM9NhBgFhzQ X-IronPort-AV: E=Sophos;i="4.43,335,1246852800"; d="scan'208";a="43111102" Original-Received: from 69-196-191-22.dsl.teksavvy.com (HELO ceviche.home) ([69.196.191.22]) by ironport2-out.teksavvy.com with ESMTP; 06 Aug 2009 14:09:50 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8986AB40CD; Thu, 6 Aug 2009 14:09:50 -0400 (EDT) In-Reply-To: <9aa0cfde0908060935r41e5959fy436168b3fcd352a@mail.gmail.com> (Ami Fischman's message of "Thu, 6 Aug 2009 09:35:51 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:113751 Archived-At: > The default value of automount-dir-prefix is "^/tmp_mnt/" implying > that the prefix should have a trailing slash. But using "^/home/" as > the prefix such as in: > (let ((automount-dir-prefix "^/home/")) > (find-file "~/")) > results in an error: =BF=A1=BFWhy would you want to set automount-dir-prefix to such a value?!? I think you're confused. Most likely you don't need automount-dir-prefix (few people use automounters nowadays, and all automounters I know don't use anything like the /tmp_mnt used back then). If you've accidentally used a directory named /tmp_mnt, then I'd suggest you set automount-dir-prefix to something harmless like "\\'a". Stefan