On Tue, 26 Oct 1999, DE WEERD <[EMAIL PROTECTED]> wrote:

>>From the info:
>      Likewise, `save-excursion' does not restore window-buffer
>      correspondences altered by functions such as `switch-to-buffer'.
>      One way to restore these correspondences, and the selected
>      window, is to use `save-window-excursion' inside `save-excursion'
>      (*note Window Configurations::.).
> 
> This means that in rpc some commands should be corrected.
> save-window-excursion should be inside save-excursion (see
> rcp-vc-do-command).

The attached patch does so. Thanks. :)

        Daniel

--- rcp.el~	Mon Oct 25 15:48:12 1999
+++ rcp.el	Tue Oct 26 22:03:36 1999
@@ -1751,8 +1751,8 @@
       ;; documentation to check :(
       ;;
       ;; Daniel Pittman <[EMAIL PROTECTED]>
-      (save-window-excursion
-	(save-excursion
+      (save-excursion
+	(save-window-excursion
 	  ;; Actually execute remote command
 	  (rcp-handle-shell-command
 	   (mapconcat 'shell-quote-argument
@@ -1834,8 +1834,8 @@
       ;; identical...
       ;;
       ;; Daniel Pittman <[EMAIL PROTECTED]>
-      (save-window-excursion
-	(save-excursion
+      (save-excursion
+	(save-window-excursion
 	  ;; Actually execute remote command
 	  (rcp-handle-shell-command
 	   (mapconcat 'shell-quote-argument

-- 
If you cannot get rid of the family skeleton, you may as well make it dance.
        -- George Bernard Shaw

Reply via email to