To: vim-dev@vim.org Subject: Patch 7.2b.026 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2b.026 Problem: The GTK 2 file chooser causes the ~/.recently-used.xbel file to be written over and over again. This may cause a significant slowdown. (Guido Berhoerster) Solution: Don't use the GTK 2 file chooser. Files: src/gui_gtk.c *** ../vim-7.2b.025/src/gui_gtk.c Tue Jun 24 23:53:45 2008 --- src/gui_gtk.c Thu Jul 31 21:48:20 2008 *************** *** 1195,1201 **** * Implementation of the file selector related stuff */ #if defined(HAVE_GTK2) && GTK_CHECK_VERSION(2,4,0) ! # define USE_FILE_CHOOSER #endif #ifndef USE_FILE_CHOOSER --- 1195,1204 ---- * Implementation of the file selector related stuff */ #if defined(HAVE_GTK2) && GTK_CHECK_VERSION(2,4,0) ! /* This has been disabled, because the GTK library rewrites ! * ~/.recently-used.xbel every time the main loop is quit. For Vim that means ! * on just about any event. */ ! /* # define USE_FILE_CHOOSER */ #endif #ifndef USE_FILE_CHOOSER *** ../vim-7.2b.025/src/version.c Thu Jul 31 22:03:26 2008 --- src/version.c Thu Jul 31 22:28:33 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 26, /**/ -- Be nice to your kids... they'll be the ones choosing your nursing home. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///