From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.bugs Subject: bug#14191: 24.3.50; (buffer-list) returns list with non-current buffer as its first element Date: Fri, 12 Apr 2013 14:34:05 +0200 Message-ID: <87a9p4lygy.fsf@fastmail.fm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365770119 28254 80.91.229.3 (12 Apr 2013 12:35:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 12:35:19 +0000 (UTC) To: 14191@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 12 14:35:23 2013 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 1UQdCL-0003RU-C6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 14:35:21 +0200 Original-Received: from localhost ([::1]:36938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdCK-0006VW-RQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 08:35:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdCG-0006VE-3P for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:35:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQdCA-0008Ah-Vt for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:35:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdCA-0008Ad-SL for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:35:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UQdFw-0006yj-Gf for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:39:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joost Kremers Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Apr 2013 12:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14191 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.136577030726437 (code B ref -1); Fri, 12 Apr 2013 12:39:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Apr 2013 12:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:47054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQdFH-0006rh-KB for submit@debbugs.gnu.org; Fri, 12 Apr 2013 08:38:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49107) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQdF8-0006q0-V4 for submit@debbugs.gnu.org; Fri, 12 Apr 2013 08:38:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQdBK-0007VF-RK for submit@debbugs.gnu.org; Fri, 12 Apr 2013 08:34:20 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:46470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdBK-0007VB-Ol for submit@debbugs.gnu.org; Fri, 12 Apr 2013 08:34:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdBI-0006D4-TX for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQdBG-0007US-Ua for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:34:16 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:56832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdBG-0007Tu-Pt for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 08:34:14 -0400 Original-Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 5F03120DBC for ; Fri, 12 Apr 2013 08:34:13 -0400 (EDT) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 12 Apr 2013 08:34:13 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type; s= mesmtp; bh=Vj/SwaVFb82H+o9lhBCGv2xcIyk=; b=PCtgJJlLv5xpKJGm8Vs5Y Aqd45E4byGCDK0e9l1Jwrv4pEPtS36Pq9H1caNuofJC0Ez05MP2qsdMSZb8m3hy1 xlQK2gKGBO47iZkWobHxAp/bhFnPcbIBRZUNqRR68Dsv/pUcvCSF8/qYQsV6flyx qJU+UHlyqmzvN9yBRWtg+Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=Vj/SwaVFb82H+o9lhBCGv2 xcIyk=; b=Ut0WqV+ozLuiRy5zkhS9FbRjmoCvWS/JWBKu1UQB4Pbs31v92wtgQJ ELGBA3OAmNjU+ywBNwWRxmQi7KIajUUJiPan8cwr/tQmdn9GxpYp0DiZr4nCVtLF rzv3IKcvve72Bjs9yPOtbmCzqfym/W3YARJidGPd1SMSwxtuV2NPw= X-Sasl-enc: VU8UAQLpnjhQYaVb0WG5qNuvQzrAU8znv0HBpTuNcobn 1365770052 Original-Received: from Darkstar.messagingengine.com (unknown [24.134.177.133]) by mail.messagingengine.com (Postfix) with ESMTPA id D123C200149 for ; Fri, 12 Apr 2013 08:34:12 -0400 (EDT) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.x 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:73357 Archived-At: (buffer-list) returns a list of buffers, but the first buffer in the list is not the current buffer. Recipe to reproduce: - start Emacs with `emacs -Q' - M-x ielm RET - at the prompt, type (buffer-list) Output (list of buffers wrapped for better readability): ,---- | *** Welcome to IELM *** Type (describe-mode) for help. | ELISP> (buffer-list) | (# # # | # # | # # #) `---- Although the *ielm* buffer is current, the first buffer in the list is the *scratch* buffer. Doing the same thing in an Emacs Debian (Ubuntu) snapshot from a few weeks ago: ,---- | *** Welcome to IELM *** Type (describe-mode) for help. | ELISP> (buffer-list) | (# # # | # # | # # | #) | | ELISP> (emacs-version) | "GNU Emacs 24.3.50.1 (i686-pc-linux-gnu)\n of 2013-03-19 on gold, modified by Debian" `---- Here, the output of buffer-list has the *ielm* buffer as its first element. (Note, I've included the output of (emacs-version) here: this is obviously *not* the version in which the bug occurs. That version is given below.) Note that I'm just using the *ielm* buffer to show the output of (buffer-list). It has nothing to do with the bug itself. Using `M-x eval RET (buffer-list) RET' gives the same result, as does using (buffer-list) in Elisp. (Which is how I ran into the bug: swbuff.el from http://emhacks.sourceforge.net/ stopped working properly. I traced the problem to this changed behaviour of buffer-list.) HTH Joost Kremers In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.6.0) of 2013-04-11 on fermium, modified by Debian (emacs-snapshot package, version 2:20130410-1~ppa1~quantal1) Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 Configured using: `configure --build i686-linux-gnu --host i686-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp --without-compress-info --with-crt-dir=/usr/lib/i386-linux-gnu/ --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed -znocombreloc'' Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: IELM 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 Recent input: M-x i e l m ( b u f f e r - l i s t ) C-a a C-SPC M-w ( e m a c s - v e r s i o n ) C-SPC M-w C-x C-g M-x e m a c b u r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set End of buffer Mark set Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu ielm pp comint ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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 macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Joost Kremers Life has its moments