From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: ENWC Development Date: Mon, 27 Feb 2017 14:50:34 -0500 Message-ID: <6eb0f39a-6ed0-d54c-c13c-2d3b4296c522@gmail.com> References: <87inoblzns.fsf@escafil> <933e7e36-2c24-231d-d2f0-c407250117a0@gmail.com> <878tp6naj5.fsf@escafil> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1488225341 8411 195.159.176.226 (27 Feb 2017 19:55:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 19:55:41 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: emacs-devel@gnu.org To: Ian Dunn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 27 20:55:36 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciROP-0001Uh-0s for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2017 20:55:33 +0100 Original-Received: from localhost ([::1]:56400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciROU-0006TA-R7 for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2017 14:55:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciRJi-00035G-Hu for emacs-devel@gnu.org; Mon, 27 Feb 2017 14:50:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciRJe-0001m5-Kh for emacs-devel@gnu.org; Mon, 27 Feb 2017 14:50:42 -0500 Original-Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:33104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciRJe-0001kV-Gz; Mon, 27 Feb 2017 14:50:38 -0500 Original-Received: by mail-qk0-x22e.google.com with SMTP id n127so114637233qkf.0; Mon, 27 Feb 2017 11:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=iVMkwpbLT5q44kpkc26FUy9GFISCoBFBQRZJMU7g/0g=; b=lZyrv1ifn7oghYCRK2ptBAV4uB2FVoeBC4AdqEJG0Y15+FmH7HqoEqWRkRgUpy4BtJ 3en/+BmY5JsgcQ9IjdW6LqHh30VKJHerutdWYTbHlfS/EmWbxKTTUzkuIOUrSGlxJ+a2 InmbToOWeJ5h6RI/VCs9ShgOa4Alb9U1AGVT7liZpSWxTgTNzO7H7rgmWAvNB0fKS4wg PqkpKfqSEb7Q036sxcxg1/uAQda/w8Qg+49qkzrjDBoccGhN3l7b4GPOqYGcy+taBcke syyoESjuR/IPtALazByYpJ5pbtSWAPuku6SusoHHBU7loom0GNCvqeN8ky8M3NQfnkWy lPcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=iVMkwpbLT5q44kpkc26FUy9GFISCoBFBQRZJMU7g/0g=; b=A745WeqBGUdI1Vz3dJht4zs7ML+VkoZ9qPaVtvk1GhbthDnLkZvfYIX4ycc/zKv85o NVf1W2UBIgKyHeh5z5VcPM6NJ7SSIIQSH59q8kAtUevbRB7h3K0MBt390fmWSucZoxi6 ogotlQhU3D5iP+94xdbxEV2C/5I6jb5qq9BwQveI7cjZk02oX6G6rxBOFR3NFHPoe9G5 ZgaPVKl/AShGSoSmvCiwnkC88IWp086Wu4+llQJIHJQqJFsoSf9h0mQqw+Bygj8G2i4n 8cN0dcY2PIRPPjDcRJGYpKlNaMD0LsHEDVGqQsOn4Y1hidJBde9rZkqA6j79YtKH016T KA3Q== X-Gm-Message-State: AMke39lJNCw/RHuygg0c1dNHRvAO7IAbwb6ra06VLeg9xhj3+mBqjYFGgzvz4FIs3sMNxg== X-Received: by 10.55.94.6 with SMTP id s6mr18457567qkb.166.1488225036204; Mon, 27 Feb 2017 11:50:36 -0800 (PST) Original-Received: from [18.189.6.43] (dhcp-18-189-6-43.dyn.MIT.EDU. [18.189.6.43]) by smtp.gmail.com with ESMTPSA id x7sm10969716qtc.18.2017.02.27.11.50.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2017 11:50:35 -0800 (PST) In-Reply-To: <878tp6naj5.fsf@escafil> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:212627 Archived-At: On 2017-02-15 21:21, Ian Dunn wrote: > Thank you Clément, both for your help and your quick response. Would > it be too much trouble to try it from the hg repo on Savannah? ( hg > clone http://hg.savannah.nongnu.org/hgweb/enwc/ ) Same question for > anyone else interested, and I understand if you choose not to. Sorry for the delay. I now get the following backtrace when running enwc-setup: Debugger entered--Lisp error: (dbus-error "No device found for the requested iface.") signal(dbus-error ("No device found for the requested iface.")) dbus-call-method(:system "org.freedesktop.NetworkManager" "/org/freedesktop/NetworkManager" "org.freedesktop.NetworkManager" "GetDeviceByIpIface" :timeout 25000 :string "eth0") apply(dbus-call-method :system "org.freedesktop.NetworkManager" "/org/freedesktop/NetworkManager" "org.freedesktop.NetworkManager" "GetDeviceByIpIface" :timeout 25000 (:string "eth0")) enwc-nm-dbus-call-method("GetDeviceByIpIface" nil nil :string "eth0") apply(enwc-nm-dbus-call-method "GetDeviceByIpIface" nil nil (:string "eth0")) enwc-nm-dbus-default-call-method("GetDeviceByIpIface" :string "eth0") enwc-nm-get-device-by-name("eth0") (setq enwc-nm-wired-dev (enwc-nm-get-device-by-name enwc-wired-device) enwc-nm-wireless-dev (enwc-nm-get-device-by-name enwc-wireless-device)) enwc-nm-load() funcall(enwc-nm-load) enwc--load([cl-struct-enwc-backend nm enwc-nm-can-load-p enwc-nm-load enwc-nm-unload enwc-nm-get-networks enwc-nm-scan enwc-nm-get-wireless-nw-props enwc-nm-connect enwc-nm-disconnect enwc-nm-get-current-nw-id enwc-nm-check-connecting enwc-nm-is-wired]) (if (not (or force (enwc--can-load-p new-backend))) (warn "Backend %s is not usable." backend) (enwc--load new-backend) (setq enwc--current-backend new-backend)) (let ((new-backend (map-elt enwc-registered-backend-alist backend))) (if new-backend nil (error "No registered backend %s" backend)) (if (not (or force (enwc--can-load-p new-backend))) (warn "Backend %s is not usable." backend) (enwc--load new-backend) (setq enwc--current-backend new-backend))) enwc-load-backend(nm nil) enwc-load-default-backend(nil) (if enwc--setup-done nil (enwc-load-default-backend enwc-force-backend-loading) (if enwc-display-mode-line (progn (enwc-enable-display-mode-line))) (if (and enwc-auto-scan (> enwc-auto-scan-interval 0) (not enwc-scan-timer)) (progn (setq enwc-scan-timer (run-at-time t enwc-auto-scan-interval 'enwc-scan t)))) (setq enwc--setup-done t)) enwc-setup() I get a similar message for M-x enwc: 'dbus-call-method: D-Bus error: "No device found for the requested iface."'. I used this set-up code: (add-to-list 'load-path "~/.emacs.d/lisp/enwc/") ;; local hg clone (require 'enwc nil t) (setq enwc-default-backend 'nm) Looking more at the backtrace, I gathered that I needed this: (setq enwc-wired-device "enp0s25") (setq enwc-wireless-device "wlp5s0") With this added scanning worked: I got a list of wireless networks! Some small requests: Instead of throwing and error, could enwc automatically figure out (possibly by prompting me) what my wired and wireless interfaces are? Also: sorting the list of networks by clicking a header should ideally not scroll it (currently, sorting by e.g. Essid will sometimes scroll all but two or three networks out of the screen). Thanks! Clément.