[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cperl-perldoc
From: |
Alex Schroeder |
Subject: |
cperl-perldoc |
Date: |
Tue, 20 Nov 2001 11:56:55 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) |
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.1.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2001-10-31 on confusibombus
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_CH
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
When calling cperl-perldoc before the man package is loaded, the man
package will be required but unusable.
Start emacs -q:
M-x man RET perlop RET
M-x cperl-mode RET
M-x cperl-perldoc RET m RET
M-x man RET perlre RET
Works! Now try this without loading man.
Start emacs -q:
M-x cperl-mode RET
M-x cperl-perldoc RET m RET
M-x man RET perlre RET
You get this error:
man: Symbol's value as variable is void: manual-program
I assume the culprit to be this:
(let* ((is-func (and
(string-match "^[a-z]+$" word)
(string-match (concat "^" word "\\>")
(documentation-property
'cperl-short-docs
'variable-documentation))))
(manual-program (if is-func "perldoc -f" "perldoc")))
(require 'man)
(Man-getpage-in-background word)))
In this let* form, manual-program is bound, such that loading man.el
the corresponding defvar does not bind manual-program. After the let*
form, manual-program is no longer bound, but man is loaded.
Alex.
Recent input:
<escape> x <up> c p e r l - m o d e <return> <escape>
x c p e r l - p e r l d o c <return> m <return> <escape>
x m a n <return> p e r l o p <return> <escape> x r
e p o r t - e m a c s - b u g <return>
Recent messages:
next-history-element: Beginning of history; no preceding item
Loading cperl-mode...
Loading /usr/local/libexec/emacs/21.1/i686-pc-linux-gnu/fns-21.1.1.el
(source)...done
Loading cperl-mode...done
Invoking perldoc -f m in the background
Please wait: making up the m man page...
m man page made up
Loading tabify...done
man: Symbol's value as variable is void: manual-program
Loading emacsbug...done
- cperl-perldoc,
Alex Schroeder <=