From unknown Fri Jun 20 07:15:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25506 <25506@debbugs.gnu.org> To: bug#25506 <25506@debbugs.gnu.org> Subject: Status: 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list--near-rows) Reply-To: bug#25506 <25506@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:15:22 +0000 retitle 25506 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list-= -near-rows) reassign 25506 emacs submitter 25506 Bob Rogers severity 25506 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 21 15:17:59 2017 Received: (at submit) by debbugs.gnu.org; 21 Jan 2017 20:17:59 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 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 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 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 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 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) Received: by granada.modulargenetics.com (Postfix on SuSE Linux, from userid 503) id 3C433839E7; Sat, 21 Jan 2017 15:17:34 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=unknown Content-Transfer-Encoding: 7bit Message-ID: <22659.49630.215179.756533@gargle.gargle.HOWL> Date: Sat, 21 Jan 2017 15:17:34 -0500 From: Bob Rogers To: bug-gnu-emacs@gnu.org Subject: 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list--near-rows) 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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)) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 22 00:28:33 2017 Received: (at 25506) by debbugs.gnu.org; 22 Jan 2017 05:28:33 +0000 Received: from localhost ([127.0.0.1]:37906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVAhd-0005QC-Cx for submit@debbugs.gnu.org; Sun, 22 Jan 2017 00:28:33 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVAha-0005Px-6h for 25506@debbugs.gnu.org; Sun, 22 Jan 2017 00:28:31 -0500 Received: by mail-pg0-f68.google.com with SMTP id 75so10587921pgf.3 for <25506@debbugs.gnu.org>; Sat, 21 Jan 2017 21:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8+a+h1WGq9TqjBMuHhuggpnxbasoiIJs+sGRBerKx8U=; b=DuZ6eO9b/obsJ0qUkvOI/0zLB5OsWlDXpwN5BcuNW8GGHX7KQE4iYPQoGZQiZyhR4t l1rxzLPLQ3U0bQltTLSR0BWw3VVMOK2o7+JSsfWO1z9l0r0I+gyJZ+LzPw0mwa+K6R6/ G6ea/Lm7ZJKkixyCLkzXCc5gePzUuzBIjaHYk7fGtcL+00a/C1+KaLX62q9phLpEaPoI olwL71Jfj2BRMpXWV887iGRhf3v28vC4T7boasXEoVJl765eorgCcovQ84CAQVnGcqf8 3TddUDV5DkFkHf2rjdKoDtyoc0rQG3OG0ugla77QCqpaft+vrqMxJgZhhNImeIsZ2wCE Acvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=8+a+h1WGq9TqjBMuHhuggpnxbasoiIJs+sGRBerKx8U=; b=n9Z4ygQTh44s/k5ObZqTmb4Kj8/T1x7/UJaEGJK23jQQZJ1CWWA/dGiKh+/C7AuulI Qg1npPzlD3GvLnBzC/Y0nkofFlnfT/BtGneQJjeMlgntXcuiQBFXGm7F+WDED2KXYxdq Ki2DqfEacWL+F+28hj8CeXxJ0XrZ97wrdbyq6HK6JDf5yHl90fshAKTayvG7dE3Fd7ch ghHVffP8HUDF9RZcefmDJpqNqoWW/1g+u60KFjMyxVevK6Qo7kZKDs30Hd8U1hxfIqcw Cha9zIBlhcH9l4DbEiISnsXT+8FP2LuTwDhrKHu6alAnRDmP7hSRGKDzgaRqXp9g4BW+ Lqbg== X-Gm-Message-State: AIkVDXLXOw6dJ7Kf1k4eLmYYTHN++pTYNnRfqIzttw4KfTq6B7A4gTAp2FnZvCMRlI8oJA== X-Received: by 10.99.245.21 with SMTP id w21mr25688253pgh.117.1485062904253; Sat, 21 Jan 2017 21:28:24 -0800 (PST) Received: from calancha-pc (33.94.100.220.dy.bbexcite.jp. [220.100.94.33]) by smtp.gmail.com with ESMTPSA id b83sm27393403pfe.12.2017.01.21.21.28.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Jan 2017 21:28:23 -0800 (PST) From: Tino Calancha To: Bob Rogers Subject: Re: bug#25506: 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list--near-rows) References: <22659.49630.215179.756533@gargle.gargle.HOWL> Date: Sun, 22 Jan 2017 14:28:20 +0900 In-Reply-To: <22659.49630.215179.756533@gargle.gargle.HOWL> (Bob Rogers's message of "Sat, 21 Jan 2017 15:17:34 -0500") Message-ID: <87h94rmznv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25506 Cc: 25506@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Bob Rogers writes: > 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. Thank you very much for report this bug! Such `tabulated-list--near-rows' must be bound before a call to `tabulated-list-print-col', because the latter use the former via `tabulated-list--col-local-max-widths'. > 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. I agree with you. The variable `tabulated-list--near-rows' is intended just for internal use in tabulated-list.el. I am going to apply the following patch: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >From ade0652cc2a7103cd910accda8165ff8ee7c719f Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sun, 22 Jan 2017 14:23:45 +0900 Subject: [PATCH] Prevent to use tabulated-list--near-rows unbound * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Make sure 'tabulated-list--near-rows' is bound before use it (Bug#25506). --- lisp/emacs-lisp/tabulated-list.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index eadf79ffd4..b6b49b1bfa 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el @@ -412,8 +412,13 @@ tabulated-list-print-entry (inhibit-read-only t)) (if (> tabulated-list-padding 0) (insert (make-string x ?\s))) - (dotimes (n ncols) - (setq x (tabulated-list-print-col n (aref cols n) x))) + (let ((tabulated-list--near-rows ; Bind it if not bound yet (Bug#25506). + (or (bound-and-true-p tabulated-list--near-rows) + (list (or (tabulated-list-get-entry (point-at-bol 0)) + cols) + cols)))) + (dotimes (n ncols) + (setq x (tabulated-list-print-col n (aref cols n) x)))) (insert ?\n) ;; Ever so slightly faster than calling `put-text-property' twice. (add-text-properties -- 2.11.0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.6) of 2017-01- Repository revision: ad29e145b16cf2966e3a9df884cbc234f1ae3e51 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 22 00:33:43 2017 Received: (at 25506-done) by debbugs.gnu.org; 22 Jan 2017 05:33:43 +0000 Received: from localhost ([127.0.0.1]:37910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVAmd-0005Yr-1V for submit@debbugs.gnu.org; Sun, 22 Jan 2017 00:33:43 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:35754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVAmb-0005Ye-Nh for 25506-done@debbugs.gnu.org; Sun, 22 Jan 2017 00:33:42 -0500 Received: by mail-pg0-f41.google.com with SMTP id 194so35192145pgd.2 for <25506-done@debbugs.gnu.org>; Sat, 21 Jan 2017 21:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=NR1NV4D5bX3vO0E8LnHPi2wyhQAAehqMwXfwWrCC2Jo=; b=eTwR8wEdKwfVJGQaMwZ9sgE07xh/a4gunBqHOKgfrt0ZbKRU/y1Sn2VoNc3uFfII3K oBgUNjSGjQvZFS3G0XRYiH9UaMt82Plbm4FFmiYHcXGn8nFFNukHBhYkBLXZfKDNNbvz oa7OSgVThdWEToy+ljthiQrU9Mwcy80vtV+QYRkkhS3gGPAHbZkvJCVmL71SEeMvgRts JLwcU8LIfczoEZtfElQF/hskgHxK2ArZCNVYWPd/nbfDUaGeQ8gsxrUU6InjVmiHCXWP stfQDCDN8qxE3S7Xa+Y4J+rclNQA7rfjUKELjuyWwInAR4IGI4CC3EUV5ffA9GFpOapc Z4aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NR1NV4D5bX3vO0E8LnHPi2wyhQAAehqMwXfwWrCC2Jo=; b=Ay5eZnstH5aWy6yupLDWZEm2dzvsJIUWTuSPbq8yvKgn811rnK1jDubaBudockWj9V KtzxmEHCPm6cUAc0rMeLxuIf1gMKDjRH9SM1x71NTyAWN+8cVUsSvSN9Y5XtBHNdQi4U Ub6Pi3EqHyARyqtFqzYx7pkCn1cwVBL4bHmNXuksjnmf+Nc6RICKJkwvTFH70z9fJnB3 t6emNPcobZhvxGGbPbn4Tod7oxXT0q5giE0GZaUp15Sqh4NnmBA/NjqA3b6nteTGDnXL vhwhN3pDBnlvrS6DAtVSwWzUFGD05H0QziIqJ5ERU2icoQm5jimquEcP0iPn0Mjq4Cgq ytRQ== X-Gm-Message-State: AIkVDXIA0x5Rr9z5cYXIodNv4szm+PbfqE3sqK6tmj6NSNU3zgwS9YEBvM/Ok7U+RoSlPw== X-Received: by 10.98.211.220 with SMTP id z89mr24991547pfk.3.1485063215969; Sat, 21 Jan 2017 21:33:35 -0800 (PST) Received: from calancha-pc (33.94.100.220.dy.bbexcite.jp. [220.100.94.33]) by smtp.gmail.com with ESMTPSA id n70sm27365087pfg.34.2017.01.21.21.33.34 for <25506-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Jan 2017 21:33:35 -0800 (PST) From: Tino Calancha To: 25506-done@debbugs.gnu.org Subject: Re: bug#25506: 26.0.50; Buffer-menu-bury gets (void-variable tabulated-list--near-rows) References: <22659.49630.215179.756533@gargle.gargle.HOWL> <87h94rmznv.fsf@gmail.com> Date: Sun, 22 Jan 2017 14:33:31 +0900 In-Reply-To: <87h94rmznv.fsf@gmail.com> (Tino Calancha's message of "Sun, 22 Jan 2017 14:28:20 +0900") Message-ID: <87y3y3y7ys.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25506-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Tino Calancha writes: > Bob Rogers writes: > >> 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. > Thank you very much for report this bug! > Such `tabulated-list--near-rows' must be bound before > a call to `tabulated-list-print-col', because the latter use the former > via `tabulated-list--col-local-max-widths'. >> 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. > I agree with you. The variable `tabulated-list--near-rows' is intended > just for internal use in tabulated-list.el. > I am going to apply the following patch: > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >>>From ade0652cc2a7103cd910accda8165ff8ee7c719f Mon Sep 17 00:00:00 2001 > From: Tino Calancha > Date: Sun, 22 Jan 2017 14:23:45 +0900 > Subject: [PATCH] Prevent to use tabulated-list--near-rows unbound > > * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): > Make sure 'tabulated-list--near-rows' is bound before use it (Bug#25506). > --- > lisp/emacs-lisp/tabulated-list.el | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el > index eadf79ffd4..b6b49b1bfa 100644 > --- a/lisp/emacs-lisp/tabulated-list.el > +++ b/lisp/emacs-lisp/tabulated-list.el > @@ -412,8 +412,13 @@ tabulated-list-print-entry > (inhibit-read-only t)) > (if (> tabulated-list-padding 0) > (insert (make-string x ?\s))) > - (dotimes (n ncols) > - (setq x (tabulated-list-print-col n (aref cols n) x))) > + (let ((tabulated-list--near-rows ; Bind it if not bound yet (Bug#25506). > + (or (bound-and-true-p tabulated-list--near-rows) > + (list (or (tabulated-list-get-entry (point-at-bol 0)) > + cols) > + cols)))) > + (dotimes (n ncols) > + (setq x (tabulated-list-print-col n (aref cols n) x)))) > (insert ?\n) > ;; Ever so slightly faster than calling `put-text-property' twice. > (add-text-properties Pushed to master branch as commit ade0652cc2a7103cd910accda8165ff8ee7c719f From unknown Fri Jun 20 07:15:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 19 Feb 2017 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator