unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmaug@yahoo.com>
Subject: Rlogin patch for global option flags
Date: Fri, 29 Apr 2005 14:07:09 -0700 (PDT)	[thread overview]
Message-ID: <20050429210709.25347.qmail@web60316.mail.yahoo.com> (raw)

I have an elisp program to call `ssh' a la `rlogin'.  Essentially it sets
the `rlogin-program' variable to `ssh' and calls `rlogin'.  The problem
is that ssh (cygwin's port) running with the w32 version of CVS Emacs
needs the option `-tt' prior to the host name to open the connection
correctly.  The problem is that the `rlogin' function treats the `-tt' as
the remote host name because it is the first argument.  

The following patch modifies the `rlogin' function command line
interpretation by assuming that the second argument is the remote
hostname if the first argument starts with a dash.

Please review and apply if deemed suitable.

Index: emacs/lisp/net/rlogin.el
===================================================================
RCS file: /c/cvsroot/emacs/emacs/lisp/net/rlogin.el,v
retrieving revision 1.6
diff -c -r1.6 rlogin.el
*** emacs/lisp/net/rlogin.el    10 Apr 2004 05:55:47 -0000      1.6
--- emacs/lisp/net/rlogin.el    28 Apr 2005 23:37:49 -0000
***************
*** 182,188 ****
                     (append (rlogin-parse-words input-args)
                             rlogin-explicit-args)
                   (rlogin-parse-words input-args)))
!        (host (car args))
         (user (or (car (cdr (member "-l" args)))
                     (user-login-name)))
           (buffer-name (if (string= user (user-login-name))
--- 182,188 ----
                     (append (rlogin-parse-words input-args)
                             rlogin-explicit-args)
                   (rlogin-parse-words input-args)))
!        (host (if (string-match "^-" (car args)) (car (cdr args)) (car
args)))
         (user (or (car (cdr (member "-l" args)))
                     (user-login-name)))
           (buffer-name (if (string= user (user-login-name))

             reply	other threads:[~2005-04-29 21:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 21:07 Michael Mauger [this message]
2005-05-01 22:58 ` Rlogin patch for global option flags Thien-Thi Nguyen
2005-09-18 12:14 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-05-02  0:18 Michael Mauger
2005-05-02  2:53 ` Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050429210709.25347.qmail@web60316.mail.yahoo.com \
    --to=mmaug@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).