all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs 23.3; tramp. remote activity adds extra login info.
@ 2011-04-21 19:58 mafeuser
  2011-04-25 17:42 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: mafeuser @ 2011-04-21 19:58 UTC (permalink / raw)
  To: help-gnu-emacs


Hallo all!
I just installed emacs 23.3 (from sources).
I use tramp havilly and after using it about 15min I noticed it runs faster.
Thank You.

There is one difference to 23.2 though.

When I compile remotly, compilation buffer gets more verbose login
prompt as it did before. Literally, "NEW" points out changes:

-*- mode: compilation; default-directory: "/scpc:centos5.x86_64:/tmp/" -*-
Compilation started at Wed Apr 20 15:51:34

g++ -g -O3 -o p1 p1.cpp
Last login: Wed Apr 20 17:51:02 2011 from 10.0.2.2      ;; "NEW"
[root@user ~]#                                          ;; "NEW"
Compilation finished at Wed Apr 20 15:51:36


is it expected befaviour?

best regards,
Paul.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: emacs 23.3; tramp. remote activity adds extra login info.
  2011-04-21 19:58 emacs 23.3; tramp. remote activity adds extra login info mafeuser
@ 2011-04-25 17:42 ` Michael Albinus
  2011-05-01  8:56   ` mafeuser
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2011-04-25 17:42 UTC (permalink / raw)
  To: mafeuser; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

mafeuser@gmail.com writes:

> Hallo all!

Hi,

> There is one difference to 23.2 though.
>
> When I compile remotly, compilation buffer gets more verbose login
> prompt as it did before. Literally, "NEW" points out changes:
>
> -*- mode: compilation; default-directory: "/scpc:centos5.x86_64:/tmp/" -*-
> Compilation started at Wed Apr 20 15:51:34
>
> g++ -g -O3 -o p1 p1.cpp
> Last login: Wed Apr 20 17:51:02 2011 from 10.0.2.2      ;; "NEW"
> [root@user ~]#                                          ;; "NEW"
> Compilation finished at Wed Apr 20 15:51:36
>
> is it expected befaviour?

Nope, that is an error. The appended patch ought to save it. I'll commit
it to both Tramp 2.1 and 2.2 repositories.

Will be fixed with Emacs 23.4 (don't know, whether it will come before
Emacs 24), and Emacs 24.1.

> best regards,
> Paul.

Best regards, Michael.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 4576 bytes --]

Index: lisp/tramp-smb.el
===================================================================
RCS file: /sources/tramp/tramp/lisp/tramp-smb.el,v
retrieving revision 2.126.2.1
diff -c -r2.126.2.1 tramp-smb.el
*** lisp/tramp-smb.el	24 Jan 2011 10:09:41 -0000	2.126.2.1
--- lisp/tramp-smb.el	25 Apr 2011 17:34:24 -0000
***************
*** 1328,1334 ****
  
  	      ;; Play login scenario.
  	      (tramp-process-actions
! 	       p vec
  	       (if share
  		   tramp-smb-actions-with-share
  		 tramp-smb-actions-without-share))
--- 1328,1334 ----
  
  	      ;; Play login scenario.
  	      (tramp-process-actions
! 	       p vec nil
  	       (if share
  		   tramp-smb-actions-with-share
  		 tramp-smb-actions-without-share))
Index: lisp/tramp.el
===================================================================
RCS file: /sources/tramp/tramp/lisp/tramp.el,v
retrieving revision 2.814.2.13
diff -c -r2.814.2.13 tramp.el
*** lisp/tramp.el	12 Mar 2011 12:47:47 -0000	2.814.2.13
--- lisp/tramp.el	25 Apr 2011 17:34:39 -0000
***************
*** 4098,4104 ****
  		  (tramp-message
  		   v 6 "%s" (mapconcat 'identity (process-command p) " "))
  		  (tramp-set-process-query-on-exit-flag p nil)
! 		  (tramp-process-actions p v tramp-actions-copy-out-of-band))))
  
  	  ;; Reset the transfer process properties.
  	  (tramp-set-connection-property v "process-name" nil)
