From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Re: Elusive buffer(s). Date: Thu, 29 Dec 2011 20:55:50 +0100 Message-ID: <4EFCC5C6.5040601@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325188566 17259 80.91.229.12 (29 Dec 2011 19:56:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 19:56:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: osv@javad.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 20:56:02 2011 Return-path: Envelope-to: geh-help-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 1RgM54-0000Pe-JW for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 20:56:02 +0100 Original-Received: from localhost ([::1]:57966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgM53-0007Ay-Qu for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 14:56:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgM4y-0007At-1S for help-gnu-emacs@gnu.org; Thu, 29 Dec 2011 14:55:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgM4w-0005x1-Or for help-gnu-emacs@gnu.org; Thu, 29 Dec 2011 14:55:55 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:54469) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RgM4w-0005wm-Ba for help-gnu-emacs@gnu.org; Thu, 29 Dec 2011 14:55:54 -0500 Original-Received: (qmail invoked by alias); 29 Dec 2011 19:55:52 -0000 Original-Received: from 62-47-60-213.adsl.highway.telekom.at (EHLO [62.47.60.213]) [62.47.60.213] by mail.gmx.net (mp030) with SMTP; 29 Dec 2011 20:55:52 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+iTzRpR96is41LeiR0oy+P2+cs4CA7Vl+RobIGWV wOUstOFhA9q4X0 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-References: jdi4g6$v50$1@dough.gmane.org X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83270 Archived-At: > That's clear, thanks, but then for the bug report I've mentioned below > the question remains. How pcl-cvs managed to create and _select_ the > *cvs* buffer without it appearing in the frame-local buffer list? Is it > still a bug? Emacs or pcl-cvs one? If you told me which function call is responsible for displaying that buffer, I could try to look what happens. Probably only very few people nowadays use pcl-cvs and that's why no one so far responded to your bug report. > I don't have Emacs 24 yet, but even if I had I can't see right now how I > can use those functions to make a function that switches between two > recent buffers. As I wrote in those bug-report, the function that I use > (and bind to a key) looks like: > > (defun switch-to-previous-buffer () > "Switch to the previous buffer." > (interactive) > (switch-to-buffer (other-buffer (current-buffer)))) > > I also noticed that I never able to select *Info* buffer with this > function. Why? > > BTW, an extended function that cycles between recent N buffers > would be even more cool. > > FYI, it all started when I switched from XEmacs to Emacs. XEmacs has > this function built-in and it's very convenient once one gets used to > it. It's not a very big deal, but my attempt to emulate it in Emacs is > still only semi-successful. `other-buffer' isn't very useful for that. I'd use the first N elements of a list I would construct as in the completely untested snippet below. martin (let (list) (dolist (buffer (buffer-list)) (with-current-buffer buffer (when buffer-display-time (setq list (cons (cons (float-time buffer-display-time) buffer) list))))) (sort list (function (lambda (a b) (> (car a) (car b))))))