[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to unify notation for file accesses thru Samba?
From: |
Sébastien Vauban |
Subject: |
Re: How to unify notation for file accesses thru Samba? |
Date: |
Tue, 15 Apr 2008 15:57:55 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
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
--
Sébastien Vauban
- Problems with samba mount, address@hidden, 2008/04/08
- Re: Problems with samba mount, weber, 2008/04/11
- How to unify notation for file accesses thru Samba?, Sébastien Vauban, 2008/04/14
- Re: How to unify notation for file accesses thru Samba?, Michael Albinus, 2008/04/14
- Re: How to unify notation for file accesses thru Samba?, Michael Albinus, 2008/04/15
- Message not available
- Re: How to unify notation for file accesses thru Samba?,
Sébastien Vauban <=
- Re: How to unify notation for file accesses thru Samba?, Michael Albinus, 2008/04/16
- Message not available
- Re: How to unify notation for file accesses thru Samba?, Sébastien Vauban, 2008/04/16
- Re: How to unify notation for file accesses thru Samba?, Michael Albinus, 2008/04/16
Re: Problems with samba mount, Jason Rumney, 2008/04/14