--- Begin Message ---
Subject: |
30.0.50; manual-entry [(1) fails |
Date: |
Sun, 23 Jul 2023 02:58:59 +0200 |
Hello,
In Gnu/Linux there is a binary named "[" in /usr/bin/, and it has a man
page I can read in a terminal using "man '[(1)'".
Requesting the man page in Emacs using `man' is broken, however:
M-x manual-entry RET [ TAB
echoes "[No match]" - this is the first problem (the failing
completion).
C-g, let's try differently:
M-x manual-entry RET TAB [ TAB
(that's the same as before but additionally requesting all candidates
before writing in the minibuffer) suddenly completes to "[(1)" as
expected. But when confirming with RET the man buffer only has these
contents:
| /bin/sh: 1: Syntax error: "(" unexpected
|
| process exited abnormally with code 2
That's the second problem.
Oh, and M-x woman [ RET works as expected.
TIA,
Michael.
In GNU Emacs 30.0.50 (build 33, x86_64-pc-linux-gnu, cairo version
1.16.0) of 2023-07-22 built on drachen
Repository revision: 4b3ab8fae12dcb403e653edeafa1d4ce1dab0187
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#64795: 30.0.50; manual-entry [(1) fails |
Date: |
Wed, 26 Jul 2023 17:31:59 +0300 |
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: 64795@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Wed, 26 Jul 2023 05:20:30 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > > I wonder however: why did you add that `shell-quote-argument' wrapper?
> > > I think there is no shell involved. [...]
> >
> > I used shell-quote-argument because it did the job, and was simple.
> > What would be the alternative? [...]
>
> Let's go with your patch. I'm sorry - I was just confused and didn't
> understand why the quoting was necessary. I was missing that the string
> will me interpreted as a regexp (although it's obvious...).
Thanks, installed on master, and closing the bug. I added a comment
there regarding the use of shell-quote-argument, for posterity.
--- End Message ---