On Sat, Feb 25, 2012 at 10:13 AM, Chong Yidong wrote: > Andreas Schwab writes: > > > Jambunathan K writes: > > > >> I am wondering why execute-kbd-macro is meddling with the current > >> buffer, (that too in not so useful way). > > > > Because it runs the normal comand loop, which always starts with > > selecting the current window's buffer. > > Pretty much. Since there's been no reponse, I'm closing this in the bug > tracker. Feel free to reopen if you think it is not resolved. > This question arose because I was trying to script input methods http://lists.gnu.org/archive/html/help-gnu-emacs/2012-02/msg00147.html As of now I get by with running batch emacs scripts without -batch and having an unnecessary window pop up. Seems to me there should be a cleaner way; on the other hand emacs is probably not the tool to run batch scripts so its ok I guess