diff options
| author | Dave Pearson <davep@davep.org> | 2017-06-12 14:50:32 +0100 |
|---|---|---|
| committer | Dave Pearson <davep@davep.org> | 2017-06-12 14:50:32 +0100 |
| commit | 9cd7ce58757bdc1db466c89976bdac75884800d4 (patch) | |
| tree | f966e5d3241fa62741a7d29d8761a9a5f4541867 /wttrin.el | |
| parent | 00ae9ee54056b16bb20c5b35e6bd262e6bda7eb5 (diff) | |
Allow wttrin to be called with a city as an argument
This means it can be easily called from other code, with the city passed as
an argument.
Diffstat (limited to 'wttrin.el')
| -rw-r--r-- | wttrin.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -66,10 +66,10 @@ (setq buffer-read-only t))))) ;;;###autoload -(defun wttrin () - "Display weather information." - (interactive) - (wttrin-query (completing-read "City name: " wttrin-default-cities nil nil))) +(defun wttrin (city) + "Display weather information for CITY." + (interactive (list (completing-read "City name: " wttrin-default-cities nil nil))) + (wttrin-query city)) (provide 'wttrin) |
