From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.bugs Subject: bug#25506: 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list--near-rows) Date: Sat, 21 Jan 2017 15:17:34 -0500 Message-ID: <22659.49630.215179.756533@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=unknown Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1485029915 27598 195.159.176.226 (21 Jan 2017 20:18:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2017 20:18:35 +0000 (UTC) To: 25506@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 21 21:18:29 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cV272-00058N-Qd for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jan 2017 21:18:13 +0100 Original-Received: from localhost ([::1]:33206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV277-0007BW-Nx for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jan 2017 15:18:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV26x-0007BP-T8 for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:18:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV26s-0001Xr-L2 for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cV26s-0001Xn-Gr for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cV26s-00018L-BJ for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bob Rogers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jan 2017 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25506 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.14850298794347 (code B ref -1); Sat, 21 Jan 2017 20:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jan 2017 20:17:59 +0000 Original-Received: from localhost ([127.0.0.1]:37759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cV26p-000182-7N for submit@debbugs.gnu.org; Sat, 21 Jan 2017 15:17:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cV26n-00017q-P2 for submit@debbugs.gnu.org; Sat, 21 Jan 2017 15:17:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV26f-0001SH-BK for submit@debbugs.gnu.org; Sat, 21 Jan 2017 15:17:52 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45809) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cV26f-0001SD-7z for submit@debbugs.gnu.org; Sat, 21 Jan 2017 15:17:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV26a-0007BE-0J for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:17:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV26U-0001P3-Vq for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:17:44 -0500 Original-Received: from 198-0-172-193-static.hfc.comcastbusiness.net ([198.0.172.193]:57818 helo=oxford.modulargenetics.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV26U-0001O6-RG for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2017 15:17:38 -0500 Original-Received: from granada.modulargenetics.com (granada.modulargenetics.com [192.168.23.57]) by oxford.modulargenetics.com (Postfix on SuSE Linux) with ESMTP id 592C660531; Sat, 21 Jan 2017 15:17:34 -0500 (EST) Original-Received: by granada.modulargenetics.com (Postfix on SuSE Linux, from userid 503) id 3C433839E7; Sat, 21 Jan 2017 15:17:34 -0500 (EST) X-Mailer: VM 7.19 under Emacs 26.0.50.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128301 Archived-At: This has been happening for a while now in master, but not in the 25.1 release. To reproduce: 1. emacs -Q 2. "C-x C-b" (which shows the buffer menu with *scratch* and *Messages* in a new window), and "C-x o" (which moves the cursor into this window in front of *scratch*). 3. "b" to invoke Buffer-menu-bury. The line with the *scratch* buffer should move below *Messages*; instead, it is erased and only partly redrawn in the new location, and the error message "Symbol s value as variable is void: tabulated-list--near-rows" is displayed. The patch below restores the expected behavior, but it's a kludge to require buff-menu.el to know so much about tabulated-list.el innards. -- Bob Rogers http://www.rgrjr.com/ ------------------------------------------------------------------------ diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 77b325f..27a00b9 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -595,7 +595,10 @@ Buffer-menu-bury (save-excursion (let ((elt (tabulated-list-delete-entry))) (goto-char (point-max)) - (apply 'tabulated-list-print-entry elt))) + (let ((tabulated-list--near-rows + (list + (tabulated-list-get-entry (point-at-bol 0))))) + (apply 'tabulated-list-print-entry elt)))) (message "Buffer buried.")) (t (tabulated-list-delete-entry) ------------------------------------------------------------------------ In GNU Emacs 26.0.50.1 (x86_64-suse-linux-gnu, GTK+ Version 2.24.31) of 2017-01-21 built on orion Repository revision: 07d15164271270d09464863d7ec2bfce62d65085 Windowing system distributor 'The X.Org Foundation', version 11.0.11601000 System Description: openSUSE 13.2 (Harlequin) (x86_64) Recent messages: Read-Only mode disabled in current buffer Mark set Buffer-menu-bury Buffer buried. [6 times] Mark set Auto-saving... Undo! [14 times] user-error: No further undo information Buffer buried. [2 times] Making completion list... [2 times] Configured using: 'configure --without-dbus --without-gsettings --without-gconf' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t global-eldoc-mode: t mouse-wheel-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 Load-path shadows: /usr/share/emacs/site-lisp/suse-start-vm hides /usr/share/emacs/site-lisp/vm/suse-start-vm /usr/share/emacs/site-lisp/site-start hides /usr/local/share/emacs/site-lisp/site-start /home/rogers/emacs/imported/loaddefs hides /usr/local/share/emacs/26.0.50/lisp/loaddefs Features: (shadow sort mail-extr emacsbug message subr-x puny seq rgr-dired dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils warnings cl-indent misearch multi-isearch jka-compr vc-git diff-mode easy-mmode debug rgr-diff-hacks diff rgr-lisp-hacks rgr-elisp-hacks ilisp-possibilities rgr-abbrev-completion rgr-mouse browse-url ilisp-mouse rgr-x11-hacks ffap-local-url-patch ffap thingatpt url-parse auth-source password-cache url-vars rgr-ffap rgr-hacks etags xref cl-seq project eieio byte-opt bytecomp byte-compile cl-extra help-mode easymenu cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs pcase cl-lib ring time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 122441 7102) (symbols 48 22686 1) (miscs 40 121 311) (strings 32 25910 4873) (string-bytes 1 813969) (vectors 16 17060) (vector-slots 8 497386 2281) (floats 8 257 266) (intervals 56 1147 247) (buffers 976 17) (heap 1024 25223 1302))