[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25506: 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list-

From: Bob Rogers
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

   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

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
             (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."))
In GNU Emacs (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 buried. [6 times]
Mark set
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:

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/site-start hides 
/home/rogers/emacs/imported/loaddefs hides 

(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))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]