From: Dave Love Date: Mon, 22 May 2000 19:14:50 +0000 (+0000) Subject: (PC-look-for-include-file): Use :alnum: character class. X-Git-Tag: emacs-pretest-21.0.90~3809 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f34457e85849f67321e31f617e2ae76e952adc8;p=emacs.git (PC-look-for-include-file): Use :alnum: character class. (partial-completion-mode): Add autoload cookie. --- diff --git a/lisp/complete.el b/lisp/complete.el index 5b77c72ff01..1bf418ed547 100644 --- a/lisp/complete.el +++ b/lisp/complete.el @@ -97,6 +97,7 @@ :group 'minibuffer :group 'convenience) +;;;###autoload (defcustom partial-completion-mode nil "Toggle Partial Completion mode. When Partial Completion mode is enabled, TAB (or M-TAB if `PC-meta-flag' is @@ -829,7 +830,7 @@ or properties are considered." (or (string-match "\\.el$" name) (setq name (concat name ".el"))))) (error "Not on an #include line")))))) - (or (string-match "\\.[a-zA-Z0-9]+$" name) + (or (string-match "\\.[[:alnum:]]+$" name) (setq name (concat name ".h"))) (if (eq punc ?\<) (let ((path (or path (PC-include-file-path))))