GNU bug report logs -
#58512
Patch to make cperl-perldoc call perldoc case-insensitively
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Fri, 14 Oct 2022 11:37:02 UTC
Severity: normal
Done: Reuben Thomas <rrt <at> sc3d.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
> The attached patch calls perldoc with -i, so it is case insensitive. This
> is more convenient (the user doesn't have to get the case right), and works
> like "man". I find this particularly useful for perl, as many modules and
> functions have mixed case in their names.
>
> --
> https://rrt.sc3d.org
> From b175a9fb7eea49cdf8171821498f2c5efaaecd98 Mon Sep 17 00:00:00 2001
> From: Reuben Thomas <rrt <at> sc3d.org>
> Date: Fri, 14 Oct 2022 13:30:43 +0200
> Subject: [PATCH] Do perl documentation lookups case-insensitively, like man
>
> * lisp/progmodes/cperl-mode.el (cperl-perldoc): add -i to the perldoc
> command.
> ---
> lisp/progmodes/cperl-mode.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
> index 20a73e238e9..539b2771490 100644
> --- a/lisp/progmodes/cperl-mode.el
> +++ b/lisp/progmodes/cperl-mode.el
> @@ -8323,7 +8323,7 @@ cperl-perldoc
> 'cperl-short-docs
> 'variable-documentation))))
> (Man-switches "")
> - (manual-program (if is-func "perldoc -f" "perldoc")))
> + (manual-program (concat "perldoc -i" (if is-func " -f"))))
> (Man-getpage-in-background word)))
>
> ;;;###autoload
> --
> 2.34.1
LGTM.
This bug report was last modified 2 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.