From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tobias Bading Newsgroups: gmane.emacs.bugs Subject: bug#11556: 24.0.97; Strange behaviour of bury-buffer after desktop-read Date: Fri, 25 May 2012 10:50:47 +0200 Message-ID: <4FBF47E7.1000300@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337935945 12272 80.91.229.3 (25 May 2012 08:52:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 May 2012 08:52:25 +0000 (UTC) To: 11556@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 25 10:52:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SXqFv-0004kt-Mb for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 May 2012 10:52:19 +0200 Original-Received: from localhost ([::1]:33520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqFv-00076X-D9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 May 2012 04:52:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqFn-00075z-9D for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:52:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXqFf-0004he-3Q for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:52:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqFe-0004h6-Uu for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SXqGb-0007GP-Qn for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tobias Bading Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 May 2012 08:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11556 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.133793595427885 (code B ref -1); Fri, 25 May 2012 08:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2012 08:52:34 +0000 Original-Received: from localhost ([127.0.0.1]:42927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SXqGA-0007Fi-5K for submit@debbugs.gnu.org; Fri, 25 May 2012 04:52:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53523) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SXqFp-0007FC-P4 for submit@debbugs.gnu.org; Fri, 25 May 2012 04:52:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXqEl-0004HY-HB for submit@debbugs.gnu.org; Fri, 25 May 2012 04:51:09 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:42939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqEl-0004Gn-Dg for submit@debbugs.gnu.org; Fri, 25 May 2012 04:51:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqEj-0006uk-Gc for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXqEc-0004De-GQ for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:51:04 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:57424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqEc-0004AF-7A for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 04:50:58 -0400 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate01.web.de (Postfix) with ESMTP id 941481AEA1E25 for ; Fri, 25 May 2012 10:50:55 +0200 (CEST) Original-Received: from [172.20.6.71] ([194.115.213.9]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MdLcJ-1SoXjo1SK3-00IVbB; Fri, 25 May 2012 10:50:55 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 X-Provags-ID: V02:K0:rvsSoUBylKBqE0YIjXkLD5AF0B5feab9HPiR6BESD1b OmO0IdXcDaJcZb35TZ/jBDJYeoGd6qwaWq5M8n33JBYdloDmP+ 8jt60oPpPFR1FVgZgBnh5uAGjgi37MwQoQan6pIIShQwoOB8Fm Y3zuCQb1u63HWuc++kRFQiwbyxu2ASLfexxiX3YDb/Oxmz1Wtv YM89NzChOC3JSedI+xmFA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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.13 Precedence: list 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:60346 Archived-At: Hi, I recently switched from Emacs 23 to the current version on the emacs-24 branch (r108014) and bumped into a strange behaviour of bury-buffer at the start of a session. I'm using desktop.el and (global-set-key "\C-xy" 'bury-buffer) in .emacs (because I have a bad memory and like to bury stuff ;-). Every time I start Emacs, I see the correct buffer, i.e. the one I used before I closed Emacs previously. I edit that buffer a bit and bury it. In my case, bury-buffer switches to the wrong buffer. Instead of switching to the buffer next in line (so to speak), bury-buffer switches to what seems to be the last buffer in the list of all buffers. Here's a little example in form of a "emacs -Q" recipe: 3 C-x C-s 3 RET C-x b 2 RET 2 C-x C-s 2 RET C-x b 1 RET 1 C-x C-s 1 RET M-x desktop-save This should leave you with with three saved buffers in the order 1-2-3 and a desktop file. C-x C-b should be able to confirm the buffer order. Now close Emacs, start a fresh one and M-x desktop-read your desktop file. You should see buffer 1. So far, so good. Now M-x bury-buffer. I'd expect to see buffer 2 now, instead Emacs switched to buffer 3. If you C-x C-b now, you'll see that the buffer list says that buffer 2 is up front, although you're staring at buffer 3. This bug hits you only at the very beginning of a session. I can continue to bury buffers using C-x y and end up with buffers apparently from the end of the buffer list, instead of from the top. But some actions fix this, like switching a buffer once using C-x b. Afterwards the bug is nowhere to be found. The last few days I started work with a strange I-could-swear-that-wasnt-the-file-I-was-working-on-yesterday-before-I-went-home feeling :-D. Any ideas on how to get rid of that feeling are very welcome :-). Kind regards, Tobias --- In GNU Emacs 24.0.97.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-05-25 on pen-bld-274apcl Windowing system distributor `The X.Org Foundation', version 11.0.10706000 Configured using: `configure '--prefix=...'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)