unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 24510@debbugs.gnu.org
Subject: bug#24510: 25.1; Info: searching for ` does not find what looks like `
Date: Thu, 22 Sep 2016 12:58:49 -0700 (PDT)	[thread overview]
Message-ID: <7f9c8f95-a04d-4e94-9c17-8a348bf89215@default> (raw)
In-Reply-To: <83intneq2g.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 3207 bytes --]

> > emacs -Q
> > C-h r g Dired
> > C-s `list
> > finds nothing, missing the occurrence of ‘list-directory’ that
> > is in the same node.
> >
> > What looks exactly (AFAICT) like the backquote you typed at the
> > prompt is NOT the same as the character that precedes
> > "list-directory" in the buffer.
> 
> It doesn't look exactly like it here.  In fact, it looks quite
> different.  Although it could be that on your system Emacs uses
> different fonts than those on mine.

See attached screenshot.  No, they are not EXACTLY the same.  But
a user who is used to searching for ` (from the backquote key) in
such a context can easily think that it IS the same character.

S?he can easily either think (1) that the text s?he (thought s?he
was) searching for is not present (e.g., if s?he does not see it)
or (2) that Isearch is not working properly for some reason.

> But if 2 characters from 2 different fonts look the same on your
> system, I think you should customize the Info faces to countermand
> that.  I don't see any other solution.

Again, this is emacs -Q.  The chars look quite different with my
own setup - this is not a problem for me, personally.

This is a problem for Emacs.  This is using the default font
(on my platform, which is nevertheless a common one: MS Windows).

This is the font used by emacs -Q:
-outline-Courier New-normal-normal-normal-mono-17-*-*-*-c-*-iso8859-1

That's a very common MS Windows fixed-width font.  And it has,
in the past, been a reasonable default choice.  Doesn't seem
so reasonable anymore.

> > And it is not matched to that character by Isearch.
> 
> It might, if you turn on character-folding in Isearch.
> Unfortunately, that is off by default.

I did mention that this is what a user sees by DEFAULT, no?

And I did propose that one fix could be for search to find
this character - by default - when you hit the backquote key:

  The default font for Emacs should be changed.  Or else search
  should, by default, find the character used when you type a
  backquote char.  Or else the character used, by default,
  should be backquote, not LEFT SINGLE QUOTATION MARK.  Or some
  other reasonable solution should be found, to remedy this
  annoyance.

> > Emacs provides a default font where these two characters are
> > visually indistinguishable.
> 
> Emacs doesn't provide any fonts.  Your system does.  On my system,
> these two characters look different, even with my old weary eyes.

They look slightly different, yes.  Barely noticeable when you
see them side by side (see screenshot).

But otherwise not noticeable enough that someone used to Emacs
< 25.1 would expect that the ` s?he types (as s?he always has,
for this) does not result in the same character s?he sees as a
name left delimiter.

If you do not want to accept that this is an obvious gotcha, fine.
Perhaps you will hear from other users about this; perhaps not.

> > Hard to believe this annoyance has gotten as far as it has (release
> > 25.1).  Did no one try searching our manuals using Emacs -Q?
> 
> We did.  It works for me.

If it works for you then that's all we can hope for, I guess.

[-- Attachment #2: throw-Emacs-25-backquote-search.png --]
[-- Type: image/png, Size: 49487 bytes --]

  reply	other threads:[~2016-09-22 19:58 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 17:04 bug#24510: 25.1; Info: searching for ` does not find what looks like ` Drew Adams
2016-09-22 18:40 ` Eli Zaretskii
2016-09-22 19:58   ` Drew Adams [this message]
2016-09-22 20:41     ` Clément Pit--Claudel
2016-09-22 21:16       ` Drew Adams
2016-09-23  6:54     ` Eli Zaretskii
2016-09-22 20:02 ` Clément Pit--Claudel
2016-09-22 22:10 ` Noam Postavsky
2016-09-22 22:27   ` Drew Adams
2022-04-28 10:48 ` Lars Ingebrigtsen
2022-04-28 16:12   ` Drew Adams
2022-04-28 17:38   ` Juri Linkov
2022-04-28 18:15     ` Lars Ingebrigtsen
2022-04-28 19:00       ` Drew Adams
2022-04-29  6:51       ` Juri Linkov
2022-04-29 10:08         ` Lars Ingebrigtsen
2022-04-29 15:06           ` Drew Adams
2022-04-29 17:17           ` Juri Linkov
2022-04-30 11:45             ` Lars Ingebrigtsen
2022-05-01 17:11               ` Juri Linkov
2022-05-01 18:58                 ` Lars Ingebrigtsen
2022-05-02 16:12                   ` Juri Linkov
2022-05-03 10:33                     ` Lars Ingebrigtsen
2022-05-03 14:58                       ` Drew Adams
2022-05-03 17:29                       ` Juri Linkov
2022-05-03 18:05                         ` Lars Ingebrigtsen
2022-05-03 19:26                           ` Drew Adams
2022-05-05 16:20                           ` Juri Linkov
2022-05-05 16:44                             ` Drew Adams
2022-05-06 23:20                               ` Richard Stallman
2022-05-06 11:30                             ` Lars Ingebrigtsen
2022-05-06 14:40                               ` Drew Adams
2022-05-06 15:32                               ` Juri Linkov
2022-05-06 17:57                                 ` Lars Ingebrigtsen
2022-05-03 19:23                         ` Drew Adams
2022-04-29 15:01         ` Drew Adams
2022-04-28 18:58     ` Drew Adams
     [not found] <<6905ca6f-0573-4a2b-b346-d5df47862e09@default>
     [not found] ` <<83intneq2g.fsf@gnu.org>
     [not found]   ` <<7f9c8f95-a04d-4e94-9c17-8a348bf89215@default>
     [not found]     ` <<83d1jvds1t.fsf@gnu.org>
2016-09-23 16:02       ` Drew Adams
2016-09-23 17:48         ` Eli Zaretskii
2016-09-23 20:07           ` Clément Pit--Claudel
2016-09-24  7:28             ` Eli Zaretskii
2016-09-24 16:30               ` Clément Pit--Claudel
2016-09-24 17:08                 ` Eli Zaretskii
2016-09-24 17:24                   ` Clément Pit--Claudel
2016-09-24 17:57                     ` Eli Zaretskii
2016-09-24 18:14                       ` Clément Pit--Claudel
2016-09-24 18:34                         ` Eli Zaretskii
2016-09-24 18:40                           ` Clément Pit--Claudel
2016-09-24 19:16                             ` Eli Zaretskii
2016-09-24 18:14                 ` Drew Adams
     [not found] <<<6905ca6f-0573-4a2b-b346-d5df47862e09@default>
     [not found] ` <<<83intneq2g.fsf@gnu.org>
     [not found]   ` <<<7f9c8f95-a04d-4e94-9c17-8a348bf89215@default>
     [not found]     ` <<<83d1jvds1t.fsf@gnu.org>
     [not found]       ` <<c5f5356e-222a-48b0-9b80-dd242f982cec@default>
     [not found]         ` <<83mviycxse.fsf@gnu.org>
2016-09-23 21:47           ` Drew Adams
2016-09-24  7:31             ` Eli Zaretskii
2016-09-25  8:07               ` Byung-Hee HWANG (황병희,  黃炳熙)

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=7f9c8f95-a04d-4e94-9c17-8a348bf89215@default \
    --to=drew.adams@oracle.com \
    --cc=24510@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).