[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: `g' and `G' do not provide current url as the initial minibuffer contents



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.