From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#39491: 28.0.50; two bugs in battery-upower Date: Sat, 21 Mar 2020 11:45:36 +0100 Message-ID: <87fte2m1f3.fsf@members.fsf.org> References: <83mu9tedsh.fsf@gnu.org> <5A4C6466-FB4B-484F-BF29-91762AFB46F3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="98252"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) Cc: 39491@debbugs.gnu.org, rms@gnu.org, Stefan Monnier To: lg.zevlg@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 21 11:46:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jFbdq-000PRo-Cr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Mar 2020 11:46:10 +0100 Original-Received: from localhost ([::1]:35024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFbdp-0001vb-Ev for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Mar 2020 06:46:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55520) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFbdj-0001vV-FJ for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 06:46:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFbdi-0001eX-Ev for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 06:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFbdi-0001eS-C6 for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 06:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFbdi-0000Cx-Ap for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 06:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Mar 2020 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39491 X-GNU-PR-Package: emacs Original-Received: via spool by 39491-submit@debbugs.gnu.org id=B39491.1584787545775 (code B ref 39491); Sat, 21 Mar 2020 10:46:02 +0000 Original-Received: (at 39491) by debbugs.gnu.org; 21 Mar 2020 10:45:45 +0000 Original-Received: from localhost ([127.0.0.1]:45978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFbdR-0000CR-G7 for submit@debbugs.gnu.org; Sat, 21 Mar 2020 06:45:45 -0400 Original-Received: from mailrelay110.isp.belgacom.be ([195.238.20.137]:16092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFbdP-0000CD-5v for 39491@debbugs.gnu.org; Sat, 21 Mar 2020 06:45:43 -0400 IronPort-SDR: m+kou7rAVUavr7d7XAFlYDuDgK4AsLxhanh+QTVZSpFyHe1nf+yXsyFzi5CGDFqoBrAjgpdAtb 2ASNf4mCLKtPoXoMzWgfH1wLM1OF17u+Eujf0xAekgiVUEVgK2bUansg1isW9929TW7O1BqWCM 3fDtWLsVblMarNWX8e6ovVm2efSrb4Tvn94fxqcB+J5Sk0PkuvbablEPbFiJiqqtmuXQ5T3niK jlhnkYfwQFMacnIBgOPWQQpiNaUPZMt0xP4k2JyO51EDtbJcV6/H88nfus2HjDe/FbLE49g/W0 NF8= X-Belgacom-Dynamic: yes IronPort-PHdr: 9a23:aNnBdxcBmTEw3AojoY3BElx2lGMj4u6mDksu8pMizoh2WeGdxc26bRyN2/xhgRfzUJnB7Loc0qyK6vymADBbqs/R+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3OgV6PPn6FZDPhMqrye+y54fTYwJVjzahfL9+Nhq7oRjeu8UMnIdvJag8xhTUrnZLZu9b2X5mKVWPkhnz4cu94IRt+DlKtfI78M5AX6T6f6AmQrFdET8rLWM76tD1uBfaVQeA6WcSXWsQkhpTHgjK9wr6UYvrsiv7reVyxi+XNtDrQL8uWDSi66BrSAL0iCoCKjU0/n3bhtB2galGux+quQBxzJDIb4GULPp+f73SfdUGRWpaQ81dUzVNDp6gY4cTCuYMO/tToYvgqFsUtRawBReiCv7txT9GiHD406403Os9Hg/JxwEgA8sOvW7IoNnpLqofU+a4x7TIwzXZaPNW3C/w5pDJch89pvGMWah/cdHMwkczFgPKklWQppb/PzyIy+8AtGia7+19VeKphG4npRtxoj+gxso3j4nGmIcVxUva+iVj24Y5P9O4SFV1YdK+F5tQrS6aOpJwT8g/TW9ovyM6xacHuZ69ZCUKx5InxwPFZ/yAaYiI7RTuX/uSLzdgnH9oe6+ziwys/UWv1+HwTNS43VVLoyZfndTAqHYA3AHJ5MedUPty5EKh1C6K1wDU9+5LP1g5lbHeK5492r4wkYcTsVjbEi/2hkr2iKiWe105 +uiz9evneKzqqIGcN491jAH+Mb4gldaiDughLAYDUHSX9fik2L3i+032XqlKg+U1n6XEqpzWO8sWqrOjDwNI0Ysu6gyzAji43N X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CMAAAV73Ve/yq68VFmHQEBAQkBEQUFAYFnCAELAYIoLT9UIRIqhBiIImCGTgkFAYEzBIlqDo9SgXsJAQEBAQEBAQEBKwkBAgQBAYRFAoIhJzQJDgIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKhFEhAQMBAQUKATcMgjspAYJ/AQQBIzMjBQsIAxoCBSECAg8BBA1PH4MIgksDCQUkC6t9gTKIJA2CGgaBDioBjEh5gQeBR4JePoIbSQQagQZDTYJEgl4EsAhEgkaHXopshFmbWJgXgjeSJzmBWDMaMIMvUCWXJIVCQzACAYEeCI1rAQE X-IPAS-Result: A2CMAAAV73Ve/yq68VFmHQEBAQkBEQUFAYFnCAELAYIoLT9UIRIqhBiIImCGTgkFAYEzBIlqDo9SgXsJAQEBAQEBAQEBKwkBAgQBAYRFAoIhJzQJDgIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKhFEhAQMBAQUKATcMgjspAYJ/AQQBIzMjBQsIAxoCBSECAg8BBA1PH4MIgksDCQUkC6t9gTKIJA2CGgaBDioBjEh5gQeBR4JePoIbSQQagQZDTYJEgl4EsAhEgkaHXopshFmbWJgXgjeSJzmBWDMaMIMvUCWXJIVCQzACAYEeCI1rAQE Original-Received: from 42.186-241-81.adsl-dyn.isp.belgacom.be (HELO user-ThinkPad-T400) ([81.241.186.42]) by relay.skynet.be with ESMTP; 21 Mar 2020 11:45:37 +0100 In-Reply-To: <5A4C6466-FB4B-484F-BF29-91762AFB46F3@gmail.com> (lg zevlg's message of "Sat, 8 Feb 2020 12:10:46 +0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177591 Archived-At: (I'm sorry if this comes to you as a duplicate, I think I sent it by error to the wrong set of people) lg.zevlg@gmail.com writes: > If level is unavailable and AC is off-line/unknown, then it should be emp= ty string I think. User could see the battery level is low/critical by per= centage I committed a oneliner doing that, pushed as fix/bug-39491 See: https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=3Dfix/bug-39491 It's been a long time since I didn't commit to emacs, can you check if it's OK to merge ? I'm aware that it is not a full fix because it doesn't address the following : > OK, we should generalize multi-battery code then, so each status func > won=E2=80=99t reimplement multi battery handling. but at least it stops the error. --=20 Nicolas