From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#22689: [PATCH] Add logcount Date: Sat, 30 Sep 2017 14:18:07 -0400 Message-ID: <20170930181807.4eviiyvlxchp4oph@logos.localdomain> References: <20170929174134.e6uxcr63dtyvd6f4@logos.localdomain> <83mv5c4dl0.fsf@gnu.org> <20170930131636.xe22lbwlea7yqelh@logos.localdomain> <83a81c478s.fsf@gnu.org> <20170930145525.kg2zh3jf5odx6g3s@logos.localdomain> <838tgw42ol.fsf@gnu.org> <20170930160331.ibxxjh626jrlm4ef@logos.localdomain> <8360c040up.fsf@gnu.org> <20170930170758.zp2hdjw3il5fbier@logos.localdomain> <834lrk3wfd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1506795549 23463 195.159.176.226 (30 Sep 2017 18:19:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2017 18:19:09 +0000 (UTC) User-Agent: NeoMutt/20170912-48-0df7d3-dirty Cc: 22689-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 20:19:04 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dyMLw-0005en-Eg for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 20:19:04 +0200 Original-Received: from localhost ([::1]:40022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyMM3-00085m-Rg for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 14:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyMLz-00084z-1i for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 14:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyMLu-0004wM-Jj for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 14:19:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyMLu-0004vr-G1 for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 14:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dyMLu-0004F4-1y for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 14:19:02 -0400 Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 18:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22689 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 22689@debbugs.gnu.org, mvoteiza@udel.edu, mvoteiza@udel.edu Original-Received: via spool by 22689-done@debbugs.gnu.org id=D22689.150679549516233 (code D ref 22689); Sat, 30 Sep 2017 18:19:01 +0000 Original-Received: (at 22689-done) by debbugs.gnu.org; 30 Sep 2017 18:18:15 +0000 Original-Received: from localhost ([127.0.0.1]:41423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyML9-0004Dl-GE for submit@debbugs.gnu.org; Sat, 30 Sep 2017 14:18:15 -0400 Original-Received: from mail-qk0-f171.google.com ([209.85.220.171]:54704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyML7-0004DX-UW for 22689-done@debbugs.gnu.org; Sat, 30 Sep 2017 14:18:14 -0400 Original-Received: by mail-qk0-f171.google.com with SMTP id d70so2209992qkc.11 for <22689-done@debbugs.gnu.org>; Sat, 30 Sep 2017 11:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FxyPUA2R2VF7vIXdQJe1fSbZprBnpCVVDTYaszQaxAk=; b=mhrgsVeGyseZLmkb0oYn2Vt9sEko4cbPTQr5dDls4dNkVUtWyyypgnKZmN0lrJyG5D Q8Y/XKK5P8t8NWrVUN6soKFRx/w4aio8gGrD7YSphQRuoMI9pwff5LEO1GGnpTn+SwIU ZZ2NHlUmoi6Km/G9kK20yO6GmXAPFm27IfiPCSAW3Y8Pk3Z+OCgIQrkXFZuRe4ULafpN WkNSGs+gezlzCtTIAI4hSIV/q89LZGqIWSda0H9hSq3o8B1Op3oQsjRzd2RWx/+rC8RW Xak4GSlwlMM6WF1Rqu1u/u3KKA4rJpuL8NgX2NQX8GPRjuRlUVLGGgCL3yx4C43yrXVB 3rlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FxyPUA2R2VF7vIXdQJe1fSbZprBnpCVVDTYaszQaxAk=; b=smnjtfWFvciwCGBRWOD23B+sVW8WnHPPmY7M9k1mdtOvwu0ID0FuvY0wKYSPlCYOPv sanTf/Aght9XYN9ifpox02IoXVUWvBpvz/ormc/WRUMzXZcPnjbrfwIk5+EypD2APxLo j6JnfTO3FnoAuwrfahRt1H0mpaNwlqEsGwO88G2jawUT5J5Lq7fh7wmDUFhRAGaPF4Td 6ZjH+jiJidUuOW0S23Zq57yKirxlyhepmUWRg3HIm/3RjKMklqrgZLtm19o5JZl2tR/t Go0/f3O1OV470Y5wpGc+DbA5wkL/MytyyG8rFXsGtn7qJuOOCwMWWLmLkxReP0XtQhzG vUsg== X-Gm-Message-State: AMCzsaV6GtVR22KOjQXGpWvF3ybefvDAsQdGeP0rShwu216pCeBfmQoq QO9vpBSAToNMXazOvx17rmECsvxhw1I= X-Google-Smtp-Source: AOwi7QDGdnTY7NZD21d4/SsEwB500xryoCkWqpn1p57b9jcBjkG3OBIYuWA386DgDCq5zGibiWJE0g== X-Received: by 10.55.5.14 with SMTP id 14mr3299422qkf.37.1506795488385; Sat, 30 Sep 2017 11:18:08 -0700 (PDT) Original-Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id n4sm4340641qkf.49.2017.09.30.11.18.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Sep 2017 11:18:07 -0700 (PDT) Content-Disposition: inline In-Reply-To: <834lrk3wfd.fsf@gnu.org> 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137701 Archived-At: On 30/09/17 at 08:53pm, Eli Zaretskii wrote: > > Date: Sat, 30 Sep 2017 13:07:58 -0400 > > From: Mark Oteiza > > Cc: 22689@debbugs.gnu.org > > > > Ok. Patch including this, Benjamin's catch, and documentation. > > Thanks. A minor comment on the docs: > > > +@defun logcount integer > > +This function returns the population count of @var{integer}: the > > +number of ones in the binary representation of @var{integer}. > > I would mention here the "Hamming weight" term (in @dfn) that is > referenced in NEWS, and I would also add a few index entries: > > @cindex popcount > @cindex Hamming weight > @cindex counting set bits Done, pushed as 185f3334. Thank you.