[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `w3m-input-url' bug
- From: Leo <sdl.web@xxxxxxxxx>
- Date: Tue, 07 Sep 2010 14:47:15 +0100
- X-ml-name: emacs-w3m
- X-mail-count: 11340
- References: <m1sk1l96y7.fsf@xxxxxxxxx> <b4miq2h21zj.fsf@xxxxxxx>
On 2010-09-07 13:05 +0100, Katsumi Yamaoka wrote:
>> If a user calls w3m-input-url with INITIAL nil and DEFAULT non-nil, his
>> intention is pretty clear but w3m-input-url overrides it anyway. I think
>> this is a bug.
>
>> GNU Emacs actually prefers DEFAULT and considers INITIAL deprecated; see
>> doc string of completing-read (23.x).
>
> So what evil does it cause in emacs-w3m?
I wouldn't call it evil but it makes it difficult to customise the
behaviour. For example, when I call w3m-goto-url I often don't want to
edit the url suggested. I just want to go to a new one. So I would
prefer w3m-input-url sets a default url and leaves the initial input
empty. I can use a before advice to do that but then the prompt would
not show the default url.
Leo