]> code.delx.au - gnu-emacs-elpa/commit
* ampc.el: Optimise parsing of MPD's output.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Fri, 3 Aug 2012 07:35:43 +0000 (09:35 +0200)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Fri, 3 Aug 2012 07:35:43 +0000 (09:35 +0200)
commitb8aa04dce6a094e93af72a85ba3a13dda7484e43
tree8f0a9824afa9cfb1562560e3d416a71a604310fd
parent5ca404f40fa99c0b2ae097035ace673807a919ec
* ampc.el: Optimise parsing of MPD's output.
(ampc-iterate-source): Cache delimiter if it should be bound.  Compute delimiter
regexp at compile time.
(ampc-iterate-source-output): Cache tags and tag regexps.
(ampc-extract-regexp): New macro.
(ampc-extract): Inline function.  Pass regexp rather than tag.  Refactor tag
cleaning to ampc-clean-tag.
All callers changed.
(ampc-clean-tag): New function.
(ampc-narrow-entry): Inline function.  Do not modify point.  Return start of
delimiter match.
ampc.el