Add hold 'action' to the "n" macro and ws-trim all "n" macro args
commitd48cfdf68b659a1ffd6136565d27c4a9191427ef
authorKaushal Modi <kaushal.modi@gmail.com>
Sun, 18 Jun 2017 02:12:20 +0000 (17 22:12 -0400)
committerKaushal Modi <kaushal.modi@gmail.com>
Sun, 18 Jun 2017 03:46:24 +0000 (17 23:46 -0400)
tree200d4000d4d1e8a1484dd3cca420b79df0ed1e79
parent27c2ae47fc106065bb7a444abc04d5a3c3d9723a
Add hold 'action' to the "n" macro and ws-trim all "n" macro args

* lisp/org-macro.el (org-macro--counter-increment): Rename the
optional arg RESET to ACTION, as now that action can mean setting,
resetting or even holding the specified counter.  ACTION set to
"-" will hold the previous value of the counter.  White-space is
now trimmed from the NAME arg too.

* doc/org.texi (Macro replacement): Document the new hold action.

* testing/lisp/test-org-macro.el (test-org-macro/n): Add new tests for
the hold action.
doc/org.texi
lisp/org-macro.el
testing/lisp/test-org-macro.el