mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-23 04:53:12 -08:00
(cperl-perldoc): Require man before binding `manual-program'.
This commit is contained in:
parent
5be945fb64
commit
46585b32db
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2001-11-20 Stefan Monnier <monnier@cs.yale.edu>
|
||||
|
||||
* progmodes/cperl-mode.el (cperl-perldoc): Require man before binding
|
||||
`manual-program'.
|
||||
|
||||
2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
|
||||
|
||||
* progmodes/cc-engine.el (c-parse-state): Typo. From Martin Stjernholm.
|
||||
|
|
|
|||
|
|
@ -6770,6 +6770,7 @@ We suppose that the regexp is scanned already."
|
|||
(error "No perldoc args given")
|
||||
default-entry)
|
||||
input))))
|
||||
(require 'man)
|
||||
(let* ((is-func (and
|
||||
(string-match "^[a-z]+$" word)
|
||||
(string-match (concat "^" word "\\>")
|
||||
|
|
@ -6777,7 +6778,6 @@ We suppose that the regexp is scanned already."
|
|||
'cperl-short-docs
|
||||
'variable-documentation))))
|
||||
(manual-program (if is-func "perldoc -f" "perldoc")))
|
||||
(require 'man)
|
||||
(Man-getpage-in-background word)))
|
||||
|
||||
(defun cperl-perldoc-at-point ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue