From: "André A. Gomes" <andremegafone@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 50852@debbugs.gnu.org
Subject: bug#50852: [PATCH] Fix search of the look program.
Date: Tue, 28 Sep 2021 12:02:35 +0300 [thread overview]
Message-ID: <87czot6pjo.fsf@gmail.com> (raw)
In-Reply-To: <87zgrxfdog.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 28 Sep 2021 07:54:07 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> André A. Gomes <andremegafone@gmail.com> writes:
>
>> Here's a more robust way to handle the existence of the look program by
>> ispell. GNU Guix users will be happy.
>
> Thanks; applied to Emacs 28 (but I made the ispell-look-p change more
> defensive, in case somebody has set ispell-look-command in their init
> file).
Makes sense. I was naive.
>> There's another aspect worth discussing. The look program doesn't have
>> the -r flag (as of today), but ispell handles this case (look at
>> ispell-look-options). It seems that look was published around 1979.
>> Perhaps it's time to deprecate this flag?
>
> Do you know when the "-r" flag disappeared?
That's a good question. As mentioned above, look is the same in both
MacOS and GNU/Linux.
The -r flag stands for regexp. It seems odd that a binary search
program like look would support regexp.
My intuition tells me that once upon a time there was a programme named
look whose behaviour resembles that of grep. But what does a kid like
me know about Unix and the dinosaurs anyway? :)
I'd deprecate support for this odd flag. But ispell-lookup-words should
definitely use look, by default, instead of grep.
--
André A. Gomes
"Free Thought, Free World"
prev parent reply other threads:[~2021-09-28 9:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 18:45 bug#50852: [PATCH] Fix search of the look program André A. Gomes
2021-09-27 23:56 ` Stefan Kangas
2021-09-28 6:07 ` Eli Zaretskii
2021-09-28 6:11 ` Lars Ingebrigtsen
2021-09-28 7:15 ` Eli Zaretskii
2021-09-28 8:41 ` André A. Gomes
2021-09-28 9:15 ` Eli Zaretskii
2021-10-30 16:09 ` Stefan Kangas
2021-09-28 8:32 ` André A. Gomes
2021-09-28 11:06 ` Stefan Kangas
2022-09-02 11:35 ` Lars Ingebrigtsen
2021-09-28 5:54 ` Lars Ingebrigtsen
2021-09-28 9:02 ` André A. Gomes [this message]
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=87czot6pjo.fsf@gmail.com \
--to=andremegafone@gmail.com \
--cc=50852@debbugs.gnu.org \
--cc=larsi@gnus.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).