GNU bug report logs - #6013
[cperl-mode] cperl-perldoc doesn't work anymore with file test operators like -e

Previous Next

Package: emacs;

Reported by: LanX <lanx.perl <at> googlemail.com>

Date: Fri, 23 Apr 2010 12:22:02 UTC

Severity: normal

Tags: patch

Fixed in version 27.1

Done: Eli Zaretskii <eliz <at> gnu.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 6013 in the body.
You can then email your comments to 6013 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6013; Package emacs. (Fri, 23 Apr 2010 12:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to LanX <lanx.perl <at> googlemail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 23 Apr 2010 12:22:02 GMT) Full text and rfc822 format available.

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

From: LanX <lanx.perl <at> googlemail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [cperl-mode] cperl-perldoc doesn't work anymore with file test 
	operators like -e
Date: Fri, 23 Apr 2010 13:16:27 +0200
[Message part 1 (text/plain, inline)]
Hi

cperl-mode can't call perldocs for functions with a hyphen anymore like "-e"
or "-X"

(cperl-perldoc "-e") or "M-x cperl-perldoc RET -e" result to
   "error in process sentinel: Man-bgproc-sentinel: Can't find the -e
manpage"

But perldoc -f -e works fine in the shell, and as far as I can see from the
sources of cperl-mode "-e" this case is covered to be mapped on the -f
switch.

Tested on 23 and 22 from two different users on different continents.

Cheers
  Rolf




In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2009-10-13 on nc10-ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
configured using `configure  '--prefix=/home/lanx/lib/emacs-cvs''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: CPerl

Minor modes in effect:
  hideshowvis-minor-mode: t
  show-paren-mode: t
  cua-mode: t
  desktop-save-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  hs-minor-mode: t

Recent input:
y C-x C-b <help-echo> <help-echo> <down-mouse-1> <mouse-2>
M-x c p e r l <tab> p e r <tab> <return> - e <return>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
OVERVIEW
Desktop: 4 buffers restored, 1 failed to restore.
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
Invoking perldoc -e in the background
Please wait: formatting the -e man page...
-e man page formatted
error in process sentinel: Man-bgproc-sentinel: Can't find the -e manpage
error in process sentinel: Can't find the -e manpage
call-interactively: End of buffer [2 times]

Load-path shadows:
None found.

Features:
(shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache
mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045
qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 hex-util
hashcash emacsbug sendmail regexp-opt man assoc etags org-wl org-w3m
org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html
org-exp org-exp-blocks org-agenda org-info org-gnus org-bibtex org-bbdb
org byte-opt bytecomp byte-compile org-footnote org-src org-list
org-faces org-compat org-macs dabbrev cperl-mode hideshowvis saveplace
uniquify paren gnus gnus-ems nnheader gnus-util netrc time-date
mail-utils mm-util mail-prsvr wid-edit cua-base cus-start cus-load
desktop fold-dwim hideshow noutline outline generic-x advice help-fns
help-mode easymenu view advice-preload regex-tool derived cl cl-19
tabbar easy-mmode edmacro kmacro winner ring server tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev loaddefs button minibuffer faces cus-face text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process gtk x-toolkit x
multi-tty emacs)
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6013; Package emacs. (Fri, 05 Jul 2019 19:11:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: LanX <lanx.perl <at> googlemail.com>
Cc: 6013 <at> debbugs.gnu.org
Subject: Re: bug#6013: [cperl-mode] cperl-perldoc doesn't work anymore with
 file test operators like -e
Date: Fri, 5 Jul 2019 21:10:28 +0200
[Message part 1 (text/plain, inline)]
tags 6013 patch
thanks

LanX <lanx.perl <at> googlemail.com> writes:

> Hi
>
> cperl-mode can't call perldocs for functions with a hyphen anymore like "-e" or "-X"
>
> (cperl-perldoc "-e") or "M-x cperl-perldoc RET -e" result to
>    "error in process sentinel: Man-bgproc-sentinel: Can't find the -e manpage"
>
> But perldoc -f -e works fine in the shell, and as far as I can see from the sources of cperl-mode "-e" this case is covered to be mapped on the -f switch.
>
> Tested on 23 and 22 from two different users on different continents.
>
> Cheers
>   Rolf

I can confirm this bug, and have attached a fix.

This is tested only on one continent.

Best regards,
Stefan Kangas
[0001-Fix-looking-up-functions-like-e-in-cperl-mode.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 05 Jul 2019 19:11:02 GMT) Full text and rfc822 format available.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 13 Jul 2019 07:42:01 GMT) Full text and rfc822 format available.

Notification sent to LanX <lanx.perl <at> googlemail.com>:
bug acknowledged by developer. (Sat, 13 Jul 2019 07:42:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 6013-done <at> debbugs.gnu.org, lanx.perl <at> googlemail.com
Subject: Re: bug#6013: [cperl-mode] cperl-perldoc doesn't work anymore with
 file test operators like -e
Date: Sat, 13 Jul 2019 10:41:45 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 5 Jul 2019 21:10:28 +0200
> Cc: 6013 <at> debbugs.gnu.org
> 
> LanX <lanx.perl <at> googlemail.com> writes:
> 
> > Hi
> >
> > cperl-mode can't call perldocs for functions with a hyphen anymore like "-e" or "-X"
> >
> > (cperl-perldoc "-e") or "M-x cperl-perldoc RET -e" result to
> >    "error in process sentinel: Man-bgproc-sentinel: Can't find the -e manpage"
> >
> > But perldoc -f -e works fine in the shell, and as far as I can see from the sources of cperl-mode "-e" this case is covered to be mapped on the -f switch.
> >
> > Tested on 23 and 22 from two different users on different continents.
> >
> > Cheers
> >   Rolf
> 
> I can confirm this bug, and have attached a fix.

Thanks, pushed to the master branch.




bug Marked as fixed in versions 27.1. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 13 Jul 2019 09:23:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Aug 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.