From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zachary Kanfer Newsgroups: gmane.emacs.bugs Subject: bug#9761: proposed list-buffers change -- revert buffer if point is in *Buffer List* buffer Date: Sat, 15 Oct 2011 00:22:43 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5215725cbcc7d04af4eba8a X-Trace: dough.gmane.org 1318652614 26423 80.91.229.12 (15 Oct 2011 04:23:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2011 04:23:34 +0000 (UTC) To: 9761@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 15 06:23:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REvmU-00028O-D0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Oct 2011 06:23:30 +0200 Original-Received: from localhost ([::1]:36308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REvmT-0006rk-KZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Oct 2011 00:23:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REvmQ-0006rS-Lh for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:23:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REvmP-0000wA-Lt for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:23:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REvmP-0000w6-HO for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:23:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1REvn0-0005vO-Vn for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:24:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zachary Kanfer Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Oct 2011 04:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131865263322754 (code B ref -1); Sat, 15 Oct 2011 04:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2011 04:23:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REvmr-0005ux-0A for submit@debbugs.gnu.org; Sat, 15 Oct 2011 00:23:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REvmo-0005ul-I4 for submit@debbugs.gnu.org; Sat, 15 Oct 2011 00:23:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REvm6-0000v8-S9 for submit@debbugs.gnu.org; Sat, 15 Oct 2011 00:23:07 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:55987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REvm6-0000v4-Qg for submit@debbugs.gnu.org; Sat, 15 Oct 2011 00:23:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REvm5-0006rI-Pe for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REvm4-0000us-LS for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:23:05 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:36634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REvm4-0000um-ID for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2011 00:23:04 -0400 Original-Received: by ggdk5 with SMTP id k5so2006314ggd.0 for ; Fri, 14 Oct 2011 21:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=NwQfOSk+yAdFbZuVMEyRBhSw2zyQczlFmASQ4Yuizs0=; b=oOBTTQNOKondNtsJUs97P+6PRJ5KI4wUYHkq0fRsb2VAO3n7tnqorOQiVmbiBkkCnI KLjmHDjLBjNqN/fghzw6Rwttgrp9ilIMOTHTHZ/9xgiwxpMJmut7VsGggQ6ZGkO7ItgM yLeXzGV1IdaK2e4p7+hmmeZ8v7b0ilqA+5ghE= Original-Received: by 10.68.26.168 with SMTP id m8mr21355005pbg.29.1318652583070; Fri, 14 Oct 2011 21:23:03 -0700 (PDT) Original-Received: by 10.142.212.16 with HTTP; Fri, 14 Oct 2011 21:22:43 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 15 Oct 2011 00:24:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52662 Archived-At: --bcaec5215725cbcc7d04af4eba8a Content-Type: text/plain; charset=ISO-8859-1 The command list-buffers always puts point at the end of the buffer. This patch changes the list-buffers command to simply revert the buffer if point is inside the *Buffer List* buffer. Since point is kept at the same line, the user can more easily see what changes have occurred. -Zachary Kanfer === modified file 'lisp/buff-menu.el' *** lisp/buff-menu.el 2011-09-18 20:43:20 +0000 --- lisp/buff-menu.el 2011-10-15 03:59:12 +0000 *************** Non-null optional arg FILES-ONLY means m *** 652,658 **** For more information, see the function `buffer-menu'." (interactive "P") ! (display-buffer (list-buffers-noselect files-only))) (defconst Buffer-menu-short-ellipsis ;; This file is preloaded, so we can't use char-displayable-p here --- 652,661 ---- For more information, see the function `buffer-menu'." (interactive "P") ! (if (string= (buffer-name) ! "*Buffer List*") ! (revert-buffer) ! (display-buffer (list-buffers-noselect files-only)))) (defconst Buffer-menu-short-ellipsis ;; This file is preloaded, so we can't use char-displayable-p here --bcaec5215725cbcc7d04af4eba8a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The command list-buffers always puts point at the end of the buffer. This p= atch changes the list-buffers command to simply revert the buffer if point = is inside the *Buffer List* buffer. Since point is kept at the same line, t= he user can more easily see what changes have occurred.
=A0-Zachary Kanfer


=3D=3D=3D modified file 'lisp/buff-menu.e= l'
*** lisp/buff-menu.el=A0=A0=A0 2011-09-18 20:43:20 +0000
--- l= isp/buff-menu.el=A0=A0=A0 2011-10-15 03:59:12 +0000
*************** Non-= null optional arg FILES-ONLY means m
*** 652,658 ****
=A0
=A0 For more information, see the function `buf= fer-menu'."
=A0=A0=A0 (interactive "P")
!=A0=A0 (d= isplay-buffer (list-buffers-noselect files-only)))
=A0
=A0 (defconst= Buffer-menu-short-ellipsis
=A0=A0=A0 ;; This file is preloaded, so we can't use char-displayable-p= here
--- 652,661 ----
=A0
=A0 For more information, see the func= tion `buffer-menu'."
=A0=A0=A0 (interactive "P")
!= =A0=A0 (if (string=3D (buffer-name)
!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "*Buffer List*")!=A0=A0=A0=A0=A0=A0 (revert-buffer)
!=A0=A0=A0=A0 (display-buffer (lis= t-buffers-noselect files-only))))
=A0
=A0 (defconst Buffer-menu-shor= t-ellipsis
=A0=A0=A0 ;; This file is preloaded, so we can't use char= -displayable-p here

--bcaec5215725cbcc7d04af4eba8a--