[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer functio
From: |
Stefan Monnier |
Subject: |
bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function |
Date: |
Wed, 27 Feb 2013 09:08:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>> 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
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Thierry Volpiatto, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Thierry Volpiatto, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Andreas Schwab, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function,
Stefan Monnier <=
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Thierry Volpiatto, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Stefan Monnier, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Thierry Volpiatto, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Stefan Monnier, 2013/02/27
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Thierry Volpiatto, 2013/02/28
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Stefan Monnier, 2013/02/28
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Thierry Volpiatto, 2013/02/28
- bug#13831: 24.3.50; [PATCH] net-utils-mode have no revert-buffer function, Stefan Monnier, 2013/02/28