To: vim-dev@vim.org Subject: Patch 6.0ax.010 Fcc: outbox From: Bram Moolenaar ------------ Patch 6.0ax.010 Problem: The Edit.Save menu and the Save toolbar button didn't work when the buffer has no file name. Solution: Use a file browser to ask for a file name. Also fix the toolbar Find item in Visual mode. Files: runtime/menu.vim *** ../vim60ax.9/runtime/menu.vim Wed Sep 19 17:33:48 2001 --- runtime/menu.vim Fri Sep 21 20:29:12 2001 *************** *** 2,8 **** " Note that ":amenu" is often used to make a menu work in all modes. " " Maintainer: Bram Moolenaar ! " Last Change: 2001 Sep 19 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise " would not be recognized. See ":help 'cpoptions'". --- 2,8 ---- " Note that ":amenu" is often used to make a menu work in all modes. " " Maintainer: Bram Moolenaar ! " Last Change: 2001 Sep 21 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise " would not be recognized. See ":help 'cpoptions'". *************** *** 87,93 **** \ confirm close \ endif amenu 10.335 &File.-SEP1- : ! amenu 10.340 &File.&Save:w :confirm w amenu 10.350 &File.Save\ &As\.\.\.:sav :browse confirm saveas if has("diff") --- 87,93 ---- \ confirm close \ endif amenu 10.335 &File.-SEP1- : ! amenu 10.340 &File.&Save:w :if expand("%") == ""browse confirm welseconfirm wendif amenu 10.350 &File.Save\ &As\.\.\.:sav :browse confirm saveas if has("diff") *************** *** 718,726 **** " The GUI toolbar (for MS-Windows and GTK) if has("toolbar") ! amenu 1.10 ToolBar.Open :browse confirm e ! amenu 1.20 ToolBar.Save :w ! amenu 1.30 ToolBar.SaveAll :wa if has("printer") amenu 1.40 ToolBar.Print :hardcopy --- 718,726 ---- " The GUI toolbar (for MS-Windows and GTK) if has("toolbar") ! amenu 1.10 ToolBar.Open :browse confirm e ! amenu 1.20 ToolBar.Save :if expand("%") == ""browse confirm welseconfirm wendif ! amenu 1.30 ToolBar.SaveAll :wa if has("printer") amenu 1.40 ToolBar.Print :hardcopy *************** *** 752,757 **** --- 752,759 ---- if !has("gui_athena") amenu 1.95 ToolBar.-sep3- amenu 1.100 ToolBar.Find :promptfind + vunmenu ToolBar.Find + vmenu ToolBar.Find y:promptfind " amenu 1.110 ToolBar.FindNext n amenu 1.120 ToolBar.FindPrev N amenu 1.130 ToolBar.Replace :promptrepl *** ../vim60ax.9/src/version.c Fri Sep 21 20:19:25 2001 --- src/version.c Fri Sep 21 20:30:41 2001 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 10, /**/ -- Kisses may last for as much as, but no more than, five minutes. [real standing law in Iowa, United States of America] /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///