* ffap-bindings incompatible with TRAMP?
@ 2009-02-22 5:15 Bernardo
2009-02-22 9:56 ` Michael Albinus
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Bernardo @ 2009-02-22 5:15 UTC (permalink / raw)
To: help-gnu-emacs
It appears that having (ffap-bindings) in .emacs interferes with TRAMP,
e.g. i can no longer use C-x C-f /su::/etc/somefile to open a file as root.
Would anybody know of a workaround?
TRAMP version 2.1.15
GNU/Linux Emacs 22.3.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ffap-bindings incompatible with TRAMP?
2009-02-22 5:15 ffap-bindings incompatible with TRAMP? Bernardo
@ 2009-02-22 9:56 ` Michael Albinus
2009-02-23 11:10 ` Bernardo
[not found] ` <mailman.1533.1235387450.31690.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 7+ messages in thread
From: Michael Albinus @ 2009-02-22 9:56 UTC (permalink / raw)
To: bernardo.bacic; +Cc: help-gnu-emacs
Bernardo <bernardo.bacic@pobox.com> writes:
> It appears that having (ffap-bindings) in .emacs interferes with
> TRAMP, e.g. i can no longer use C-x C-f /su::/etc/somefile to open a
> file as root.
> Would anybody know of a workaround?
>
> TRAMP version 2.1.15
> GNU/Linux Emacs 22.3.1
Could you, please, be a little bit more verbose what happens? I cannot
reproduce it here (using GNU Emacs 22.2.1, Tramp 2.1.16-pre). Because of
Ubuntu I've opened "/sudo::/etc/hosts", but this shouldn't make a
difference.
Best regards, Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ffap-bindings incompatible with TRAMP?
2009-02-22 5:15 ffap-bindings incompatible with TRAMP? Bernardo
2009-02-22 9:56 ` Michael Albinus
@ 2009-02-23 11:10 ` Bernardo
[not found] ` <mailman.1533.1235387450.31690.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 7+ messages in thread
From: Bernardo @ 2009-02-23 11:10 UTC (permalink / raw)
To: help-gnu-emacs
> It appears that having (ffap-bindings) in .emacs interferes with TRAMP,
> e.g. i can no longer use C-x C-f /su::/etc/somefile to open a file as root.
> Would anybody know of a workaround?
>
> TRAMP version 2.1.15
> GNU/Linux Emacs 22.3.1
a few more details (the mail gateway hasn't forwarded Michael's message
yet, but i can see it on google groups)
1. start Emacs
$ emacs -Q &
2. open /etc/hosts
C-x C-f /su::/etc/hosts
3. enter password when prompted
4. the file loads ok
5. quit emacs
-------------------------------------------------
the second scenario:
a. start Emacs
$ emacs -Q &
b. activate ffap-bindings
M-: (ffap-bindings)
c. open /etc/hosts [1]
C-x C-f /su::/etc/hosts
d. there is no prompt for root password although Emacs
was started from a user's account; the echo area says:
"Use M-x make-directory RET RET to create directory and its parents"
The /etc/hosts file isn't loaded.
Regards, Bernardo
[1] while typing, one can see the TRAMP is loading
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ffap-bindings incompatible with TRAMP?
[not found] ` <mailman.1533.1235387450.31690.help-gnu-emacs@gnu.org>
@ 2009-02-25 14:54 ` Michael Albinus
2009-02-25 22:09 ` Bernardo
0 siblings, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2009-02-25 14:54 UTC (permalink / raw)
To: bernardo.bacic; +Cc: help-gnu-emacs
Bernardo <bernardo.bacic@pobox.com> writes:
>> TRAMP version 2.1.15
>> GNU/Linux Emacs 22.3.1
Are you sure Tramp 2.1.15 is loaded with your scenario? After starting
"emacs -Q" you need at least adapt the load-path. Emacs 22 comes with
Tramp 2.0.
> -------------------------------------------------
> the second scenario:
> a. start Emacs
> $ emacs -Q &
>
> b. activate ffap-bindings
> M-: (ffap-bindings)
>
> c. open /etc/hosts [1]
> C-x C-f /su::/etc/hosts
>
> d. there is no prompt for root password although Emacs
> was started from a user's account; the echo area says:
> "Use M-x make-directory RET RET to create directory and its parents"
> The /etc/hosts file isn't loaded.
I have done exactly as said with Emacs 23.0.90 / Tramp 2.1.15. The
only difference is that I have used "sudo" instead of "su" (because of
Ubuntu). I was prompted for the password, and it did run w/o any
problem.
Could you, please, repeat the test? Directly after starting Emacs, you
should apply "M-: (setq tramp-verbose 9)". If the problem happens,
please show the "*tramp/su root@...*" and "*debug tramp/su root@...*"
buffers.
> Regards, Bernardo
Best regards, Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ffap-bindings incompatible with TRAMP?
2009-02-25 14:54 ` Michael Albinus
@ 2009-02-25 22:09 ` Bernardo
2009-02-26 11:39 ` Michael Albinus
0 siblings, 1 reply; 7+ messages in thread
From: Bernardo @ 2009-02-25 22:09 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
>
>>> TRAMP version 2.1.15
>>> GNU/Linux Emacs 22.3.1
>
> Are you sure Tramp 2.1.15 is loaded with your scenario? After starting
> "emacs -Q" you need at least adapt the load-path. Emacs 22 comes with
> Tramp 2.0.
i've installed Tramp 2.1.15 just to confirm the issue is still there;
anyway, M-x tramp-version returns 2.1.15 in both cases
>
> I have done exactly as said with Emacs 23.0.90 / Tramp 2.1.15. The
> only difference is that I have used "sudo" instead of "su" (because of
> Ubuntu). I was prompted for the password, and it did run w/o any
> problem.
>
> Could you, please, repeat the test? Directly after starting Emacs, you
> should apply "M-: (setq tramp-verbose 9)". If the problem happens,
> please show the "*tramp/su root@...*" and "*debug tramp/su root@...*"
> buffers.
>
done so, but there are no TRAMP buffers!
C-x C-b only shows
. hosts 0 Fundamental /su::/etc/hosts
*scratch* 0 Lisp Interaction
* *Messages* 733 Fundamental
BTW shell output:
$ ls -l /etc/hosts
-rw-r--r-- 1 root root 98 2008-12-31 09:03 /etc/hosts
C-h v tramp-verbose shows:
tramp-verbose is a variable defined in `tramp.el'.
Its value is 9
Documentation:
*Verbosity level for Tramp.
Any level x includes messages for all levels 1 .. x-1. The levels are
0 silent (no tramp messages at all)
1 errors
2 warnings
3 connection to remote hosts (default level)
4 activities
5 internal
6 sent and received strings
7 file caching
8 connection properties
10 traces (huge).
You can customize this variable.
The content of *Messages*
Warning: no fonts matching
`-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available [2 times]
Warning: no fonts matching
`-*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available
Warning: no fonts matching `-*-*-*-r-normal-*-16-*-*-*-*-*-iso8859-1'
available
Warning: no fonts matching `-*-*-*-*-normal-*-16-*-*-*-*-*-iso8859-1'
available
Warning: no fonts matching `-*-*-*-*-*-*-16-*-*-*-*-*-iso8859-1'
available [2 times]
("emacs" "-Q")
For information about GNU Emacs and the GNU system, type C-h C-a.
9 (#o11, #x9)
Loading ffap...done
(ffap-ro-mode-hook)
Loading tramp... [3 times]
Loading regexp-opt...done
Loading easymenu...done
Loading tramp...done
Use M-x make-directory RET RET to create the directory and its parents
got to go now, will have another look at this test a bit later on;
regards, Bernardo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ffap-bindings incompatible with TRAMP?
2009-02-25 22:09 ` Bernardo
@ 2009-02-26 11:39 ` Michael Albinus
2009-02-28 0:55 ` Bernardo
0 siblings, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2009-02-26 11:39 UTC (permalink / raw)
To: bernardo.bacic; +Cc: help-gnu-emacs
Bernardo <bernardo.bacic@pobox.com> writes:
> done so, but there are no TRAMP buffers!
> C-x C-b only shows
> . hosts 0 Fundamental /su::/etc/hosts
> *scratch* 0 Lisp Interaction
> * *Messages* 733 Fundamental
OK, that's clear now. ffap-bindings changes file-name-handler-alist,
that's why Tramp is not recognized.
I've checked ffap.el in CVS. Version 1.62.2.5, which comes with Emacs
22.3, does indeed suspicious file-name-handler-alist manipulations.
Version 1.82, bundled with recent Emacs 23.0.90/91, has changed that
code with respect to this problem. There is the following comment:
;; Remove the special handler manually. We used to just let-bind
;; file-name-handler-alist to preserve its value, but that caused
;; other modifications to be lost (e.g. when Tramp gets loaded
;; during the completing-read call).
That's why I couldn't reproduce your problem with Emacs 23.0.90. I
don't believe that there will be an Emacs 22.4, so you must wait for
Emacs 23 (or you participate in the beta test: Emacs 23.0.91 was
announced yesterday).
> regards, Bernardo
Best regards, Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ffap-bindings incompatible with TRAMP?
2009-02-26 11:39 ` Michael Albinus
@ 2009-02-28 0:55 ` Bernardo
0 siblings, 0 replies; 7+ messages in thread
From: Bernardo @ 2009-02-28 0:55 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Michael Albinus said the following on 26/02/09 22:39:
> Bernardo <bernardo.bacic@pobox.com> writes:
>
>> done so, but there are no TRAMP buffers!
>> C-x C-b only shows
>> . hosts 0 Fundamental /su::/etc/hosts
>> *scratch* 0 Lisp Interaction
>> * *Messages* 733 Fundamental
>
> OK, that's clear now. ffap-bindings changes file-name-handler-alist,
> that's why Tramp is not recognized.
>
> I've checked ffap.el in CVS. Version 1.62.2.5, which comes with Emacs
> 22.3, does indeed suspicious file-name-handler-alist manipulations.
>
> Version 1.82, bundled with recent Emacs 23.0.90/91, has changed that
> code with respect to this problem. There is the following comment:
>
> ;; Remove the special handler manually. We used to just let-bind
> ;; file-name-handler-alist to preserve its value, but that caused
> ;; other modifications to be lost (e.g. when Tramp gets loaded
> ;; during the completing-read call).
>
> That's why I couldn't reproduce your problem with Emacs 23.0.90. I
> don't believe that there will be an Emacs 22.4, so you must wait for
> Emacs 23 (or you participate in the beta test: Emacs 23.0.91 was
> announced yesterday).
>
>> regards, Bernardo
>
> Best regards, Michael.
looks like i've procrastinated with v23.x upgrade for too long, will
give it a try in next few days; thanks for your help
rgds, Bernardo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-02-28 0:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-22 5:15 ffap-bindings incompatible with TRAMP? Bernardo
2009-02-22 9:56 ` Michael Albinus
2009-02-23 11:10 ` Bernardo
[not found] ` <mailman.1533.1235387450.31690.help-gnu-emacs@gnu.org>
2009-02-25 14:54 ` Michael Albinus
2009-02-25 22:09 ` Bernardo
2009-02-26 11:39 ` Michael Albinus
2009-02-28 0:55 ` Bernardo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).