[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: |
Wed, 16 Apr 2008 09:22:29 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
Hi Michael,
>> I 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---
>>
>> Though, selecting the corresponding line from my bookmarks list
>> erroneously tells me:
>>
>> --8<---------------cut here---------------start------------->8---
>> RUSSELL nonexistent. Relocate "Users on RUSSELL"? (y or n)
>> --8<---------------cut here---------------end--------------->8---
>
> I haven't tested, but I would put the following into your bookmarks:
>
> ((filename . "/RUSSELL")
>
> The "^" is needed for the regexp in abbreviations, but it is
> NOT useful when you specify a file name.
Of course, you're right!!
I removed the `^' from the filename in the `bookmarks.txt' file,
and have this in my `.emacs':
--8<---------------cut here---------------start------------->8---
(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---
Though it now asks me for a password, I still have a problem
after entering it:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (file-error "Permission denied")
signal(file-error ("Permission denied"))
tramp-error(["smb" "sva" "RUSSELL" "/.bzr/checkout/"] file-error "Permission
denied")
apply(tramp-error ["smb" "sva" "RUSSELL" "/.bzr/checkout/"] file-error
"Permission denied" nil)
byte-code("ÄÅÆ \n%)" [vec-or-proc signal fmt-string args ((byte-code
"- Ä !- ÅÆÇ! &