From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: How to unify notation for file accesses thru Samba? Date: Tue, 15 Apr 2008 15:57:55 +0200 Organization: Sebastien Vauban Message-ID: <87bq4bxlss.fsf@mundaneum.com> References: <353c845d-05d6-467b-aae3-7922728590dc@u10g2000prn.googlegroups.com> <878wzgachh.fsf_-_@mundaneum.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 1208272090 2277 80.91.229.12 (15 Apr 2008 15:08:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2008 15:08:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 17:08:29 2008 connect(): Connection refused 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.50) id 1JlmLV-0005o1-H3 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Apr 2008 16:41:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlmKr-0000Os-4W for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Apr 2008 10:40:37 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: Under construction... User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:iYuSURGw7+QEymfglv0nNffmJxc= Original-Lines: 57 Original-NNTP-Posting-Date: 15 Apr 2008 13:57:45 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1208267865 reader0.news.be.easynet.net 1585 [::ffff:81.188.7.152]:47141 Original-X-Complaints-To: abuse@be.easynet.net Original-Xref: shelby.stanford.edu gnu.emacs.help:157940 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:53306 Archived-At: Hi Michael, >> Is there a unified way to refer to SAMBA mounts? >> >> Currently, in my bookmarks list, I have "doubles" (one for Emacs >> under Windows, one for Emacs under Linux): >> >> Users on RUSSELL from Windows //LINUXSRV/Users/ >> Users on RUSSELL from Ubuntu /smb:sva@LINUXSRV:/Users/ >> >> Is there a way to unify both of them under one single notation? > > You could use abbreviations, combined with your bookmarks. I did this, as advised: --8<---------------cut here---------------start------------->8--- ;; define own abbreviation (for use with bookmarks) (add-to-list 'directory-abbrev-alist (if (memq system-type '(cygwin windows-nt)) '("^/RUSSELL" . "//RUSSELL/Users/") '("^/RUSSELL" . "/smb:sva@RUSSELL:/Users/"))) --8<---------------cut here---------------end--------------->8--- and have this in my `bookmarks.txt' file: --8<---------------cut here---------------start------------->8--- ("Users on RUSSELL" ((filename . "^/RUSSELL") (front-context-string . "sva\n drwxrwxrwx") (rear-context-string . " 0 Jan 8 09:41 ") (position . 659))) --8<---------------cut here---------------end--------------->8--- Trying to open `/RUSSELL' from `C-x C-f' does the right job, asking me for my password. Though, selecting the corresponding line from my bookmarks list: --8<---------------cut here---------------start------------->8--- Users on RUSSELL ^/RUSSELL --8<---------------cut here---------------end--------------->8--- erroneously tells me: --8<---------------cut here---------------start------------->8--- RUSSELL nonexistent. Relocate "Users on RUSSELL"? (y or n) --8<---------------cut here---------------end--------------->8--- Any ideas? Best regards, Seb --=20 S=E9bastien=A0Vauban