[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `g' and `G' do not provide current url as the initial minibuffer contents
- From: Michael Heerdegen <michael_heerdegen@xxxxxx>
- Date: Thu, 31 Jul 2014 18:20:24 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 12371
- References: <86a97xvd4v.fsf@xxxxxxxxxxxxxxxxxxxx> <878une21jz.fsf@xxxxxx> <b4mzjfu5pzg.fsf@xxxxxxx> <8638dlve9x.fsf@xxxxxxxxxxxxxxxxxxxx> <b4ma97thrbm.fsf@xxxxxxx> <86zjfs1ii9.fsf@xxxxxxxxxxxxxxxxxxxx> <b4mbns7sqew.fsf@xxxxxxx> <8761if3w8p.fsf@xxxxxx> <b4md2cmulqn.fsf@xxxxxxx> <87egx1fqxx.fsf@xxxxxx>
Michael Heerdegen <michael_heerdegen@xxxxxx> writes:
> > (defun w3m-input-url-default-add-completions ()
> > "Use the current url string (if any) as the next history by default.
> > This function is used as `minibuffer-default-add-function'."
> > (w3m-static-when (fboundp 'minibuffer-default-add-completions)
> > (let ((minibuffer-default
> > (or (with-current-buffer
> > (window-buffer (minibuffer-selected-window))
> > (or (w3m-active-region-or-url-at-point) w3m-current-url))
> > minibuffer-default)))
> > (minibuffer-default-add-completions))))
That version doesn't yet remove duplicates - this should of course be
done when we keep something like this.
Michael.