unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Network Manager
@ 2012-12-13 22:56 Ian D
  2012-12-14  8:31 ` Bastien
  0 siblings, 1 reply; 24+ messages in thread
From: Ian D @ 2012-12-13 22:56 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-devel

[-- Attachment #1: enwc.tar.gz --]
[-- Type: application/x-gtar, Size: 11267 bytes --]

[-- Attachment #2: Type: text/plain, Size: 199 bytes --]


Bastien <bzg@gnu.org> writes:

> I can't ungzip the file...

  Sorry about that.  I forgot to tell tar to use gzip when zipping it.
  Here's something that should actually work... I checked!

Ian D

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Network Manager
@ 2013-01-21 18:45 Ian D
  2013-01-22 18:24 ` Stefan Monnier
  0 siblings, 1 reply; 24+ messages in thread
From: Ian D @ 2013-01-21 18:45 UTC (permalink / raw)
  To: emacs-devel


    Sorry that it's taken me this long to send an update.  I got ENWC
    setup on savannah (https://savannah.nongnu.org/projects/enwc).  I
    also got it setup to work with NetworkManager.  I got it to connect
    to a network, and display the networks.  However, it takes a few
    seconds to display the networks after a scan, since it takes a while
    to get the network properties from an access point.  However,
    connecting seems to work welll.

Ian D



^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Network Manager
@ 2012-12-17 12:39 Ian D
  0 siblings, 0 replies; 24+ messages in thread
From: Ian D @ 2012-12-17 12:39 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: enwc.tar.gz --]
[-- Type: application/x-gtar, Size: 47205 bytes --]

[-- Attachment #2: Type: text/plain, Size: 566 bytes --]


        So, while I'm waiting for Savannah to approve ENWC, I've
        attached an updated tarball, this time including the Makefile,
        and the changes I've been making.  Wicd now scans
        asynchronously, using the SendEndScanSignal signal to determine
        when to display the networks.  NetworkManager does something
        similar, but uses the AccessPointAdded and AccessPointRemoved
        signals, as that was all I could find.  I've also fixed up
        NetworkManager so that it can scan and display the results
        correctly.

Ian D

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Network Manager
@ 2012-12-14 16:25 Ian D
  2012-12-16  9:07 ` Michael Albinus
  0 siblings, 1 reply; 24+ messages in thread
From: Ian D @ 2012-12-14 16:25 UTC (permalink / raw)
  To: emacs-devel


       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



^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Network Manager
@ 2012-12-14 14:01 Ian D
  2012-12-14 14:29 ` Michael Albinus
  2012-12-15 16:08 ` Michael Albinus
  0 siblings, 2 replies; 24+ messages in thread
From: Ian D @ 2012-12-14 14:01 UTC (permalink / raw)
  To: emacs-devel


       A few things:

           1. I primarily use Wicd, so I haven't tested NetworkManager
           yet.

           2. The documentation I've been using for NetworkManager is
           for version 0.9.6.4, and in the NEWS file (and before anyone
           asks, I already checked the ChangeLog in the source I have)
           in the source code, I found that they indeed added
           RequestScan to NetworkManager in version 0.9.6.  The specific
           entry is "* Add on-demand WiFi scan support".  I will see
           what if there is anything I can do about this, although it
           seems like there isn't much.  However, 0.9.6 is the next
           version after 0.9.4, so I assume that the update will find
           its way to other distros soon.

           3. To anyone who hasn't ready any of the previous
           emails, you do need to add "(require 'enwc-setup)" and
           "(enwc-setup)" to your .emacs file.  I apologize for not
           mentioning this before, and have added it to the enwc.el
           file.

           4. When using Wicd, scanning does take a little while, since
           I needed it to block, otherwise the scan would complete in
           the background after ENWC finished it, so the displayed
           results would be invalid.  For me, it only takes a few
           seconds to complete the scan.

Ian D



^ permalink raw reply	[flat|nested] 24+ messages in thread
* Network Manager
@ 2012-12-13 21:38 Ian D
  2012-12-13 21:47 ` Bastien
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Ian D @ 2012-12-13 21:38 UTC (permalink / raw)
  To: emacs-devel


Emacs Developers,

      I've been working on a network manager for Emacs.  It uses a
      backend, which at the moment is either NetworkManager or Wicd,
      which it accesses through D-Bus.  I haven't gotten it up to the
      Emacs Lisp Coding Standards, but it is functional, if anyone is
      interested.  As I am new to this mailing list, I'm not sure how I
      should send the source.

Ian D



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-01-22 18:32 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-13 22:56 Network Manager Ian D
2012-12-14  8:31 ` Bastien
2012-12-14  8:55   ` Michael Albinus
2012-12-14  9:33     ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2013-01-21 18:45 Ian D
2013-01-22 18:24 ` Stefan Monnier
2013-01-22 18:32   ` Ian D
2012-12-17 12:39 Ian D
2012-12-14 16:25 Ian D
2012-12-16  9:07 ` Michael Albinus
2012-12-14 14:01 Ian D
2012-12-14 14:29 ` Michael Albinus
2012-12-15 16:08 ` Michael Albinus
2012-12-13 21:38 Ian D
2012-12-13 21:47 ` Bastien
2012-12-13 21:58   ` Ian D
2012-12-13 22:19     ` Bastien
2012-12-18 17:45       ` Christian Lynbech
2012-12-13 21:51 ` Ian Bryant
2012-12-13 22:22 ` Xue Fuqiao
2012-12-14  8:21 ` Michael Albinus
2012-12-14 13:45   ` Ian D
2012-12-14 23:11     ` Stefan Monnier
2012-12-14 15:23 ` Richard Stallman

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