GNU bug report logs - #50096
args-out-of-range in redisplay_internal

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 17 Aug 2021 16:09:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #47 received at 50096 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50096 <at> debbugs.gnu.org
Subject: Re: bug#50096: args-out-of-range in redisplay_internal
Date: Thu, 19 Aug 2021 10:17:22 +0300
>> > It's 100% reproducible for me, but I'm not sure how easy would be
>> > to create a test case for "emacs -Q".
>> 
>> I'd appreciate if you could try.
>
> Or at least show how you arrange for auto-hscroll in the mini-window.

Fortunately, finally I found the shortest test case 100% reproducible
in 'emacs -Q'.  The line '(set-buffer (get-buffer-create "*test*"))'
is not necessary, it just causes a slightly different error.
Without 'set-buffer', the error is: (args-out-of-range 1737)
With 'set-buffer', the error is: (args-out-of-range 1737 1737)
Just eval in 'emacs -Q':

(let ((message-truncate-lines t))
  (set-buffer (get-buffer-create "*test*"))
  (message "%s" "Running in foreground: git --no-pager commit -m Redesign tab-bar event processing (bug#41342, bug#41343)\12\12Instead of emitting menu-item keys like [tab-1],\12emit normal mouse events like [mouse-1] and [mouse-2]\12for all mouse clicks issued on the tab-bar.\12\12* lisp/mouse.el (mouse-posn-property): Handle 'tab-bar' posn-area.\12\12* lisp/tab-bar.el (tab--key-to-number): New internal function.\12(tab-bar-handle-mouse): Use tab key to select/close tab.\12(tab-bar-mouse-select-tab, tab-bar-mouse-close-tab)\12(tab-bar-mouse-context-menu): New commands.\12(tab-bar-map): Bind [down-mouse-1] to tab-bar-mouse-select-tab,\12[down-mouse-2] to tab-bar-mouse-close-tab,\12[down-mouse-3] to tab-bar-mouse-context-menu.\12(tab-bar-keymap-cache): Remove.\12(tab-bar-make-keymap): Don't use cache.\12(tab-bar--format-tab): Remove default bindings from menu items.\12(tab-bar-make-keymap-1): Prepend tab-bar-map.\12\12* src/keyboard.c (make_lispy_event): Append event->arg to position\12for Qtab_bar.\12\12* src/term.c (handle_one_term_event): Simplify to set event arg.\12\12* src/w32inevt.c (do_mouse_event): Set emacs_ev->arg to the value\12returned from tty_handle_tab_bar_click.\12\12* src/w32term.c (w32_handle_tab_bar_click): Return value from\12handle_tab_bar_click.\12(w32_read_socket): Set tab_bar_key to value returned from\12w32_handle_tab_bar_click, and set event arg from it.\12\12* src/xdisp.c (handle_tab_bar_click): Instead of emitting event,\12return a list with Qtab_bar and tab caption with text properties\12that contain Qmenu_item with key and binding.\12(tty_handle_tab_bar_click): Simplify to return a list of Qtab_bar,\12key and close_p, instead of emitting event.\12\12* src/xterm.c (handle_one_xevent): Set tab_bar_key to value\12returned from handle_tab_bar_click, and set event arg from it.\12 --only -- :(literal)/tmp/1/emacs/etc/NEWS :(literal)/tmp/1/emacs/lisp/mouse.el :(literal)/tmp/1/emacs/lisp/tab-bar.el :(literal)/tmp/1/emacs/src/dispextern.h :(literal)/tmp/1/emacs/src/keyboard.c :(literal)/tmp/1/emacs/src/term.c :(literal)/tmp/1/emacs/src/termchar.h :(literal)/tmp/1/emacs/src/w32inevt.c :(literal)/tmp/1/emacs/src/w32term.c :(literal)/tmp/1/emacs/src/xdisp.c :(literal)/tmp/1/emacs/src/xterm.c"))




This bug report was last modified 3 years and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.