From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.bugs Subject: bug#18312: PATCH: using `revert-buffer' to restart a closed telnet session. Date: Thu, 25 Feb 2016 15:38:02 +0100 Message-ID: References: <87oab7oc36.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142cf7467354b052c99228e X-Trace: ger.gmane.org 1456411163 24557 80.91.229.3 (25 Feb 2016 14:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 14:39:23 +0000 (UTC) Cc: 18312@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 15:39:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYx4T-0006BW-5T for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 15:39:13 +0100 Original-Received: from localhost ([::1]:43702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYx4S-00085E-HE for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 09:39:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYx4O-00084q-DD for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 09:39:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYx4I-0002CO-PW for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 09:39:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYx4I-0002CI-FK for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 09:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYx4I-0002IF-7o for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 09:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Emilio Lopes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18312 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18312-submit@debbugs.gnu.org id=B18312.14564111168784 (code B ref 18312); Thu, 25 Feb 2016 14:39:02 +0000 Original-Received: (at 18312) by debbugs.gnu.org; 25 Feb 2016 14:38:36 +0000 Original-Received: from localhost ([127.0.0.1]:44936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYx3p-0002HW-2D for submit@debbugs.gnu.org; Thu, 25 Feb 2016 09:38:36 -0500 Original-Received: from mail-vk0-f44.google.com ([209.85.213.44]:34221) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYx3j-0002HE-SE for 18312@debbugs.gnu.org; Thu, 25 Feb 2016 09:38:31 -0500 Original-Received: by mail-vk0-f44.google.com with SMTP id e185so48983018vkb.1 for <18312@debbugs.gnu.org>; Thu, 25 Feb 2016 06:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Z186/M84EO5Kg9GzKNkrsqW1SAsJ+gWBJEVVG2F6r4s=; b=ho/qkRqaGOaEKng1yFDlGmFCfb2S2ZCDEhsD4rGSzrTa/+xA+EUeZqNM6xQQSrr6Vk wXdKg2geDoGWL6b2EyuCepMHJa74vGLl3o/70WNTxYIcjXxHNUsZwDMaQ7BYhLQPUSt3 NPMUdcPQoTTLA/36TG5p47XJ7f5jlvxq2dequXPk+OXOSjNu4WS88EARBKdAWoMlNFcU QB6Onedy/Jdd63YPwqsZ1eiiBhm/LoJjhVW71+vuNPe+ycritwxHcWsNK6UOSnz9K/9m UYVNKkYNb0yFHDh/SItEsCOe9RLC7y9l6BBZAbQi7GOWd7PlvJR+/60g9S8AgeK6BwKc 3ckQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=Z186/M84EO5Kg9GzKNkrsqW1SAsJ+gWBJEVVG2F6r4s=; b=Fa0OAcMOzuMVWUL6htpuxKsxOes94f8MSheR5ZvWYgC/7KnkKpwKz/8cwrlQ11yIDN 0ahN4ZZDqR0LsXUO8XLmvtmTs9IaWVFNMWzQYG4SDmBhD/JejXg6jEd0XzdioieM7dmI 9GU9xEsJfpqShCe9Ybq3nXmWtYp75k5NvpQ6is6NqPTDcVs4g1NuI2SIUisXJitYt8qx xnGgLeXVooG/IoJr3o6xhGdDbCFaEYmIcdQWNygeFFBToP2P91mjmPI+XGWzBXoF6poL U4HIIIRxvLVi8wHhF7UmGQ/FqrXf2Q7LYF9O5i6iwhorNTdXO4vilC03OiDuoJ09qYXt SQvQ== X-Gm-Message-State: AG10YOQwP9Xo+fIdITnHje4x/M9r9M1e6cihRYfQqQeIsts0qPh1BDFwVlfdJpzJos3Iixr1/qg+YpWnneqjtw== X-Received: by 10.31.166.200 with SMTP id p191mr37892754vke.53.1456411102359; Thu, 25 Feb 2016 06:38:22 -0800 (PST) Original-Received: by 10.176.1.82 with HTTP; Thu, 25 Feb 2016 06:38:02 -0800 (PST) In-Reply-To: <87oab7oc36.fsf@gnus.org> X-Google-Sender-Auth: -Sz8SnuuthRD7JgcTrHi5eAuHII X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113799 Archived-At: --001a1142cf7467354b052c99228e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable `telnet' is not documented in the manual. A possible NEWS entry could be along these lines: ** telnet-mode reverting a buffer in `telnet-mode' will restart a closed connection. Thank you! Em=C3=ADlio 2016-02-23 13:17 GMT+01:00 Lars Ingebrigtsen : > Emilio Lopes writes: > > > The following patch allows one to use `revert-buffer' to restart a > > closed telnet/rsh connection. It also defines `ssh' as an alias for > > `rsh' since `remote-shell-program' is set to `ssh' by default anyway. > > > > Regards > > > > Em=C3=ADlio > > > > --- lisp/ChangeLog 2014-08-21 08:40:29 +0000 > > +++ lisp/ChangeLog 2014-08-21 14:57:57 +0000 > > @@ -1,3 +1,9 @@ > > +2014-08-21 Emilio C. Lopes > > + > > + * net/telnet.el (telnet-connect-command): New variable. > > + (telnet-revert-buffer): New function. > > + (telnet-mode): use `telnet-revert-buffer' as > `revert-buffer-function'. > > + (telnet, rsh): Set `telnet-connect-command' according to their > > call parameters. > > I think this looks good. Could you also submit changes for NEWS and the > manual (if the manual documents telnet.el, that is, I haven't checked). > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --001a1142cf7467354b052c99228e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
`telnet' is not documented in the manual.

A pos= sible NEWS entry could be along these lines:

=C2=A0=C2=A0=C2=A0 ** t= elnet-mode

=C2=A0=C2=A0=C2=A0 reverting a buffer in `telnet-mode'= ; will restart a closed connection.

Thank you!

=C2=A0Em=C3=AD= lio

2016= -02-23 13:17 GMT+01:00 Lars Ingebrigtsen <larsi@gnus.org>:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Emilio Lopes <eclig@gmx.net> writes:

> The following patch allows one to use `revert-buffer' to restart a=
> closed telnet/rsh connection.=C2=A0 It also defines `ssh' as an al= ias for
> `rsh' since `remote-shell-program' is set to `ssh' by defa= ult anyway.
>
> Regards
>
>=C2=A0 Em=C3=ADlio
>
> --- lisp/ChangeLog=C2=A0 =C2=A0 2014-08-21 08:40:29 +0000
> +++ lisp/ChangeLog=C2=A0 =C2=A0 2014-08-21 14:57:57 +0000
> @@ -1,3 +1,9 @@
> +2014-08-21=C2=A0 Emilio C. Lopes=C2=A0 <eclig@gmx.net>
> +
> +=C2=A0 =C2=A0 * net/telnet.el (telnet-connect-command): New variable.=
> +=C2=A0 =C2=A0 (telnet-revert-buffer): New function.
> +=C2=A0 =C2=A0 (telnet-mode): use `telnet-revert-buffer' as `rever= t-buffer-function'.
> +=C2=A0 =C2=A0 (telnet, rsh): Set `telnet-connect-command' accordi= ng to their
> call parameters.

I think this looks good.=C2=A0 Could you also submit changes for NEWS and t= he
manual (if the manual documents telnet.el, that is, I haven't checked).=

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no

--001a1142cf7467354b052c99228e--