summaryrefslogtreecommitdiff
path: root/lisp/hippie-exp.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-11-15 12:20:50 +0000
committerGerd Moellmann <gerd@gnu.org>1999-11-15 12:20:50 +0000
commitd7d20e6afc535b61e21657ed04666727c796e61a (patch)
tree7a9d019632a499207e1c7960312c5dca58b87417 /lisp/hippie-exp.el
parent5bcfeb490ea59d6d58c8f30f6840995b8818763d (diff)
downloademacs-d7d20e6afc535b61e21657ed04666727c796e61a.tar.gz
Use new backquote syntax.
Diffstat (limited to 'lisp/hippie-exp.el')
-rw-r--r--lisp/hippie-exp.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/hippie-exp.el b/lisp/hippie-exp.el
index 6f82054f8f7..df2d88f5978 100644
--- a/lisp/hippie-exp.el
+++ b/lisp/hippie-exp.el
@@ -412,14 +412,14 @@ undoes the expansion."
"Construct a function similar to `hippie-expand'.
Make it use the expansion functions in TRY-LIST. An optional second
argument VERBOSE non-nil makes the function verbose."
- (` (function (lambda (arg)
- (, (concat
- "Try to expand text before point, using the following functions: \n"
- (mapconcat 'prin1-to-string (eval try-list) ", ")))
- (interactive "P")
- (let ((hippie-expand-try-functions-list (, try-list))
- (hippie-expand-verbose (, verbose)))
- (hippie-expand arg))))))
+ `(function (lambda (arg)
+ ,(concat
+ "Try to expand text before point, using the following functions: \n"
+ (mapconcat 'prin1-to-string (eval try-list) ", "))
+ (interactive "P")
+ (let ((hippie-expand-try-functions-list ,try-list)
+ (hippie-expand-verbose ,verbose))
+ (hippie-expand arg)))))
;;; Here follows the try-functions and their requisites:
@@ -732,8 +732,8 @@ string). It returns t if a new completion is found, nil otherwise."
(re-search-forward
(he-line-search-regexp str strip-prompt)
nil t)))
- (setq result (buffer-substring-no-properties (match-beginning 2)
- (match-end 2)))
+ (setq result (buffer-substring-no-properties (match-end 1)
+ (match-end 0)))
(if (he-string-member result he-tried-table t)
(setq result nil))) ; if already in table, ignore
result))