help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using tramp with sunrise-commander


From: José A . Romero L .
Subject: Re: Using tramp with sunrise-commander
Date: Mon, 6 Dec 2010 14:07:01 -0800 (PST)
User-agent: G2/1.0

On Dec 6, 14:44, Haines Brown <hai...@HistoricalMaterialism.info>
wrote:
(...)
> No, I was not using it, but it sounds useful. I tried it. Very nice!
> Only one little problem. How do I kill the popup frame from the keyboard
> (mouse works ok). Repeated C-x k simply takes me through a history of
(...)

The function is "delete-frame", and it's bound to C-x 5 0. You can:

1) simply get used to C-x 5 0,

2) write something like this:

    (defun hb/smart-close ()
      (interactive)
      (if (cdr (frame-list))
          (delete-frame)
        (save-buffers-kill-emacs)))

and bind it to C-x C-c, or

3) use server-mode to launch the Emacs server in the background, and
emacsclient to open new frames, instead of new Emacs instances. This
makes C-x C-c behave exactly like if it were calling delete-frame and
leave all your buffers intact until you kill the server (calling the
"kill-emacs" function).

(...)
> Another problem, perhaps related to the first. If I visit a remote host
> with tramp, and then seek to exit the tramp ftp connection by closing
> the buffer displaying the remote host, this no longer works. I believe
> before adding sunrise-x-popup I could do C-x k to kill the buffer
> displaying the remote site while in Sunrise-Commander, but now, with
> sunrise-x-popup, when I try to do that, I'm kicked out of
> Sunrise-Commander altogether and am thrown back to the emacs scratch
> buffer in a single window, fundamental mode. The buffer holding the
> display of the remote site is still alive.
(...)

Actually, the only way to effectively kill the FTP session in Emacs
is by calling the ange-ftp-kill-ftp-process function (maybe also by
killing the *ftp* buffer), for sure not by killing a dired / sunrise
buffer. C-x k is now bound in Sunrise to sr-quit, so it deactivates
both panes. If you really want to kill that buffer, just change its
directory somewhere else (e.g. by pressing: j ~ [RET], or: 1 M-o).

(...)
> Thanks. Tried that, but after supplying remote PW, tramp hangs so badly
> that I have to issue a kill command on the emacs process. But this is a
> tramp issue, not sunrise-commander, for I have the same problem in the
> dired mode.
(...)

Either that, or there's some problem with the FTP server -- try
testing it with a separate FTP client.

Cheers,
--
José A. Romero L.
escherdragon at gmail
"We who cut mere stones must always be envisioning cathedrals."
(Quarry worker's creed)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]