--- 4098,4105 ----
  		  (tramp-message
  		   v 6 "%s" (mapconcat 'identity (process-command p) " "))
  		  (tramp-set-process-query-on-exit-flag p nil)
! 		  (tramp-process-actions
! 		   p v nil tramp-actions-copy-out-of-band))))
  
  	  ;; Reset the transfer process properties.
  	  (tramp-set-connection-property v "process-name" nil)
***************
*** 6821,6828 ****
  	  (setq found (funcall action proc vec)))))
      found))
  
! (defun tramp-process-actions (proc vec actions &optional timeout)
!   "Perform actions until success or TIMEOUT."
    ;; Preserve message for `progress-reporter'.
    (with-temp-message ""
      ;; Enable auth-source and password-cache.
--- 6822,6832 ----
  	  (setq found (funcall action proc vec)))))
      found))
  
! (defun tramp-process-actions (proc vec pos actions &optional timeout)
!   "Perform ACTIONS until success or TIMEOUT.
! PROC and VEC indicate the remote connection to be used.  POS, if
! set, is the starting point of the region to be deleted in the
! connection buffer."
    ;; Preserve message for `progress-reporter'.
    (with-temp-message ""
      ;; Enable auth-source and password-cache.
***************
*** 6847,6853 ****
  	   (cond
  	    ((eq exit 'permission-denied) "Permission denied")
  	    ((eq exit 'process-died) "Process died")
! 	    (t "Login failed"))))))))
  
  ;; Utility functions.
  
--- 6851,6860 ----
  	   (cond
  	    ((eq exit 'permission-denied) "Permission denied")
  	    ((eq exit 'process-died) "Process died")
! 	    (t "Login failed"))))
! 	(when (numberp pos)
! 	  (with-current-buffer (tramp-get-connection-buffer vec)
! 	    (let (buffer-read-only) (delete-region pos (point)))))))))
  
  ;; Utility functions.
  
***************
*** 7523,7529 ****
    (catch 'uname-changed
      (let ((p (tramp-get-connection-process vec))
  	  (process-name (tramp-get-connection-property vec "process-name" nil))
! 	  (process-environment (copy-sequence process-environment)))
  
        ;; If too much time has passed since last command was sent, look
        ;; whether process is still alive.  If it isn't, kill it.  When
--- 7530,7537 ----
    (catch 'uname-changed
      (let ((p (tramp-get-connection-process vec))
  	  (process-name (tramp-get-connection-property vec "process-name" nil))
! 	  (process-environment (copy-sequence process-environment))
! 	  (pos (with-current-buffer (tramp-get-connection-buffer vec) (point))))
  
        ;; If too much time has passed since last command was sent, look
        ;; whether process is still alive.  If it isn't, kill it.  When
***************
*** 7677,7683 ****
  		;; Send the command.
  		(tramp-message vec 3 "Sending command `%s'" command)
  		(tramp-send-command vec command t t)
! 		(tramp-process-actions p vec tramp-actions-before-shell 60)
  		(tramp-message
  		 vec 3 "Found remote shell prompt on `%s'" l-host))
  	      ;; Next hop.
--- 7685,7691 ----
  		;; Send the command.
  		(tramp-message vec 3 "Sending command `%s'" command)
  		(tramp-send-command vec command t t)
! 		(tramp-process-actions p vec pos tramp-actions-before-shell 60)
  		(tramp-message
  		 vec 3 "Found remote shell prompt on `%s'" l-host))
  	      ;; Next hop.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: emacs 23.3; tramp. remote activity adds extra login info.
  2011-04-25 17:42 ` Michael Albinus
@ 2011-05-01  8:56   ` mafeuser
  0 siblings, 0 replies; 3+ messages in thread
From: mafeuser @ 2011-05-01  8:56 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs

Michael,
Thank YOu for the patch!
best regards,

Paul

Michael Albinus <michael.albinus@gmx.de> writes:

> I'll commit
> it to both Tramp 2.1 and 2.2 repositories.
>
> Will be fixed with Emacs 23.4 (don't know, whether it will come before
> Emacs 24), and Emacs 24.1.
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-01  8:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21 19:58 emacs 23.3; tramp. remote activity adds extra login info mafeuser
2011-04-25 17:42 ` Michael Albinus
2011-05-01  8:56   ` mafeuser

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.