GNU bug report logs - #58512
Patch to make cperl-perldoc call perldoc case-insensitively

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58512 in the body.
You can then email your comments to 58512 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58512; Package emacs. (Fri, 14 Oct 2022 11:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Reuben Thomas <rrt <at> sc3d.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 14 Oct 2022 11:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: bug-emacs <bug-emacs <at> gnu.org>
Subject: Patch to make cperl-perldoc call perldoc case-insensitively
Date: Fri, 14 Oct 2022 13:34:00 +0200
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
[0001-Do-perl-documentation-lookups-case-insensitively-lik.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58512; Package emacs. (Fri, 14 Oct 2022 12:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 58512 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Reuben Thomas <rrt <at> sc3d.org>, 58512 <at> debbugs.gnu.org
Subject: Re: bug#58512: Patch to make cperl-perldoc call perldoc
 case-insensitively
Date: Fri, 14 Oct 2022 07:36:05 -0500
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58512; Package emacs. (Fri, 14 Oct 2022 12:46:01 GMT) Full text and rfc822 format available.

Message #11 received at 58512 <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 58512 <at> debbugs.gnu.org
Subject: Re: bug#58512: Patch to make cperl-perldoc call perldoc
 case-insensitively
Date: Fri, 14 Oct 2022 14:45:31 +0200
[Message part 1 (text/plain, inline)]
On Fri, 14 Oct 2022 at 14:36, Stefan Kangas <stefankangas <at> gmail.com> wrote:

>
> LGTM.
>

Thanks, for this simple patch I think I can take that as a positive review,
so I've pushed it.

-- 
https://rrt.sc3d.org
[Message part 2 (text/html, inline)]

Reply sent to Reuben Thomas <rrt <at> sc3d.org>:
You have taken responsibility. (Fri, 14 Oct 2022 12:49:02 GMT) Full text and rfc822 format available.

Notification sent to Reuben Thomas <rrt <at> sc3d.org>:
bug acknowledged by developer. (Fri, 14 Oct 2022 12:49:02 GMT) Full text and rfc822 format available.

Message #16 received at 58512-done <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: 58512-done <at> debbugs.gnu.org
Subject: Closed by commit b175a9fb7ee
Date: Fri, 14 Oct 2022 14:48:11 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 12 Nov 2022 12:24:06 GMT) Full text and rfc822 format available.

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.