GNU bug report logs -
#43405
Tool bar item doesn't align to the right edge
Previous Next
Full log
View this message in rfc822 format
This bug report is from emacs-devel thread:
>> Anyway, there is a bug in tool-bar code that doesn't allow to use
>> align-to, whereas align-to works perfectly when used on the tab-bar.
>>
>> Here is the test case to reproduce the bug on the tool-bar:
>>
>> emacs -Q and eval:
>>
>> (define-key-after (default-value 'tool-bar-map) [global-menu-bar]
>> `(menu-item (propertize " " 'display '(space :align-to (- right 5)))
>> (lambda ()
>> (interactive)
>> (popup-menu (mouse-menu-bar-map)))
>> :image ,(tool-bar--image-expression "newsticker/narrow")
>> :help "Pop up the global menu bar"))
>> (force-mode-line-update)
>>
>> It doesn't align the icon to the right edge of the tool-bar
>> whereas the same code aligns it on the tab-bar.
>
> Here, the above displays nothing at all on the tool bar.
The icon is displayed only after more changes in window-configuration like
switching buffers, i.e. force-mode-line-update (copied from tool-bar-local-item)
has no effect.
Another bug? Or should this code use both (redraw-display) and
(force-mode-line-update) like in bug#43397?
This bug report was last modified 4 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.