From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Ibuffer: w and B default to buffer at current line Date: Tue, 13 Sep 2016 23:41:04 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1473835353 10276 195.159.176.226 (14 Sep 2016 06:42:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2016 06:42:33 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1 (darwin) Cc: Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 14 08:42:28 2016 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 1bk3tp-0001p9-LY for ged-emacs-devel@m.gmane.org; Wed, 14 Sep 2016 08:42:25 +0200 Original-Received: from localhost ([::1]:53416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk3tn-0000yZ-SK for ged-emacs-devel@m.gmane.org; Wed, 14 Sep 2016 02:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk3tg-0000yJ-Vd for emacs-devel@gnu.org; Wed, 14 Sep 2016 02:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk3tc-0006r2-0W for emacs-devel@gnu.org; Wed, 14 Sep 2016 02:42:15 -0400 Original-Received: from mail-pa0-f54.google.com ([209.85.220.54]:36370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk3tb-0006qy-Qu for emacs-devel@gnu.org; Wed, 14 Sep 2016 02:42:11 -0400 Original-Received: by mail-pa0-f54.google.com with SMTP id id6so2364784pad.3 for ; Tue, 13 Sep 2016 23:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version; bh=xrgmTYWfPz6cy9Ofxc+gWTNvqmmPSorNPZs05kZZjtE=; b=VWr7INXf9qN8RugrmuRXv2TdeRMjic613sjdCSOIM3Ktv6LJqTtaThPhd86QBw+h+z M8YAStsQrbP/yZ/LOn45V7JMVCzaBK/B3e7V9zJszYiYRsNIkjE5aOY+CbCPq81MhEPV PL4Y2OO+yu5M1i3sj2Bo6dgnurnGmpmMrNPok1FVx3DUOCJE8yS2K2VtoTkRYpGg77I/ krq5oNTqhx/aLI3+gPTl8FQ4Alrs+jY4Od4zvzSoUn99q6I/71yyXj+pXF8aoTEFU1lm sdYNf93aDmBgummoyesA+9xboDjuBVdyPs7F5rFWtoPuSXZgJ7VJ6t86jAT5APgNzv6g efAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version; bh=xrgmTYWfPz6cy9Ofxc+gWTNvqmmPSorNPZs05kZZjtE=; b=Taew5uyJu8Z4srB4roxlPFnumzukg457doHa1ykkfo7JbSlxS/R1SlCZG3VUrTbSLD OBNXYBt/KJmSJuGHMRCwOaCNZR/d6TaVLEhH7k6JoMs1zswtlWGH3Z9s/uRZBx90y+Dl lr7kB5cRwQzJh0vQAQ6T+A/dQfa2FEP0IDVdQAnjq65Hly8XwXkq/0bZcSd0ed/SSHyH dEq72UkD9CTEv54oSfrTLGSrnrIkkIbCJwtyurSRdTnFi6OVuaKR9wUI7NV5wODjFdcz kNrimQnlbvREWm6y3qf3ZRx8/OuigX1ek8osO3CkaNDMujm479kqb+1xMO2257JAnNo1 SHFA== X-Gm-Message-State: AE9vXwPIbkqKqqP6K7npdqFvvRE3BDlAA7IytlKlrAnSn+/JomV8HmmdnplFjQ6ljBg7OQ== X-Received: by 10.67.23.4 with SMTP id hw4mr1666051pad.7.1473835271020; Tue, 13 Sep 2016 23:41:11 -0700 (PDT) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id t21sm35256579pfa.71.2016.09.13.23.41.08 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 13 Sep 2016 23:41:09 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 0DA0A25076EF; Tue, 13 Sep 2016 23:41:08 -0700 (PDT) In-Reply-To: (Tino Calancha's message of "Wed, 14 Sep 2016 14:35:12 +0900 (JST)") Mail-Followup-To: Tino Calancha , Emacs developers X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.54 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:207428 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >>>>> "TC" =3D=3D Tino Calancha writes: TC> * lisp/ibuffer.el (ibuffer-get-marked-buffers): TC> Add an optional parameter BUFFER-AT-LINE: if non-nil and TC> there are no marked buffers, return the buffer at current line. Hi Tino, I don't like this part of your proposed change. The name of the function is `ibuffer-get-marked-buffers'. Adding a new argument to change the meaning of the function is not a good idea. Instead, there should be a new function `ibuffer-get-buffer-at-point' or so= me such, to reflect the meaning you wish to express. There may even already be such a function, I'm not all that familiar with ibuffer.el. TC> Ibuffer: 'w' and 'B' default to the buffer at current line. TC> This is similar as dired-copy-filename-as-kill. TC> Before this patch, when there are no marked buffers TC> these commands signal an error: This part sounds reasonable to me. I like the idea of defaulting behavior w= hen there is no current selection or region. =2D-=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBCgAGBQJX2PEAAAoJEMFE2PTxn+YweZgL/2+mJ0Su6WJ9C7iLT6bSeyer 97R7jBZzvRy0LeH6cXLWLsoP5x/ZXlEq7nxvYlAnF5sPnMKeaLxHdpYtlZvVmPYD i1I5FPLmwXeaVq4KB2d73WtYYLEZtIMkULe2DOW6G4h3jUS7ofg5FrGGyx8WI5KM L0ShAZyNzK4SK92uBcrQ3Z+6vXKX/Y/eacd0P0/0PSA5X/RiZD5jhH81FVf04iVx oCJZGtbkLB+8aMPsN55bgwKP7pvw7OOqtcBETp3CrnQb/oxHKR1z+aytJpaPGzdq ljxyuefJNJuVtMmpK32CC2zcnjNjOI+iMVI0SD4y+NQGNEES2y+J7ly8Dno5sia9 5ePHnNY06tUaJ6e2OhtTKjqzPAmITdQSKx/7pqICy59p2ot4NLJQwRZrvlrBWgjW OwJhuHLCVaMABYNwMvUPDN16bvYzGj5wuGWX6C3ktFot39LkyoWGM5PA6+7WApH+ b8fQtW7LRhqNpXCTGoXPi8Uc75PRjMkycS2189Jngg== =k9Fn -----END PGP SIGNATURE----- --=-=-=--