To: vim-dev@vim.org Subject: Patch 6.1.208 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.208 Problem: Can't use the buffer number from the Python interface. Solution: Add buffer.number. (Michal Vitecek) Files: src/if_python.c *** ../vim61.207/src/if_python.c Thu Aug 22 21:41:19 2002 --- src/if_python.c Tue Oct 1 20:55:42 2002 *************** *** 1239,1246 **** if (strcmp(name, "name") == 0) return Py_BuildValue("s",this->buf->b_ffname); else if (strcmp(name,"__members__") == 0) ! return Py_BuildValue("[s]", "name"); else return Py_FindMethod(BufferMethods, self, name); } --- 1239,1248 ---- if (strcmp(name, "name") == 0) return Py_BuildValue("s",this->buf->b_ffname); + else if (strcmp(name, "number") == 0) + return Py_BuildValue("i",this->buf->b_fnum); else if (strcmp(name,"__members__") == 0) ! return Py_BuildValue("[ss]", "name", "number"); else return Py_FindMethod(BufferMethods, self, name); } *** ../vim61.207/src/version.c Sun Oct 6 18:24:17 2002 --- src/version.c Sun Oct 6 18:26:19 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 208, /**/ -- Birthdays are healthy. The more you have them, the longer you live. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///