all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#37623: 27.0.50; describe-key fails in tab-bar-mode
@ 2019-10-04 14:24 Alex Branham
  2019-10-07 20:34 ` Juri Linkov
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Branham @ 2019-10-04 14:24 UTC (permalink / raw)
  To: 37623

Hi, and thanks for all the work on tab-bar-mode!

It appears as though describe-key fails when the mouse is pressed on a
non-currently-active tab in the tab-bar:

emacs -Q
M-x tab-bar-mode
C-x b RET
C-h k (then click the mouse button on a non-currently-active tab):

run-hook-with-args: Wrong type argument: symbolp, #[0 "ÁÀ!‡" [(tab
(name . "*scratch*") (time . 1570198894) (wc . #<window-configuration>)
(ws ((min-height . 4) (min-width . 10) (min-height-ignore . 2)
(min-width-ignore . 6) (min-height-safe . 1) (min-width-safe . 2)
(min-pixel-height . 68) (min-pixel-width . 80) (min-pixel-height-ignore
. 34) (min-pixel-width-ignore . 48) ...) leaf (pixel-width . 1600)
(pixel-height . 714) (total-width . 200) (total-height . 42)
(normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (selected
. t) (hscroll . 0) (fringes 8 8 nil nil) (margins nil) (scroll-bars nil
2 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 146) ...)))
tab-bar-select-tab] 2 nil nil]Cannot find image file
‘/build/source/etc/images/tabs/close.xpm’

Thanks,
Alex

In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10)
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: NixOS 19.03.173553.6420e2649fa (Koi)

Configured using:
 'configure
 --prefix=/nix/store/79qhpwxjkiczd5zbhqlr183dq7340rwz-emacs-27.0.50
 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft
 CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON
PDUMPER GMP

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Memory information:
((conses 16 738894 80787)
 (symbols 48 56491 67)
 (strings 32 210994 11090)
 (string-bytes 1 6887125)
 (vectors 16 112908)
 (vector-slots 8 2382739 96402)
 (floats 8 1127 347)
 (intervals 56 18313 1652)
 (buffers 1000 47))





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37623: 27.0.50; describe-key fails in tab-bar-mode
  2019-10-04 14:24 bug#37623: 27.0.50; describe-key fails in tab-bar-mode Alex Branham
@ 2019-10-07 20:34 ` Juri Linkov
  2019-10-07 21:18   ` Alex Branham
  0 siblings, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2019-10-07 20:34 UTC (permalink / raw)
  To: Alex Branham; +Cc: 37623

> It appears as though describe-key fails when the mouse is pressed on a
> non-currently-active tab in the tab-bar:
>
> emacs -Q
> M-x tab-bar-mode
> C-x b RET
> C-h k (then click the mouse button on a non-currently-active tab):
>
> run-hook-with-args: Wrong type argument: symbolp, #[0 "ÁÀ!‡" [(tab
> (name . "*scratch*") (time . 1570198894) (wc . #<window-configuration>)
> (ws ((min-height . 4) (min-width . 10) (min-height-ignore . 2)
> (min-width-ignore . 6) (min-height-safe . 1) (min-width-safe . 2)
> (min-pixel-height . 68) (min-pixel-width . 80) (min-pixel-height-ignore
> . 34) (min-pixel-width-ignore . 48) ...) leaf (pixel-width . 1600)
> (pixel-height . 714) (total-width . 200) (total-height . 42)
> (normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (selected
> . t) (hscroll . 0) (fringes 8 8 nil nil) (margins nil) (scroll-bars nil
> 2 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 146) ...)))
> tab-bar-select-tab] 2 nil nil]Cannot find image file
> ‘/build/source/etc/images/tabs/close.xpm’

From what I see, you clicked the mouse button on the tab close button, right?

Then I can reproduce the same problem, and it seems the bug is in
Help mode that can't handle lambda as a function, it supports only
function symbols.  A complete backtrace:

Debugger entered--Lisp error: (wrong-type-argument symbolp (lambda nil (interactive) (tab-bar-close-tab 1)))
  help-fns--globalized-minor-mode((lambda nil (interactive) (tab-bar-close-tab 1)))
  run-hook-with-args(help-fns--globalized-minor-mode (lambda nil (interactive) (tab-bar-close-tab 1)))
  describe-function-1((lambda nil (interactive) (tab-bar-close-tab 1)))
  describe-key((([(tab-bar) C-current-tab] . [(tab-bar) C-current-tab])))
  funcall-interactively(describe-key (([(tab-bar) C-current-tab] . [(tab-bar) C-current-tab])))
  call-interactively(describe-key nil nil)
  command-execute(describe-key)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37623: 27.0.50; describe-key fails in tab-bar-mode
  2019-10-07 20:34 ` Juri Linkov
@ 2019-10-07 21:18   ` Alex Branham
  2019-10-09 20:43     ` Juri Linkov
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Branham @ 2019-10-07 21:18 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 37623

On Mon 07 Oct 2019 at 23:34, Juri Linkov <juri@linkov.net> wrote:

