[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19106: M-x eww: use the current URI as the default; be bound to a ke
From: |
Ivan Shmakov |
Subject: |
bug#19106: M-x eww: use the current URI as the default; be bound to a key |
Date: |
Wed, 19 Nov 2014 20:40:07 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>>>>> Ivan Shmakov <ivan@siamics.net> writes:
>> I do not copy. Care to provide an example of such a function?
>> (M-p? Did you, by a chance, mean M-n instead? At the very least,
>> C-x C-f has M-n to get buffer-file-name into the minibuffer. And
>> it’s exactly how either of my patches behave.)
> Er, yes, `M-n'.
> I thought the patch had a "default (...)" thing instead?
The second patch has both.
Specifically, when read-string is passed a (non-empty) list for
its ‘default’ argument, the car of such list is used as the
default value, while all the list elements are available for
M-n, M-p. The patch suggested just tries to make the “default
value” part clear to the user:
+ (prompt (concat "Enter URL or keywords"
+ (if uris (format " (default %s)" (car uris) ""))
+ ": ")))
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
bug#19106: M-x eww: use the current URI as the default; be bound to a key, Mark Oteiza, 2014/11/19