Mercurial > emacs
comparison lisp/quickurl.el @ 26495:002bf6a98f1d
Added defcustom of quickurl-completion-ignore-case.
(quickurl-ask): completion-ignore-case is set to the value of
quickurl-completion-ignore-case for the duration of the call to
completing-read.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 18 Nov 1999 16:42:02 +0000 |
parents | 6a0ca60a951f |
children | e895a16bee7b |
comparison
equal
deleted
inserted
replaced
26494:736c6b0dc28a | 26495:002bf6a98f1d |
---|---|
131 :group 'quickurl) | 131 :group 'quickurl) |
132 | 132 |
133 (defcustom quickurl-assoc-function #'assoc-ignore-case | 133 (defcustom quickurl-assoc-function #'assoc-ignore-case |
134 "*Function to use for alist lookup into `quickurl-urls'." | 134 "*Function to use for alist lookup into `quickurl-urls'." |
135 :type 'function | 135 :type 'function |
136 :group 'quickurl) | |
137 | |
138 (defcustom quickurl-completion-ignore-case t | |
139 "*Should `quickurl-ask' ignore case when doing the input lookup?" | |
140 :type 'boolean | |
136 :group 'quickurl) | 141 :group 'quickurl) |
137 | 142 |
138 (defcustom quickurl-prefix ";; -*- lisp -*-\n\n" | 143 (defcustom quickurl-prefix ";; -*- lisp -*-\n\n" |
139 "*Text to write to `quickurl-url-file' before writing the URL list." | 144 "*Text to write to `quickurl-url-file' before writing the URL list." |
140 :type 'string | 145 :type 'string |
315 "Insert an URL, with `completing-read' prompt, based on LOOKUP." | 320 "Insert an URL, with `completing-read' prompt, based on LOOKUP." |
316 (interactive | 321 (interactive |
317 (list | 322 (list |
318 (progn | 323 (progn |
319 (quickurl-load-urls) | 324 (quickurl-load-urls) |
320 (completing-read "Lookup: " quickurl-urls nil t)))) | 325 (let ((completion-ignore-case quickurl-completion-ignore-case)) |
326 (completing-read "Lookup: " quickurl-urls nil t))))) | |
321 (let ((url (quickurl-find-url lookup))) | 327 (let ((url (quickurl-find-url lookup))) |
322 (when url | 328 (when url |
323 (quickurl-insert url)))) | 329 (quickurl-insert url)))) |
324 | 330 |
325 (defun quickurl-grab-url () | 331 (defun quickurl-grab-url () |