]> code.delx.au - gnu-emacs-elpa/commit
Fix the case where the metar record contains M01 (bug#19401).
authorWolfgang Jenkner <wjenkner@inode.at>
Fri, 26 Feb 2016 14:22:40 +0000 (15:22 +0100)
committerWolfgang Jenkner <wjenkner@inode.at>
Fri, 26 Feb 2016 14:22:40 +0000 (15:22 +0100)
commitb412fa19e91319236536883130da66ac3385eab1
treed3aa8e10fcd87a6f575de60d241efbdac8136af0
parent04ab676879ef4970882d3262b396661d8cbc8e11
Fix the case where the metar record contains M01 (bug#19401).

* packages/metar/metar.el (metar-convert-unit): New optional argument.
(metar-convert-temperature): Use it to rewrite this function in terms of
metar-convert-unit.
Pass t as last argument to the underlying calc conversion functions so
that they return only the number, not the unit, thereby fixing the bug
in question.
packages/metar/metar.el