diff options
| author | Carl X. Su <bcbcarl@gmail.com> | 2016-03-06 03:05:51 +0800 |
|---|---|---|
| committer | Carl X. Su <bcbcarl@gmail.com> | 2016-03-06 03:05:51 +0800 |
| commit | 18f1c49548d37a6422ef10b8678b9b75bc7d6225 (patch) | |
| tree | 02e1e40cfaf8e543e54e806ad35a8a157e044cc3 /wttrin.el | |
| parent | 520c9910f21ab579f5109b53ee3d79c258766144 (diff) | |
Update buffer generation rules
Diffstat (limited to 'wttrin.el')
| -rw-r--r-- | wttrin.el | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -44,6 +44,8 @@ (message "Cannot get weather data. Maybe you inputed a wrong city name?") (let ((buffer (get-buffer-create (format "*wttr.in - %s*" city-name)))) (switch-to-buffer buffer) + (setq buffer-read-only nil) + (delete-region (point-min) (point-max)) (insert (xterm-color-filter raw-string)) (goto-char (point-min)) (re-search-forward "^$") |
