* Problems with samba mount
@ 2008-04-08 10:56 trepca
2008-04-11 12:14 ` weber
2008-04-14 20:24 ` Problems with samba mount Jason Rumney
0 siblings, 2 replies; 10+ messages in thread
From: trepca @ 2008-04-08 10:56 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I have this problem when saving a file that is mounted with samba, it
just freezes for ever. If I try to edit/save the same file in other
editors it works with no problems.
Is there a way of knowing what is blocking Emacs, more verbose
logging or something like that?
Thanks.
--
Sebastjan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems with samba mount
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 20:24 ` Problems with samba mount Jason Rumney
1 sibling, 1 reply; 10+ messages in thread
From: weber @ 2008-04-11 12:14 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 8, 7:56 am, "tre...@gmail.com" <tre...@gmail.com> wrote:
> Hi,
>
> I have this problem when saving a file that is mounted with samba, it
> just freezes for ever. If I try to edit/save the same file in other
> editors it works with no problems.
>
> Is there a way of knowing what is blocking Emacs, more verbose
> logging or something like that?
>
> Thanks.
>
> --
> Sebastjan
Are you trying to edit a file on a server path like \\server\trepca
\file.txt?
If so, i do have the same problem (don't know wheter its a bug)
One solution is to mount your network drive in a letter, say h:\, then
things work (for me)
Tell me if it helps.
Hugo
^ permalink raw reply [flat|nested] 10+ messages in thread
* How to unify notation for file accesses thru Samba?
2008-04-11 12:14 ` weber
@ 2008-04-14 11:43 ` Sébastien Vauban
2008-04-14 19:01 ` Michael Albinus
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Sébastien Vauban @ 2008-04-14 11:43 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
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):
--8<---------------cut here---------------start------------->8---
Users on RUSSELL from Windows //LINUXSRV/Users/
Users on RUSSELL from Ubuntu /smb:sva@LINUXSRV:/Users/
--8<---------------cut here---------------end--------------->8---
Is there a way to unify both of them under one single notation?
Best regards,
Seb
--
Sébastien Vauban
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to unify notation for file accesses thru Samba?
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>
2 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2008-04-14 19:01 UTC (permalink / raw)
To: Sébastien Vauban; +Cc: help-gnu-emacs
Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:
> Hello,
Hi,
> 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. Something like
(add-to-list
'directory-abbrev-alist
(if (memq system-type '(cygwin windows-nt))
'("^/russell" . "//LINUXSRV/Users/")
'("^/russell" . "/smb:sva@LINUXSRV:/Users/")))
See <http://www.gnu.org/software/tramp/#Frequently-Asked-Questions> for
discussion of further approaches.
> Best regards,
> Seb
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems with samba mount
2008-04-08 10:56 Problems with samba mount trepca
2008-04-11 12:14 ` weber
@ 2008-04-14 20:24 ` Jason Rumney
1 sibling, 0 replies; 10+ messages in thread
From: Jason Rumney @ 2008-04-14 20:24 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 8, 11:56 am, "tre...@gmail.com" <tre...@gmail.com> wrote:
> Hi,
>
> I have this problem when saving a file that is mounted with samba, it
> just freezes for ever. If I try to edit/save the same file in other
> editors it works with no problems.
>
> Is there a way of knowing what is blocking Emacs, more verbose
> logging or something like that?
Are you logged in before you save?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to unify notation for file accesses thru Samba?
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>
2 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2008-04-15 4:34 UTC (permalink / raw)
To: Sébastien Vauban; +Cc: help-gnu-emacs
Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:
> Hello,
Hi,
> 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. Something like
(add-to-list
'directory-abbrev-alist
(if (memq system-type '(cygwin windows-nt))
'("^/russell" . "//LINUXSRV/Users/")
'("^/russell" . "/smb:sva@LINUXSRV:/Users/")))
See <http://www.gnu.org/software/tramp/#Frequently-Asked-Questions> for
discussion of further approaches.
> Best regards,
> Seb
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to unify notation for file accesses thru Samba?
[not found] ` <mailman.10362.1208233940.18990.help-gnu-emacs@gnu.org>
@ 2008-04-15 13:57 ` Sébastien Vauban
2008-04-16 4:50 ` Michael Albinus
[not found] ` <mailman.10420.1208321303.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 10+ messages in thread
From: Sébastien Vauban @ 2008-04-15 13:57 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to unify notation for file accesses thru Samba?
2008-04-15 13:57 ` Sébastien Vauban
@ 2008-04-16 4:50 ` Michael Albinus
[not found] ` <mailman.10420.1208321303.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2008-04-16 4:50 UTC (permalink / raw)
To: Sébastien Vauban; +Cc: help-gnu-emacs
[Resent, my connection seems to have trouble]
Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:
> Hi Michael,
Hi Sébastien,
> 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?
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.
> Best regards,
> Seb
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to unify notation for file accesses thru Samba?
[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
0 siblings, 1 reply; 10+ messages in thread
From: Sébastien Vauban @ 2008-04-16 7:22 UTC (permalink / raw)
To: help-gnu-emacs
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("ÄÅÆ\b \n\v%)" [vec-or-proc signal fmt-string args ((byte-code "\b-\0Ä !-\0Å\x1aÆÇ\v!\x17\0\v&\0È\b!#\0É\b!&\0Ê\b!!ËÌ!)Ä" [vec-or-proc tramp-verbose enable-recursive-minibuffers buffer zerop t pop-to-buffer bufferp processp process-buffer tramp-get-buffer sit-for 30] 3)) apply tramp-error] 6)
tramp-process-actions(#<process *tramp/smb sva@RUSSELL*> ["smb" "sva" "RUSSELL" "/.bzr/checkout/"] ((tramp-smb-prompt tramp-action-succeed) (tramp-password-prompt-regexp tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-denied) (tramp-smb-errors tramp-action-permission-denied) (tramp-process-alive-regexp tramp-action-process-alive)))
tramp-smb-maybe-open-connection(["smb" "sva" "RUSSELL" "/.bzr/checkout/"])
tramp-smb-send-command(["smb" "sva" "RUSSELL" "/.bzr/checkout/"] "dir \"checkout/*\"")
tramp-smb-get-file-entries("/smb:sva@RUSSELL:/.bzr/checkout/")
tramp-smb-handle-file-attributes("/smb:sva@RUSSELL:/.bzr/checkout/format")
apply(tramp-smb-handle-file-attributes "/smb:sva@RUSSELL:/.bzr/checkout/format")
tramp-smb-file-name-handler(file-attributes "/smb:sva@RUSSELL:/.bzr/checkout/format")
apply(tramp-smb-file-name-handler file-attributes "/smb:sva@RUSSELL:/.bzr/checkout/format")
tramp-file-name-handler(file-attributes "/smb:sva@RUSSELL:/.bzr/checkout/format")
file-attributes("/smb:sva@RUSSELL:/.bzr/checkout/format")
tramp-smb-handle-file-exists-p("/smb:sva@RUSSELL:/.bzr/checkout/format")
apply(tramp-smb-handle-file-exists-p "/smb:sva@RUSSELL:/.bzr/checkout/format")
tramp-smb-file-name-handler(file-exists-p "/smb:sva@RUSSELL:/.bzr/checkout/format")
apply(tramp-smb-file-name-handler file-exists-p "/smb:sva@RUSSELL:/.bzr/checkout/format")
tramp-file-name-handler(file-exists-p "/smb:sva@RUSSELL:/.bzr/checkout/format")
file-exists-p("/smb:sva@RUSSELL:/.bzr/checkout/format")
vc-find-root("/RUSSELL" ".bzr/checkout/format")
(if (vc-find-root file vc-bzr-admin-checkout-format-file) (progn (load "vc-bzr") (vc-bzr-registered file)))
vc-bzr-registered("/RUSSELL")
apply(vc-bzr-registered "/RUSSELL")
vc-call-backend(Bzr registered "/RUSSELL")
#[(b) "Â\bà #
\x14\0Ä Å\b#
\x14\0ÆÇÈ\"" [b file vc-call-backend registered vc-file-setprop vc-backend throw found t] 4](Bzr)
mapc(#[(b) "Â\bà #
\x14\0Ä Å\b#
\x14\0ÆÇÈ\"" [b file vc-call-backend registered vc-file-setprop vc-backend throw found t] 4] (RCS CVS SVN SCCS Bzr Git Hg Mtn Arch MCVS))
byte-code("Ã\bÄ\"\x19ÅÆ \x11\0 Ç=\x15\0\n\x18\0 \nB\")È\bÄÇ#É" [file backend vc-handled-backends vc-file-getprop vc-backend mapc #[(b) "Â\bà #
\x14\0Ä Å\b#
\x14\0ÆÇÈ\"" [b file vc-call-backend registered vc-file-setprop vc-backend throw found t] 4] none vc-file-setprop nil] 4)
vc-registered("/RUSSELL")
vc-backend("/RUSSELL")
bookmark-file-or-variation-thereof("/RUSSELL")
bookmark-jump-noselect("Users on RUSSELL")
bookmark-jump-internal("Users on RUSSELL")
bookmark-jump("Users on RUSSELL")
bookmark-bmenu-this-window()
call-interactively(bookmark-bmenu-this-window nil nil)
--8<---------------cut here---------------end--------------->8---
I don't understand from where the reference to `/.bzr/checkout/'
comes... Any other good idea, once again?
Thank you very much,
Seb
--
Sébastien Vauban
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to unify notation for file accesses thru Samba?
2008-04-16 7:22 ` Sébastien Vauban
@ 2008-04-16 19:12 ` Michael Albinus
0 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2008-04-16 19:12 UTC (permalink / raw)
To: Sébastien Vauban; +Cc: help-gnu-emacs
Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:
> Hi Michael,
Hi Sébastien,
> Though it now asks me for a password, I still have a problem
> after entering it:
>
> 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("ÄŽÅÆ\b \n\v%)‡" [vec-or-proc signal fmt-string args ((byte-code "\bƒ-\0Ä !„-\0Å\x1aÆÇ\v!ƒ\x17\0\v†&\0È\b!ƒ#\0É\b!†&\0Ê\b!!ˆËÌ!ˆ)ć" [vec-or-proc tramp-verbose enable-recursive-minibuffers buffer zerop t pop-to-buffer bufferp processp process-buffer tramp-get-buffer sit-for 30] 3)) apply tramp-error] 6)
> tramp-process-actions(#<process *tramp/smb sva@RUSSELL*> ["smb" "sva" "RUSSELL" "/.bzr/checkout/"] ((tramp-smb-prompt tramp-action-succeed) (tramp-password-prompt-regexp tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-denied) (tramp-smb-errors tramp-action-permission-denied) (tramp-process-alive-regexp tramp-action-process-alive)))
Hard to say why it fails. I would need the Tramp buffer, and the Tramp
debug buffer (it is described in the manual how to setup).
> I don't understand from where the reference to `/.bzr/checkout/'
> comes... Any other good idea, once again?
That is the default vc checking. If you don't use vc at all, you might
disable it via
(setq vc-handled-backends nil)
That shall improve your performance in general.
> Thank you very much,
> Seb
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-04-16 19:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.