From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sergei Organov Newsgroups: gmane.emacs.bugs Subject: bug#5185: 23.1; Elusive *cvs* buffer. Date: Sat, 12 Dec 2009 00:12:17 +0300 Message-ID: <874onxw6z2.fsf@osv.gnss.ru> Reply-To: Sergei Organov , 5185@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260566868 27134 80.91.229.12 (11 Dec 2009 21:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2009 21:27:48 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 11 22:27:41 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NJD1Y-0003yO-Iv for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 22:27:41 +0100 Original-Received: from localhost ([127.0.0.1]:38318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJD1Y-0005uG-1y for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 16:27:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJD1S-0005s0-IJ for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:27:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJD1O-0005qk-Rm for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:27:34 -0500 Original-Received: from [199.232.76.173] (port=42383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJD1O-0005qc-LE for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:27:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43810) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJD1O-0000Di-5m for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:27:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBBLRSRf017645; Fri, 11 Dec 2009 13:27:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nBBLK5xC016851; Fri, 11 Dec 2009 13:20:05 -0800 Resent-Date: Fri, 11 Dec 2009 13:20:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sergei Organov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 11 Dec 2009 21:20:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 5185 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126056594716202 (code B ref -1); Fri, 11 Dec 2009 21:20:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Dec 2009 21:12:27 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBBLCPhj016199 for ; Fri, 11 Dec 2009 13:12:26 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJCmm-0008Kp-OZ for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:12:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJCmi-0008G9-Ox for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:12:24 -0500 Original-Received: from [199.232.76.173] (port=52671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJCmi-0008Fs-JM for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:12:20 -0500 Original-Received: from javad.com ([205.178.136.214]:59449 helo=02aef2d.netsolvps.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJCmi-0006da-AR for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:12:20 -0500 Original-Received: (qmail 28295 invoked from network); 11 Dec 2009 21:12:19 +0000 Original-Received: from unknown (HELO osv.gnss.ru) (89.175.180.246) by javad.com with (AES256-SHA encrypted) SMTP; 11 Dec 2009 21:12:19 +0000 Original-Received: from osv by osv.gnss.ru with local (Exim 4.69) (envelope-from ) id 1NJCmf-00056S-39 for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 00:12:17 +0300 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 11 Dec 2009 16:27:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33501 Archived-At: This bug is not in fact 23.1-specific. It is there, say, in 22.2.1 as well. The cvs-update command from PCL-CVS somehow manages to create and show *cvs* buffer that is not recorded in the buffer-list frame parameter. I.e., the buffer *cvs*, when first created and made current by cvs-update, becomes current in the only visible window in the only frame, yet it is not there in the frame parameter 'buffer-list. This does not happen when there are multiple windows visible in the frame. As cvs-update doesn't seem to touch 'buffer-list directly, there should be a bug in core emacs functions somewhere, I believe. To reproduce the bug one can invoke `cvs-update' over some CVS-controlled directory when single window is visible, then open another frame, switch to *scratch* there, and evaluate (frame-parameter (next-frame) 'buffer-list) The result won't contain *cvs* buffer visible in the original frame. Switching back to original frame and then once again to the new frame will put *cvs* buffer into the list (evaluate the above once again to see it). You can see this in the automatically recorded "Recent messages:" at the end of this bug-report: (# # #) (# # # #) are these two consecutive results of evaluation with switching back and force between those two frames in-between. Even switching to mini-buffer will record *cvs* buffer into 'buffer-list parameter, so one can't even use "M-x eval-expression" to see the problem. This bug, for example, breaks the following function that is intended to always switch between two recent buffers: (defun switch-to-previous-buffer () "Switch to the previous buffer." (interactive) (switch-to-buffer (other-buffer (current-buffer)))) When this function is assigned to a key, e.g.: (global-set-key [(control meta ?l)] 'switch-to-previous-buffer) then pressing this key twice will restore the original buffer, except in case of such elusive *cvs* buffer, as first invocation of this function makes *cvs* the last buffer in the list of buffers, and the next invocation doesn't select it back. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-10-19 on debian-build.int-office-er.priv, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: CVS Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x M-x c v s C-g C-x s y C-x C-e C-x C-e C-x C-b C-x o C-n C-n C-p d C-n d x C-x k C-x o C-x 1 C-x C-e M-x c v s - u p d a t e . . / l d r p p c C-x C-e C-x C-e C-x b m e M * M e s C-SPC C-g M-x e m a c s - b r e p o b u r e p o r t - e m Recent messages: (# # #) goto-history-element: Beginning of history; no preceding item (No files need saving) Running cvs update ... CVS process has completed in *cvs* (# # #) (# # # #) Mark set Quit Making completion list...