From: "Sébastien Vauban" <zthjwsqqafhv@spammotel.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to unify notation for file accesses thru Samba?
Date: Tue, 15 Apr 2008 15:57:55 +0200 [thread overview]
Message-ID: <87bq4bxlss.fsf@mundaneum.com> (raw)
In-Reply-To: mailman.10362.1208233940.18990.help-gnu-emacs@gnu.org
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
next prev parent reply other threads:[~2008-04-15 13:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 10:56 Problems with samba mount trepca
2008-04-11 12:14 ` weber
2008-04-14 11:43 ` How to unify notation for file accesses thru Samba? Sébastien Vauban
2008-04-14 19:01 ` Michael Albinus
2008-04-15 4:34 ` Michael Albinus
[not found] ` <mailman.10362.1208233940.18990.help-gnu-emacs@gnu.org>
2008-04-15 13:57 ` Sébastien Vauban [this message]
2008-04-16 4:50 ` Michael Albinus
[not found] ` <mailman.10420.1208321303.18990.help-gnu-emacs@gnu.org>
2008-04-16 7:22 ` Sébastien Vauban
2008-04-16 19:12 ` Michael Albinus
2008-04-14 20:24 ` Problems with samba mount Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bq4bxlss.fsf@mundaneum.com \
--to=zthjwsqqafhv@spammotel.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.