Fix looking up functions like "-e" in cperl-mode
* lisp/progmodes/cperl-mode.el (cperl-perldoc): Handle functions with leading dash (e.g. "-f"). (Bug#6013)
This commit is contained in:
parent
3b3e7da601
commit
70225ecae1
1 changed files with 1 additions and 1 deletions
|
@ -8382,7 +8382,7 @@ the appropriate statement modifier."
|
|||
(require 'man)
|
||||
(let* ((case-fold-search nil)
|
||||
(is-func (and
|
||||
(string-match "^[a-z]+$" word)
|
||||
(string-match "^\\(-[A-Za-z]\\|[a-z]+\\)$" word)
|
||||
(string-match (concat "^" word "\\>")
|
||||
(documentation-property
|
||||
'cperl-short-docs
|
||||
|
|
Loading…
Add table
Reference in a new issue