To: [email protected]
Subject: Patch 6.0ax.010
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

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 <[email protected]>
! " Last Change:        2001 Sep 19

 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
 " <CR> 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 <[email protected]>
! " Last Change:        2001 Sep 21

 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
 " <CR> would not be recognized.  See ":help 'cpoptions'".
***************
*** 87,93 ****
       \   confirm close <Bar>
       \ endif<CR>
 amenu 10.335 &File.-SEP1-                     :
! amenu 10.340 &File.&Save<Tab>:w                       :confirm w<CR>
 amenu 10.350 &File.Save\ &As\.\.\.<Tab>:sav   :browse confirm saveas<CR>

 if has("diff")
--- 87,93 ----
       \   confirm close <Bar>
       \ endif<CR>
 amenu 10.335 &File.-SEP1-                     :
! amenu <silent> 10.340 &File.&Save<Tab>:w      :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR>
 amenu 10.350 &File.Save\ &As\.\.\.<Tab>:sav   :browse confirm saveas<CR>

 if has("diff")
***************
*** 718,726 ****

 " The GUI toolbar (for MS-Windows and GTK)
 if has("toolbar")
!   amenu 1.10 ToolBar.Open     :browse confirm e<CR>
!   amenu 1.20 ToolBar.Save     :w<CR>
!   amenu 1.30 ToolBar.SaveAll  :wa<CR>

   if has("printer")
     amenu 1.40 ToolBar.Print  :hardcopy<CR>
--- 718,726 ----

 " The GUI toolbar (for MS-Windows and GTK)
 if has("toolbar")
!   amenu 1.10 ToolBar.Open             :browse confirm e<CR>
!   amenu <silent> 1.20 ToolBar.Save    :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR>
!   amenu 1.30 ToolBar.SaveAll          :wa<CR>

   if has("printer")
     amenu 1.40 ToolBar.Print  :hardcopy<CR>
***************
*** 752,757 ****
--- 752,759 ----
   if !has("gui_athena")
     amenu 1.95 ToolBar.-sep3-         <nul>
     amenu 1.100 ToolBar.Find          :promptfind<CR>
+     vunmenu ToolBar.Find
+     vmenu ToolBar.Find                        y:promptfind <C-R>"<CR>
     amenu 1.110 ToolBar.FindNext      n
     amenu 1.120 ToolBar.FindPrev      N
     amenu 1.130 ToolBar.Replace               :promptrepl<CR>
*** ../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 -- [email protected] -- 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  ///