From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function Date: Wed, 27 Feb 2013 09:08:22 -0500 Message-ID: References: <87liaam7dh.fsf@gmail.com> <87hakym6il.fsf@gmail.com> <87d2vmm3nh.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361974161 2027 80.91.229.3 (27 Feb 2013 14:09:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 14:09:21 +0000 (UTC) Cc: 13831@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 27 15:09:44 2013 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 1UAhhS-0001KZ-V8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2013 15:09:39 +0100 Original-Received: from localhost ([::1]:48600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAhh7-0002n9-Tl for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2013 09:09:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAhh4-0002ZS-4D for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 09:09:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAhh2-00065C-Ds for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 09:09:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAhh2-000653-9S for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 09:09:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UAhio-0005YG-Br for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 09:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Feb 2013 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13831-submit@debbugs.gnu.org id=B13831.136197421621288 (code B ref 13831); Wed, 27 Feb 2013 14:11:02 +0000 Original-Received: (at 13831) by debbugs.gnu.org; 27 Feb 2013 14:10:16 +0000 Original-Received: from localhost ([127.0.0.1]:52937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAhi4-0005XI-6B for submit@debbugs.gnu.org; Wed, 27 Feb 2013 09:10:16 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:25013) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAhi1-0005X9-LO for 13831@debbugs.gnu.org; Wed, 27 Feb 2013 09:10:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxKJt/2dsb2JhbABEuzWDWRdzgh4BAQQBJy8jEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFFFxKJt/2dsb2JhbABEuzWDWRdzgh4BAQQBJy8jEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2594787" Original-Received: from 69-196-162-109.dsl.teksavvy.com (HELO pastel.home) ([69.196.162.109]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 Feb 2013 09:08:21 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 149046BCBF; Wed, 27 Feb 2013 09:08:22 -0500 (EST) In-Reply-To: <87d2vmm3nh.fsf@gmail.com> (Thierry Volpiatto's message of "Wed, 27 Feb 2013 11:50:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:71910 Archived-At: >> There is no guarantee that a process with this name exists. > Where ? in the sentinel ? > The process take this name in `net-utils-run-simple': > --8<---------------cut here---------------start------------->8--- > (set (make-local-variable 'net-utils-program-name) program-name) > (set (make-local-variable 'net-utils-program-args) args) > (set-process-filter > (apply 'start-process (format "%s" program-name) > --8<---------------cut here---------------end--------------->8--- Using process names (like buffer names, BTW) is often unreliable. Better use the process object itself. I.e. rather than (set (make-local-variable 'net-utils-program-name) program-name) and then later call start-process (which may choose a different name than program-name if there's already a process by that name), better just do (set (make-local-variable 'net-utils-proc) (start-process ...)) so you can then use net-utils-proc, being absolutely sure this is the process you started. Stefan