summaryrefslogtreecommitdiff
path: root/lisp/complete.el
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-05-22 19:14:50 +0000
committerDave Love <fx@gnu.org>2000-05-22 19:14:50 +0000
commit5f34457e85849f67321e31f617e2ae76e952adc8 (patch)
tree1b7edb5b07bbeaa5b3645783c6da75ad13027d8f /lisp/complete.el
parent643c911e6fadc7ebb110387a720bfb8a097e3f35 (diff)
downloademacs-5f34457e85849f67321e31f617e2ae76e952adc8.tar.gz
emacs-5f34457e85849f67321e31f617e2ae76e952adc8.tar.bz2
emacs-5f34457e85849f67321e31f617e2ae76e952adc8.zip
(PC-look-for-include-file): Use :alnum: character class.
(partial-completion-mode): Add autoload cookie.
Diffstat (limited to 'lisp/complete.el')
-rw-r--r--lisp/complete.el3
1 files changed, 2 insertions, 1 deletions
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))))