>> It appears as though describe-key fails when the mouse is pressed on a
>> non-currently-active tab in the tab-bar:
>>
>> emacs -Q
>> M-x tab-bar-mode
>> C-x b RET
>> C-h k (then click the mouse button on a non-currently-active tab):
>>
>> run-hook-with-args: Wrong type argument: symbolp, #[0 "ÁÀ!‡" [(tab
>> (name . "*scratch*") (time . 1570198894) (wc . #<window-configuration>)
>> (ws ((min-height . 4) (min-width . 10) (min-height-ignore . 2)
>> (min-width-ignore . 6) (min-height-safe . 1) (min-width-safe . 2)
>> (min-pixel-height . 68) (min-pixel-width . 80) (min-pixel-height-ignore
>> . 34) (min-pixel-width-ignore . 48) ...) leaf (pixel-width . 1600)
>> (pixel-height . 714) (total-width . 200) (total-height . 42)
>> (normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (selected
>> . t) (hscroll . 0) (fringes 8 8 nil nil) (margins nil) (scroll-bars nil
>> 2 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 146) ...)))
>> tab-bar-select-tab] 2 nil nil]Cannot find image file
>> ‘/build/source/etc/images/tabs/close.xpm’
>
> From what I see, you clicked the mouse button on the tab close button,
> right?

Anywhere in a non-active tab, not just on the tab close button.

The message about the image file not being found is unrelated (probably,
anyway), seems to be another bug or issue with my build. I get *tons*
(thousands) of these messages but haven't had time to look into it yet:

Cannot find image file ‘/build/source/etc/images/tabs/close.xpm’
Cannot find image file ‘/build/source/etc/images/tabs/new.xpm’

Thanks,
Alex





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37623: 27.0.50; describe-key fails in tab-bar-mode
  2019-10-07 21:18   ` Alex Branham
@ 2019-10-09 20:43     ` Juri Linkov
  2019-10-09 21:05       ` Alex Branham
  0 siblings, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2019-10-09 20:43 UTC (permalink / raw)
  To: Alex Branham; +Cc: 37623

>>> It appears as though describe-key fails when the mouse is pressed on a
>>> non-currently-active tab in the tab-bar:
>>>
>>> emacs -Q
>>> M-x tab-bar-mode
>>> C-x b RET
>>> C-h k (then click the mouse button on a non-currently-active tab):
>>>
>>> run-hook-with-args: Wrong type argument: symbolp, #[0 "ÁÀ!‡" [(tab
>>> (name . "*scratch*") (time . 1570198894) (wc . #<window-configuration>)
>>> (ws ((min-height . 4) (min-width . 10) (min-height-ignore . 2)
>>> (min-width-ignore . 6) (min-height-safe . 1) (min-width-safe . 2)
>>> (min-pixel-height . 68) (min-pixel-width . 80) (min-pixel-height-ignore
>>> . 34) (min-pixel-width-ignore . 48) ...) leaf (pixel-width . 1600)
>>> (pixel-height . 714) (total-width . 200) (total-height . 42)
>>> (normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (selected
>>> . t) (hscroll . 0) (fringes 8 8 nil nil) (margins nil) (scroll-bars nil
>>> 2 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 146) ...)))
>>> tab-bar-select-tab] 2 nil nil]Cannot find image file
>>> ‘/build/source/etc/images/tabs/close.xpm’
>>
>> From what I see, you clicked the mouse button on the tab close button,
>> right?
>
> Anywhere in a non-active tab, not just on the tab close button.

I see that today Lars fixed this help-mode bug in f2cbc7214f, so
now it's possible to use lambdas in menu items.

Please try again.

> The message about the image file not being found is unrelated (probably,
> anyway), seems to be another bug or issue with my build. I get *tons*
> (thousands) of these messages but haven't had time to look into it yet:
>
> Cannot find image file ‘/build/source/etc/images/tabs/close.xpm’
> Cannot find image file ‘/build/source/etc/images/tabs/new.xpm’

I don't know why your build has no images, but I'll fix these warnings
by checking if the image exists.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37623: 27.0.50; describe-key fails in tab-bar-mode
  2019-10-09 20:43     ` Juri Linkov
@ 2019-10-09 21:05       ` Alex Branham
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Branham @ 2019-10-09 21:05 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 37623-done

On Wed 09 Oct 2019 at 23:43, Juri Linkov <juri@linkov.net> wrote:

> I see that today Lars fixed this help-mode bug in f2cbc7214f, so
> now it's possible to use lambdas in menu items.
>
> Please try again.

Yes, that seems to be fixed so I'm closing this report. Thanks!

>> The message about the image file not being found is unrelated (probably,
>> anyway), seems to be another bug or issue with my build. I get *tons*
>> (thousands) of these messages but haven't had time to look into it yet:
>>
>> Cannot find image file ‘/build/source/etc/images/tabs/close.xpm’
>> Cannot find image file ‘/build/source/etc/images/tabs/new.xpm’
>
> I don't know why your build has no images, but I'll fix these warnings
> by checking if the image exists.

I've opened bug#37685 for that.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-09 21:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-04 14:24 bug#37623: 27.0.50; describe-key fails in tab-bar-mode Alex Branham
2019-10-07 20:34 ` Juri Linkov
2019-10-07 21:18   ` Alex Branham
2019-10-09 20:43     ` Juri Linkov
2019-10-09 21:05       ` Alex Branham

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.