# HG changeset patch # User Stephen J. Turnbull # Date 1222500692 -32400 # Node ID e96f3aca4d63ae750580ce3d8b84201321340723 # Parent 83e35df20028429b49acb60906054e176629b1f0 Document initial position of point in `with-string-as-buffer-contents'. diff -r 83e35df20028 -r e96f3aca4d63 lisp/ChangeLog --- a/lisp/ChangeLog Mon Sep 08 08:48:22 2008 +0200 +++ b/lisp/ChangeLog Sat Sep 27 16:31:32 2008 +0900 @@ -1,3 +1,8 @@ +2008-09-27 Stephen J. Turnbull + + * subr.el (with-string-as-buffer-contents): + Document initial position of point. + 2008-08-31 Aidan Kehoe * window.el (only-window-p): New. diff -r 83e35df20028 -r e96f3aca4d63 lisp/subr.el --- a/lisp/subr.el Mon Sep 08 08:48:22 2008 +0200 +++ b/lisp/subr.el Sat Sep 27 16:31:32 2008 +0900 @@ -645,6 +645,7 @@ ;; Moved from mule-coding.el. (defmacro with-string-as-buffer-contents (str &rest body) "With the contents of the current buffer being STR, run BODY. +Point starts positioned to end of buffer. Returns the new contents of the buffer, as modified by BODY. The original current buffer is restored afterwards." `(with-temp-buffer