sacha/try-expand-emacs-wiki-name
| emacs(defun sacha/try-expand-emacs-wiki-name (old) "Expand a wiki name." (unless old (he-init-string (he-dabbrev-beg) (point)) (setq he-expand-list (if (derived-mode-p 'emacs-wiki-mode) (delq nil (mapcar (lambda (item) (when (string-match (concat "^" (regexp-quote he-search-string)) (car item)) (planner-make-link (car item)))) (emacs-wiki-file-alist)))))) (while (and he-expand-list (or (not (car he-expand-list)) (he-string-member (car he-expand-list) he-tried-table t))) (setq he-expand-list (cdr he-expand-list))) (if (null he-expand-list) (progn (if old (he-reset-string)) nil) (progn (he-substitute-string (car he-expand-list) t) (setq he-expand-list (cdr he-expand-list)) t)))
You can comment with Disqus or you can e-mail me at sacha@sachachua.com.