unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sergio Callegari <sergio.callegari@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: 69463@debbugs.gnu.org
Subject: bug#69463: 29.2; Isearch help icon has inconsistent size
Date: Sun, 3 Mar 2024 13:35:19 +0100	[thread overview]
Message-ID: <ba4c15a3-4cae-4ecd-b601-7f17fac074b6@gmail.com> (raw)
In-Reply-To: <864jdrjicr.fsf@mail.linkov.net>

Trying to look into the matter, I have found the file
`/usr/share/emacs/29.2/lisp/isearch.el.gz`, which I understand is the 
source of the code implementing the isearch functionality.

In this file, there is a portion of code that appears to be in charge of 
configuring the toolbar, starting in
`(defvar isearch-tool-bar-map ... )`

The portion setting the icon for help should be:
```
(define-key map [isearch-describe-mode]
       (list 'menu-item "Help" 'isearch-describe-mode
             :help "Get help for Isearch"
             :image '(isearch-tool-bar-image "help")))
```

However, if I try to evaluate `(isearch-tool-bar-image "help")` I get
`/usr/share/emacs/29.2/etc/images/help.xpm`

That is definitely a life buoy, but not the life buoy that is shown as 
the help icon when I press CTRL+s. In fact, it is the life buoy that I 
see in most emacs screenshots on the internet. Most important this one 
seems to have the right size.

So my system seems to disregard the default icons shipped with emacs and 
to look for something different. My wild guess is that this depends on 
gtk theming. My second wild guess is that because I am on KDE this 
theming is not configured at all and is wrong.

To provide more context, I am on an arch derived distro (Manjaro), with 
KDE. I use the breeze theme, that seems to have exactly that too big 
life buoy.

I need help on the following points:

- Why is that breeze icon being picked? Is there a way to force emacs to 
use its own icons? Theming would be nice, but done in this way, with a 
wild mixture of breeze icons and native emacs icons it is simply messy.

- Why is that breeze icon not scaled? All other applications on my 
system appear to scale their icons consistently.

Thanks!
Sergio

On 29/02/2024 18:42, Juri Linkov wrote:
>> When you press CTRL+s, I-search is activated, that provides a custom
>> toolbar with dedicated icons and lets one enter what to search in the
>> mode line.
>>
>> Unfortunately, in the toolbar there is a help icon, shaped as a life
>> buoy, that is too big or at least inconsistently big wrt the other icons.
>> As a consequence, when I-search is activated the emacs windows
>> becomes bigger to accomodate space for the taller toolbar.
>>
>> Not only having the window changing its size causes some inconvenience
>> because the text you are trying to focus on moves up and down. There is
>> a major problem if the emacs window is already vertically maximized
>> before you start searching. In fact, in this case there is no space for
>> the window to grow. As a consequence, the mode line goes out of the
>> screen and you cannot use it to search!
> 
> This behavior is system-dependent.  For example,
> I can't reproduce it on these configurations:
> 
> GNU Emacs 29.1.90 (build 1, x86_64-pc-linux-gnu,
> cairo version 1.16.0)
> 
> GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit,
> cairo version 1.16.0, Xaw3d scroll bars)
> 
> GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
> cairo version 1.16.0)
> 
> Strange, the last is similar to your configuration:
> 
>> In GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.40,
>> cairo version 1.18.0)





  parent reply	other threads:[~2024-03-03 12:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-28 17:02 bug#69463: 29.2; Isearch help icon has inconsistent size Sergio Callegari
2024-02-29 17:42 ` Juri Linkov
2024-03-03 12:08   ` Sergio Callegari
2024-03-03 17:09     ` Juri Linkov
2024-03-03 17:57       ` Sergio Callegari
2024-03-03 12:35   ` Sergio Callegari [this message]
2024-03-03 12:55   ` Sergio Callegari
2024-03-03 13:03   ` Sergio Callegari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba4c15a3-4cae-4ecd-b601-7f17fac074b6@gmail.com \
    --to=sergio.callegari@gmail.com \
    --cc=69463@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).