From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#32420: 26.1.50; Ibuffer: Detect correctly the buffers running a process Date: Sun, 12 Aug 2018 17:21:36 +0900 (JST) Message-ID: References: <8736vkn92h.fsf@calancha-pc.dy.bbexcite.jp> <83o9e8lu34.fsf@gnu.org> <83in4gls8n.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1534062010 13713 195.159.176.226 (12 Aug 2018 08:20:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2018 08:20:10 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 32420@debbugs.gnu.org, Tino Calancha To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 12 10:20:06 2018 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 1folbZ-0003Pz-Nl for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Aug 2018 10:20:05 +0200 Original-Received: from localhost ([::1]:34502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1folde-0001fo-Gd for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Aug 2018 04:22:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foldX-0001fW-Db for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2018 04:22:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foldS-0002FR-BJ for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2018 04:22:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foldS-0002FL-5v for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2018 04:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1foldR-0007YA-WB for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2018 04:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Aug 2018 08:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32420 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32420-submit@debbugs.gnu.org id=B32420.153406210728998 (code B ref 32420); Sun, 12 Aug 2018 08:22:01 +0000 Original-Received: (at 32420) by debbugs.gnu.org; 12 Aug 2018 08:21:47 +0000 Original-Received: from localhost ([127.0.0.1]:48598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foldC-0007Xe-Ra for submit@debbugs.gnu.org; Sun, 12 Aug 2018 04:21:47 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:45931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foldB-0007XS-7Q for 32420@debbugs.gnu.org; Sun, 12 Aug 2018 04:21:45 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id f12-v6so11617783wrv.12 for <32420@debbugs.gnu.org>; Sun, 12 Aug 2018 01:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=hTEd+2JUpOxbisXl3HPZ9ObkUqRtFVgJoNRxzORJHiU=; b=oIbVoOkGAFQ/7xEMMuVLTv6N+a1Mzzu7VPCufI+eEsiE8AA7VGOMIQU1AJb+kg11Ie 0jAlQ7i4r+P9TyxN9zoyaGpAhWwFbVPVymHwAmburuEr+aE457oWbY1jG0J5cvlZIiBD /Iq5QySVQj++OcTBi4cb7noS6x8P9uW/4WgS/2z64AV8mhprz1KEGfGaF2JY15mSIJ/M 1Jizx2VI63wbs/KC81K0qRnzfxypM03Wa67mcXwuwvhzlX3aT9uoG0vV4CTSeNW5SDMy xyJKmBFg4Ikb5fQ5cqZznGM3igt9WIZR3sv1oSB5zDbGfw+LQyvYgf6CcW4f1nfnwZVb Em3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=hTEd+2JUpOxbisXl3HPZ9ObkUqRtFVgJoNRxzORJHiU=; b=fRV6ZTheufrzPchMM/CFS6tQzj05XErUN9SMyyyqxsnOgvFdAhEHVqEkhMk/zWUIB7 ZRL6LYCSRwCXSm5cpPQn6yinT8H+R6AOcqhz9Tq3Ts4ITG3sakC7anWvd6+/eaR2EI3s otHR4y4HrKTo7cdVYvpKXfwkYvQfQ7mwFxSpmTVO/zuYFEXq7lYwcavIAcNXGHzUnFVB SepsTqZxteXxRjk9ER6Z/lJo5x1661rf+PdRUQKOOgz7UsFGAVtHqnRjxLWYjt+dc29a y+GJyaRJLwhbAU/HHQNiIghnD18qRqLhlU+m9lwBqVEx4GU9/M1s8/8c8G2PIBVF6RyJ 5ozA== X-Gm-Message-State: AOUpUlHTMZl5IeL3i3bpIB3LFfUWPVuTkDFl8PCbSSd3riqqOlF93ElZ RAv58mCDEYJSfUvMGIMNQfY= X-Google-Smtp-Source: AA+uWPwCzBvJJtnt5q7GRgys4U6KoS/ECQHYPV9AN94NXTHfqDc4o82E94Ko3Wm4KDarCkNxsJxWyw== X-Received: by 2002:adf:df04:: with SMTP id y4-v6mr4389341wrl.284.1534062099059; Sun, 12 Aug 2018 01:21:39 -0700 (PDT) Original-Received: from calancha-pc.dy.bbexcite.jp (63.red-81-37-214.dynamicip.rima-tde.net. [81.37.214.63]) by smtp.gmail.com with ESMTPSA id n14-v6sm4025758wmc.14.2018.08.12.01.21.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Aug 2018 01:21:38 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc.dy.bbexcite.jp In-Reply-To: <83in4gls8n.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:149462 Archived-At: >>> How do you see it reporting a process? What I see is that it reports >>> a pseudo-file for it. Am I missing something? >> Attached 1 picture. >> It shows at the bottom the line: >> 3 buffers 2515909 1 file, 1 process > > Ah, okay. So, to fix this, isn't it better to see if the current > buffer is a process-buffer of some process in process-list? It's a bit tricky code. When such thing run, the summarizer, I believe the current buffer is *Ibuffer*; you receive 'strings': they are the rows in column 'Filename/Process'. There is no direct way to connect each string with its buffer. The original code make the assumption that if 'string' matches something like (foobar) then it corresponds to a buffer running a process. That assumption is wrong, for instance, in several info buffers. Because you first create all columns, and the summarizer runs at the end, I thought is simple to add the process as a text property for those buffers having a process. Then you don't need any assumption on 'string': you just check whether if 'string' has a property 'ibuffer-process' or not.