From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian D Newsgroups: gmane.emacs.devel Subject: Re: Network Manager Date: Fri, 14 Dec 2012 11:25:30 -0500 Message-ID: <87bodwfvnp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355502364 20733 80.91.229.3 (14 Dec 2012 16:26:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2012 16:26:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 14 17:26:17 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TjY5S-0008IT-O3 for ged-emacs-devel@m.gmane.org; Fri, 14 Dec 2012 17:26:10 +0100 Original-Received: from localhost ([::1]:54565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjY5F-0005J5-Ir for ged-emacs-devel@m.gmane.org; Fri, 14 Dec 2012 11:25:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjY5B-0005Ik-Q4 for emacs-devel@gnu.org; Fri, 14 Dec 2012 11:25:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjY56-0006A2-Ow for emacs-devel@gnu.org; Fri, 14 Dec 2012 11:25:53 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjY56-00069y-LQ for emacs-devel@gnu.org; Fri, 14 Dec 2012 11:25:48 -0500 Original-Received: from dark-chocolate-70.dynamic2.rpi.edu ([129.161.75.70]:57985 helo=parabola) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TjY56-0003mR-Df for emacs-devel@gnu.org; Fri, 14 Dec 2012 11:25:48 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155556 Archived-At: Answers to next round of questions: > Maybe your code could protect the respective D-Bus call with > `dbus-ignore-errors'. With this, wired connections might be visible at > least. To use ENWC in wired mode, press 'W'. I probably should have put that in the commentary. > What about `dbus-call-method-asynchronously'? The handler could update > the enwc buffer, and you aren't blocked during scan. I've tried that, but here's the problem with at least Wicd (Not so certain about NetworkManager): The "Scan" function for Wicd takes a parameter `sync'. This is `t' if the user wants a synchronous call, and `nil' otherwise. The issues I ran into before were with this, and `dbus-call-method-asyncronously' doesn't really help with it. If `sync' is `nil', then the function returns `t', and goes into the background, but doesn't provide a way to see when the scan is finished. It returns immediately, so `dbus-call-method-asynchronously' doesn't help. If I try using `dbus-call-method-asynchronously' with `sync' as `t', then it just doesn't return until another call to "Scan" is made, which then compromises the return results > Is it asynchronous? That is, can one go on editing while it makes a > connection? This part, there are no problems with (Again, not much testing with NetworkManager). For Wicd, it begins connecting to the network, and disappears into the background. For both of them (assuming that NetworkManager doesn't block during connection), the mode line string then switches to `[*%]', and will switch to the signal strength if it connects, or `[0%]' if it is not connected. This allows the user to keep an eye on the connection status. Ian D