Quellcode durchsuchen

Fix broken completion help for xwwp-follow-link.

Use complete-with-action. This enables minibuffer-completion-help,
which shows candidates buffer.
Masahiro Nakamura vor 5 Jahren
Ursprung
Commit
f67e070a6e
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 1 0
      README.md
  2. 2 2
      xwwp-follow-link.el

+ 1 - 0
README.md

@@ -59,3 +59,4 @@ please open an issue or better, create a pull request!
 
 - Damien Merenne <dam@cosinux.org>
 - Q. Hong <qhong@mit.edu>
+- Masahiro Nakamura <tsuucat@icloud.com>

+ 2 - 2
xwwp-follow-link.el

@@ -157,10 +157,10 @@ ACTION should be called with the resulting link.
 UPDATE-FN is a function that can be called when the candidates
 list is narrowed.It will highlight the link list in the
 browser."
-  (funcall action (cdr (assoc (completing-read prompt (lambda (str pred _)
+  (funcall action (cdr (assoc (completing-read prompt (lambda (str pred flag)
                                                         (oset backend text str)
                                                         (funcall update-fn)
-                                                        (try-completion str collection pred))
+                                                        (complete-with-action flag collection str pred))
                                                nil t)
                               collection))))