Karsten Hopp b5adee
To: vim_dev@googlegroups.com
Karsten Hopp b5adee
Subject: Patch 7.4.793
Karsten Hopp b5adee
Fcc: outbox
Karsten Hopp b5adee
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b5adee
Mime-Version: 1.0
Karsten Hopp b5adee
Content-Type: text/plain; charset=UTF-8
Karsten Hopp b5adee
Content-Transfer-Encoding: 8bit
Karsten Hopp b5adee
------------
Karsten Hopp b5adee
Karsten Hopp b5adee
Patch 7.4.793
Karsten Hopp b5adee
Problem:    Can't specify when not to ring the bell.
Karsten Hopp b5adee
Solution:   Add the 'belloff' option. (Christian Brabandt)
Karsten Hopp b5adee
Files:      runtime/doc/options.txt, src/edit.c, src/ex_getln.c,
Karsten Hopp b5adee
            src/hangulin.c, src/if_lua.c, src/if_mzsch.c, src/if_tcl.c,
Karsten Hopp b5adee
            src/message.c, src/misc1.c, src/normal.c, src/option.c,
Karsten Hopp b5adee
            src/option.h, src/proto/misc1.pro, src/search.c, src/spell.c
Karsten Hopp b5adee
Karsten Hopp b5adee
Karsten Hopp b5adee
*** ../vim-7.4.792/runtime/doc/options.txt	2015-07-17 14:16:49.854596682 +0200
Karsten Hopp b5adee
--- runtime/doc/options.txt	2015-07-21 17:17:27.562113662 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1126,1131 ****
Karsten Hopp b5adee
--- 1124,1170 ----
Karsten Hopp b5adee
  	expression evaluates to a |List| this is equal to using each List item
Karsten Hopp b5adee
  	as a string and putting "\n" in between them.
Karsten Hopp b5adee
  
Karsten Hopp b5adee
+ 						*'belloff'* *'bo'*
Karsten Hopp b5adee
+ 'belloff' 'bo'		string	(default "")
Karsten Hopp b5adee
+ 			global
Karsten Hopp b5adee
+ 			{not in Vi}
Karsten Hopp b5adee
+ 	Specifies for which events the bell will not be rung. It is a comma
Karsten Hopp b5adee
+ 	separated list of items. For each item that is present, the bell
Karsten Hopp b5adee
+ 	will be silenced. This is most useful to specify specific events in
Karsten Hopp b5adee
+ 	insert mode to be silenced.
Karsten Hopp b5adee
+ 
Karsten Hopp b5adee
+ 	item	    meaning when present	~
Karsten Hopp b5adee
+ 	all	    All events.
Karsten Hopp b5adee
+ 	backspace   When hitting <BS> or  and deleting results in an
Karsten Hopp b5adee
+ 		    error.
Karsten Hopp b5adee
+ 	cursor	    Fail to move around using the cursor keys or
Karsten Hopp b5adee
+ 		    <PageUp>/<PageDown> in |Insert-mode|.
Karsten Hopp b5adee
+ 	complete    Error occurred when using |i_CTRL-X_CTRL-K| or
Karsten Hopp b5adee
+ 		    |i_CTRL-X_CTRL-T|.
Karsten Hopp b5adee
+ 	copy	    Cannot copy char from insert mode using |i_CTRL-Y| or
Karsten Hopp b5adee
+ 		    |i_CTRL-E|.
Karsten Hopp b5adee
+ 	ctrlg	    Unknown Char after <C-G> in Insert mode.
Karsten Hopp b5adee
+ 	error	    Other Error occurred (e.g. try to join last line)
Karsten Hopp b5adee
+ 		    (mostly used in |Normal-mode| or |Cmdline-mode|).
Karsten Hopp b5adee
+ 	esc	    hitting <Esc> in |Normal-mode|.
Karsten Hopp b5adee
+ 	ex	    In |Visual-mode|, hitting |Q| results in an error.
Karsten Hopp b5adee
+ 	hangul	    Error occurred when using hangul input.
Karsten Hopp b5adee
+ 	insertmode  Pressing <Esc> in 'insertmode'.
Karsten Hopp b5adee
+ 	lang	    Calling the beep module for Lua/Mzscheme/TCL.
Karsten Hopp b5adee
+ 	mess	    No output available for |g<|.
Karsten Hopp b5adee
+ 	showmatch   Error occurred for 'showmatch' function.
Karsten Hopp b5adee
+ 	operator    Empty region error |cpo-E|.
Karsten Hopp b5adee
+ 	register    Unknown register after <C-R> in |Insert-mode|.
Karsten Hopp b5adee
+ 	shell	    Bell from shell output |:!|.
Karsten Hopp b5adee
+ 	spell	    Error happened on spell suggest.
Karsten Hopp b5adee
+ 	wildmode    More matches in |cmdline-completion| available
Karsten Hopp b5adee
+ 		    (depends on the 'wildmode' setting).
Karsten Hopp b5adee
+ 
Karsten Hopp b5adee
+ 	This is most useful, to fine tune when in insert mode the bell should
Karsten Hopp b5adee
+ 	be rung. For normal mode and ex commands, the bell is often rung to
Karsten Hopp b5adee
+ 	indicate that an error occurred. It can be silenced by adding the
Karsten Hopp b5adee
+ 	"error" keyword.
Karsten Hopp b5adee
+ 
Karsten Hopp b5adee
  				     *'binary'* *'bin'* *'nobinary'* *'nobin'*
Karsten Hopp b5adee
  'binary' 'bin'		boolean	(default off)
Karsten Hopp b5adee
  			local to buffer
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2720,2726 ****
Karsten Hopp b5adee
  	makes a difference for error messages, the bell will be used always
Karsten Hopp b5adee
  	for a lot of errors without a message (e.g., hitting <Esc> in Normal
Karsten Hopp b5adee
  	mode).  See 'visualbell' on how to make the bell behave like a beep,
Karsten Hopp b5adee
! 	screen flash or do nothing.
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  						*'errorfile'* *'ef'*
Karsten Hopp b5adee
  'errorfile' 'ef'	string	(Amiga default: "AztecC.Err",
Karsten Hopp b5adee
--- 2762,2769 ----
Karsten Hopp b5adee
  	makes a difference for error messages, the bell will be used always
Karsten Hopp b5adee
  	for a lot of errors without a message (e.g., hitting <Esc> in Normal
Karsten Hopp b5adee
  	mode).  See 'visualbell' on how to make the bell behave like a beep,
Karsten Hopp b5adee
! 	screen flash or do nothing. See 'belloff' to finetune when to ring the
Karsten Hopp b5adee
! 	bell.
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  						*'errorfile'* *'ef'*
Karsten Hopp b5adee
  'errorfile' 'ef'	string	(Amiga default: "AztecC.Err",
Karsten Hopp b5adee
*** ../vim-7.4.792/src/edit.c	2015-07-17 13:42:17.778373909 +0200
Karsten Hopp b5adee
--- src/edit.c	2015-07-21 17:17:27.566113624 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 982,988 ****
Karsten Hopp b5adee
  		    got_int = FALSE;
Karsten Hopp b5adee
  		}
Karsten Hopp b5adee
  		else
Karsten Hopp b5adee
! 		    vim_beep();
Karsten Hopp b5adee
  		break;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  doESCkey:
Karsten Hopp b5adee
--- 982,988 ----
Karsten Hopp b5adee
  		    got_int = FALSE;
Karsten Hopp b5adee
  		}
Karsten Hopp b5adee
  		else
Karsten Hopp b5adee
! 		    vim_beep(BO_IM);
Karsten Hopp b5adee
  		break;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  doESCkey:
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2210,2216 ****
Karsten Hopp b5adee
  							      hl_attr(HLF_E));
Karsten Hopp b5adee
  	if (emsg_silent == 0)
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
! 	    vim_beep();
Karsten Hopp b5adee
  	    setcursor();
Karsten Hopp b5adee
  	    out_flush();
Karsten Hopp b5adee
  	    ui_delay(2000L, FALSE);
Karsten Hopp b5adee
--- 2210,2216 ----
Karsten Hopp b5adee
  							      hl_attr(HLF_E));
Karsten Hopp b5adee
  	if (emsg_silent == 0)
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
! 	    vim_beep(BO_COMPL);
Karsten Hopp b5adee
  	    setcursor();
Karsten Hopp b5adee
  	    out_flush();
Karsten Hopp b5adee
  	    ui_delay(2000L, FALSE);
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 8263,8269 ****
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      if (regname == NUL || !valid_yank_reg(regname, FALSE))
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  	need_redraw = TRUE;	/* remove the '"' */
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
--- 8263,8269 ----
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      if (regname == NUL || !valid_yank_reg(regname, FALSE))
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep(BO_REG);
Karsten Hopp b5adee
  	need_redraw = TRUE;	/* remove the '"' */
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 8281,8287 ****
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  	else if (insert_reg(regname, literally) == FAIL)
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
! 	    vim_beep();
Karsten Hopp b5adee
  	    need_redraw = TRUE;	/* remove the '"' */
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  	else if (stop_insert_mode)
Karsten Hopp b5adee
--- 8281,8287 ----
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  	else if (insert_reg(regname, literally) == FAIL)
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
! 	    vim_beep(BO_REG);
Karsten Hopp b5adee
  	    need_redraw = TRUE;	/* remove the '"' */
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  	else if (stop_insert_mode)
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 8355,8361 ****
Karsten Hopp b5adee
  		  break;
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  	/* Unknown CTRL-G command, reserved for future expansion. */
Karsten Hopp b5adee
! 	default:  vim_beep();
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 8355,8361 ----
Karsten Hopp b5adee
  		  break;
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  	/* Unknown CTRL-G command, reserved for future expansion. */
Karsten Hopp b5adee
! 	default:  vim_beep(BO_CTRLG);
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 8781,8792 ****
Karsten Hopp b5adee
  	temp = curwin->w_cursor.col;
Karsten Hopp b5adee
  	if (!can_bs(BS_EOL)		/* only if "eol" included */
Karsten Hopp b5adee
  		|| do_join(2, FALSE, TRUE, FALSE, FALSE) == FAIL)
Karsten Hopp b5adee
! 	    vim_beep();
Karsten Hopp b5adee
  	else
Karsten Hopp b5adee
  	    curwin->w_cursor.col = temp;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
!     else if (del_char(FALSE) == FAIL)	/* delete char under cursor */
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      did_ai = FALSE;
Karsten Hopp b5adee
  #ifdef FEAT_SMARTINDENT
Karsten Hopp b5adee
      did_si = FALSE;
Karsten Hopp b5adee
--- 8781,8792 ----
Karsten Hopp b5adee
  	temp = curwin->w_cursor.col;
Karsten Hopp b5adee
  	if (!can_bs(BS_EOL)		/* only if "eol" included */
Karsten Hopp b5adee
  		|| do_join(2, FALSE, TRUE, FALSE, FALSE) == FAIL)
Karsten Hopp b5adee
! 	    vim_beep(BO_BS);
Karsten Hopp b5adee
  	else
Karsten Hopp b5adee
  	    curwin->w_cursor.col = temp;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
!     else if (del_char(FALSE) == FAIL)  /* delete char under cursor */
Karsten Hopp b5adee
! 	vim_beep(BO_BS);
Karsten Hopp b5adee
      did_ai = FALSE;
Karsten Hopp b5adee
  #ifdef FEAT_SMARTINDENT
Karsten Hopp b5adee
      did_si = FALSE;
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 8861,8867 ****
Karsten Hopp b5adee
  					 && curwin->w_cursor.col <= ai_col)
Karsten Hopp b5adee
  		    || (!can_bs(BS_EOL) && curwin->w_cursor.col == 0))))
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  	return FALSE;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 8861,8867 ----
Karsten Hopp b5adee
  					 && curwin->w_cursor.col <= ai_col)
Karsten Hopp b5adee
  		    || (!can_bs(BS_EOL) && curwin->w_cursor.col == 0))))
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep(BO_BS);
Karsten Hopp b5adee
  	return FALSE;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9473,9479 ****
Karsten Hopp b5adee
  	curwin->w_set_curswant = TRUE;	/* so we stay at the end */
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9473,9479 ----
Karsten Hopp b5adee
  	curwin->w_set_curswant = TRUE;	/* so we stay at the end */
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9533,9539 ****
Karsten Hopp b5adee
  	curwin->w_set_curswant = TRUE;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9533,9539 ----
Karsten Hopp b5adee
  	curwin->w_set_curswant = TRUE;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9583,9589 ****
Karsten Hopp b5adee
  	curwin->w_cursor.col = 0;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9583,9589 ----
Karsten Hopp b5adee
  	curwin->w_cursor.col = 0;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9602,9608 ****
Karsten Hopp b5adee
  	curwin->w_set_curswant = TRUE;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9602,9608 ----
Karsten Hopp b5adee
  	curwin->w_set_curswant = TRUE;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9633,9639 ****
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9633,9639 ----
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9665,9671 ****
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9665,9671 ----
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9696,9702 ****
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
--- 9696,9702 ----
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      static void
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9728,9734 ****
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  #ifdef FEAT_DND
Karsten Hopp b5adee
--- 9728,9734 ----
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
! 	vim_beep(BO_CRSR);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  #ifdef FEAT_DND
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 10146,10152 ****
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      if (lnum < 1 || lnum > curbuf->b_ml.ml_line_count)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  	return NUL;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 10146,10152 ----
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      if (lnum < 1 || lnum > curbuf->b_ml.ml_line_count)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep(BO_COPY);
Karsten Hopp b5adee
  	return NUL;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 10169,10175 ****
Karsten Hopp b5adee
      c = *ptr;
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      if (c == NUL)
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      return c;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 10169,10175 ----
Karsten Hopp b5adee
      c = *ptr;
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      if (c == NUL)
Karsten Hopp b5adee
! 	vim_beep(BO_COPY);
Karsten Hopp b5adee
      return c;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
*** ../vim-7.4.792/src/ex_getln.c	2015-07-17 13:22:43.153523709 +0200
Karsten Hopp b5adee
--- src/ex_getln.c	2015-07-21 17:17:27.566113624 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 900,906 ****
Karsten Hopp b5adee
  							       firstc != '@');
Karsten Hopp b5adee
  		    }
Karsten Hopp b5adee
  		    else
Karsten Hopp b5adee
! 			vim_beep();
Karsten Hopp b5adee
  		}
Karsten Hopp b5adee
  #ifdef FEAT_WILDMENU
Karsten Hopp b5adee
  		else if (xpc.xp_numfiles == -1)
Karsten Hopp b5adee
--- 900,906 ----
Karsten Hopp b5adee
  							       firstc != '@');
Karsten Hopp b5adee
  		    }
Karsten Hopp b5adee
  		    else
Karsten Hopp b5adee
! 			vim_beep(BO_WILD);
Karsten Hopp b5adee
  		}
Karsten Hopp b5adee
  #ifdef FEAT_WILDMENU
Karsten Hopp b5adee
  		else if (xpc.xp_numfiles == -1)
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 3710,3716 ****
Karsten Hopp b5adee
  	    if (i < xp->xp_numfiles)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
  		if (!(options & WILD_NO_BEEP))
Karsten Hopp b5adee
! 		    vim_beep();
Karsten Hopp b5adee
  		break;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
--- 3710,3716 ----
Karsten Hopp b5adee
  	    if (i < xp->xp_numfiles)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
  		if (!(options & WILD_NO_BEEP))
Karsten Hopp b5adee
! 		    vim_beep(BO_WILD);
Karsten Hopp b5adee
  		break;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
*** ../vim-7.4.792/src/hangulin.c	2010-05-15 13:04:11.000000000 +0200
Karsten Hopp b5adee
--- src/hangulin.c	2015-07-21 17:17:27.566113624 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 824,830 ****
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else if (n == AUTOMATA_ERROR)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
  	return 0;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      return len;
Karsten Hopp b5adee
--- 824,830 ----
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else if (n == AUTOMATA_ERROR)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	vim_beep(BO_HANGUL);
Karsten Hopp b5adee
  	return 0;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      return len;
Karsten Hopp b5adee
*** ../vim-7.4.792/src/if_lua.c	2015-06-27 18:36:09.110432861 +0200
Karsten Hopp b5adee
--- src/if_lua.c	2015-07-21 17:17:27.566113624 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1354,1360 ****
Karsten Hopp b5adee
      static int
Karsten Hopp b5adee
  luaV_beep(lua_State *L UNUSED)
Karsten Hopp b5adee
  {
Karsten Hopp b5adee
!     vim_beep();
Karsten Hopp b5adee
      return 0;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 1354,1360 ----
Karsten Hopp b5adee
      static int
Karsten Hopp b5adee
  luaV_beep(lua_State *L UNUSED)
Karsten Hopp b5adee
  {
Karsten Hopp b5adee
!     vim_beep(BO_LANG);
Karsten Hopp b5adee
      return 0;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
*** ../vim-7.4.792/src/if_mzsch.c	2015-07-10 16:12:43.146296071 +0200
Karsten Hopp b5adee
--- src/if_mzsch.c	2015-07-21 17:17:27.566113624 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1569,1575 ****
Karsten Hopp b5adee
      static Scheme_Object *
Karsten Hopp b5adee
  mzscheme_beep(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
Karsten Hopp b5adee
  {
Karsten Hopp b5adee
!     vim_beep();
Karsten Hopp b5adee
      return scheme_void;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 1569,1575 ----
Karsten Hopp b5adee
      static Scheme_Object *
Karsten Hopp b5adee
  mzscheme_beep(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
Karsten Hopp b5adee
  {
Karsten Hopp b5adee
!     vim_beep(BO_LANG);
Karsten Hopp b5adee
      return scheme_void;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
*** ../vim-7.4.792/src/if_tcl.c	2013-10-02 14:25:39.000000000 +0200
Karsten Hopp b5adee
--- src/if_tcl.c	2015-07-21 17:17:27.566113624 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 337,343 ****
Karsten Hopp b5adee
  	Tcl_WrongNumArgs(interp, 1, objv, NULL);
Karsten Hopp b5adee
  	return TCL_ERROR;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
!     vim_beep();
Karsten Hopp b5adee
      return TCL_OK;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 337,343 ----
Karsten Hopp b5adee
  	Tcl_WrongNumArgs(interp, 1, objv, NULL);
Karsten Hopp b5adee
  	return TCL_ERROR;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
!     vim_beep(BO_LANG);
Karsten Hopp b5adee
      return TCL_OK;
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
*** ../vim-7.4.792/src/message.c	2015-05-04 17:28:17.340445782 +0200
Karsten Hopp b5adee
--- src/message.c	2015-07-21 17:17:27.570113585 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2119,2126 ****
Karsten Hopp b5adee
  		msg_screen_putchar(' ', attr);
Karsten Hopp b5adee
  	    while (msg_col & 7);
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
! 	else if (*s == BELL)	    /* beep (from ":sh") */
Karsten Hopp b5adee
! 	    vim_beep();
Karsten Hopp b5adee
  	else
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
  #ifdef FEAT_MBYTE
Karsten Hopp b5adee
--- 2119,2126 ----
Karsten Hopp b5adee
  		msg_screen_putchar(' ', attr);
Karsten Hopp b5adee
  	    while (msg_col & 7);
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
! 	else if (*s == BELL)		/* beep (from ":sh") */
Karsten Hopp b5adee
! 	    vim_beep(BO_SH);
Karsten Hopp b5adee
  	else
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
  #ifdef FEAT_MBYTE
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2363,2369 ****
Karsten Hopp b5adee
       * weird, typing a command without output results in one line. */
Karsten Hopp b5adee
      mp = msg_sb_start(last_msgchunk);
Karsten Hopp b5adee
      if (mp == NULL || mp->sb_prev == NULL)
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
  	do_more_prompt('G');
Karsten Hopp b5adee
--- 2363,2369 ----
Karsten Hopp b5adee
       * weird, typing a command without output results in one line. */
Karsten Hopp b5adee
      mp = msg_sb_start(last_msgchunk);
Karsten Hopp b5adee
      if (mp == NULL || mp->sb_prev == NULL)
Karsten Hopp b5adee
! 	vim_beep(BO_MESS);
Karsten Hopp b5adee
      else
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
  	do_more_prompt('G');
Karsten Hopp b5adee
*** ../vim-7.4.792/src/misc1.c	2015-05-04 17:50:25.613605986 +0200
Karsten Hopp b5adee
--- src/misc1.c	2015-07-21 17:50:42.098962486 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 3699,3744 ****
Karsten Hopp b5adee
      if (emsg_silent == 0)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
  	flush_buffers(FALSE);
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  /*
Karsten Hopp b5adee
!  * give a warning for an error
Karsten Hopp b5adee
   */
Karsten Hopp b5adee
      void
Karsten Hopp b5adee
! vim_beep()
Karsten Hopp b5adee
  {
Karsten Hopp b5adee
      if (emsg_silent == 0)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	if (p_vb
Karsten Hopp b5adee
  #ifdef FEAT_GUI
Karsten Hopp b5adee
! 		/* While the GUI is starting up the termcap is set for the GUI
Karsten Hopp b5adee
! 		 * but the output still goes to a terminal. */
Karsten Hopp b5adee
! 		&& !(gui.in_use && gui.starting)
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
! 		)
Karsten Hopp b5adee
! 	{
Karsten Hopp b5adee
! 	    out_str(T_VB);
Karsten Hopp b5adee
! 	}
Karsten Hopp b5adee
! 	else
Karsten Hopp b5adee
! 	{
Karsten Hopp b5adee
! #ifdef MSDOS
Karsten Hopp b5adee
! 	    /*
Karsten Hopp b5adee
! 	     * The number of beeps outputted is reduced to avoid having to wait
Karsten Hopp b5adee
! 	     * for all the beeps to finish. This is only a problem on systems
Karsten Hopp b5adee
! 	     * where the beeps don't overlap.
Karsten Hopp b5adee
! 	     */
Karsten Hopp b5adee
! 	    if (beep_count == 0 || beep_count == 10)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		out_char(BELL);
Karsten Hopp b5adee
! 		beep_count = 1;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
! 		++beep_count;
Karsten Hopp b5adee
  #else
Karsten Hopp b5adee
! 	    out_char(BELL);
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  	/* When 'verbose' is set and we are sourcing a script or executing a
Karsten Hopp b5adee
--- 3699,3748 ----
Karsten Hopp b5adee
      if (emsg_silent == 0)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
  	flush_buffers(FALSE);
Karsten Hopp b5adee
! 	vim_beep(BO_ERROR);
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  /*
Karsten Hopp b5adee
!  * Give a warning for an error.
Karsten Hopp b5adee
   */
Karsten Hopp b5adee
      void
Karsten Hopp b5adee
! vim_beep(val)
Karsten Hopp b5adee
!     unsigned val; /* one of the BO_ values, e.g., BO_OPER */
Karsten Hopp b5adee
  {
Karsten Hopp b5adee
      if (emsg_silent == 0)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
! 	if (!((bo_flags & val) || (bo_flags & BO_ALL)))
Karsten Hopp b5adee
! 	{
Karsten Hopp b5adee
! 	    if (p_vb
Karsten Hopp b5adee
  #ifdef FEAT_GUI
Karsten Hopp b5adee
! 		    /* While the GUI is starting up the termcap is set for the
Karsten Hopp b5adee
! 		     * GUI but the output still goes to a terminal. */
Karsten Hopp b5adee
! 		    && !(gui.in_use && gui.starting)
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
! 		    )
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		out_str(T_VB);
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
! 	    {
Karsten Hopp b5adee
! #ifdef MSDOS
Karsten Hopp b5adee
! 		/*
Karsten Hopp b5adee
! 		 * The number of beeps outputted is reduced to avoid having to
Karsten Hopp b5adee
! 		 * wait for all the beeps to finish. This is only a problem on
Karsten Hopp b5adee
! 		 * systems where the beeps don't overlap.
Karsten Hopp b5adee
! 		 */
Karsten Hopp b5adee
! 		if (beep_count == 0 || beep_count == 10)
Karsten Hopp b5adee
! 		{
Karsten Hopp b5adee
! 		    out_char(BELL);
Karsten Hopp b5adee
! 		    beep_count = 1;
Karsten Hopp b5adee
! 		}
Karsten Hopp b5adee
! 		else
Karsten Hopp b5adee
! 		    ++beep_count;
Karsten Hopp b5adee
  #else
Karsten Hopp b5adee
! 		out_char(BELL);
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
+ 	    }
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  	/* When 'verbose' is set and we are sourcing a script or executing a
Karsten Hopp b5adee
*** ../vim-7.4.792/src/normal.c	2015-07-17 13:03:42.104357503 +0200
Karsten Hopp b5adee
--- src/normal.c	2015-07-21 17:20:01.308637453 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1880,1886 ****
Karsten Hopp b5adee
  	    VIsual_reselect = FALSE;	    /* don't reselect now */
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep();
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
--- 1880,1886 ----
Karsten Hopp b5adee
  	    VIsual_reselect = FALSE;	    /* don't reselect now */
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep(BO_OPER);
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1897,1903 ****
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
  		if (!gui_yank)
Karsten Hopp b5adee
  		{
Karsten Hopp b5adee
! 		    vim_beep();
Karsten Hopp b5adee
  		    CancelRedo();
Karsten Hopp b5adee
  		}
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
--- 1897,1903 ----
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
  		if (!gui_yank)
Karsten Hopp b5adee
  		{
Karsten Hopp b5adee
! 		    vim_beep(BO_OPER);
Karsten Hopp b5adee
  		    CancelRedo();
Karsten Hopp b5adee
  		}
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1915,1921 ****
Karsten Hopp b5adee
  	    VIsual_reselect = FALSE;	    /* don't reselect now */
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep();
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
--- 1915,1921 ----
Karsten Hopp b5adee
  	    VIsual_reselect = FALSE;	    /* don't reselect now */
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep(BO_OPER);
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 1989,1995 ****
Karsten Hopp b5adee
  	case OP_ROT13:
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep();
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
--- 1989,1995 ----
Karsten Hopp b5adee
  	case OP_ROT13:
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep(BO_OPER);
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2023,2029 ****
Karsten Hopp b5adee
  #ifdef FEAT_VISUALEXTRA
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep();
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
--- 2023,2029 ----
Karsten Hopp b5adee
  #ifdef FEAT_VISUALEXTRA
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep(BO_OPER);
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  	    else
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2056,2062 ****
Karsten Hopp b5adee
  		    restart_edit = restart_edit_save;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  #else
Karsten Hopp b5adee
! 	    vim_beep();
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
  	    break;
Karsten Hopp b5adee
  
Karsten Hopp b5adee
--- 2056,2062 ----
Karsten Hopp b5adee
  		    restart_edit = restart_edit_save;
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  #else
Karsten Hopp b5adee
! 	    vim_beep(BO_OPER);
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
  	    break;
Karsten Hopp b5adee
  
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2066,2072 ****
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep();
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  #ifdef FEAT_VISUALEXTRA
Karsten Hopp b5adee
--- 2066,2072 ----
Karsten Hopp b5adee
  	    if (empty_region_error)
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
  	    {
Karsten Hopp b5adee
! 		vim_beep(BO_OPER);
Karsten Hopp b5adee
  		CancelRedo();
Karsten Hopp b5adee
  	    }
Karsten Hopp b5adee
  #ifdef FEAT_VISUALEXTRA
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 5359,5365 ****
Karsten Hopp b5adee
       * Ignore 'Q' in Visual mode, just give a beep.
Karsten Hopp b5adee
       */
Karsten Hopp b5adee
      if (VIsual_active)
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      else if (!checkclearop(cap->oap))
Karsten Hopp b5adee
  	do_exmode(FALSE);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
--- 5359,5365 ----
Karsten Hopp b5adee
       * Ignore 'Q' in Visual mode, just give a beep.
Karsten Hopp b5adee
       */
Karsten Hopp b5adee
      if (VIsual_active)
Karsten Hopp b5adee
! 	vim_beep(BO_EX);
Karsten Hopp b5adee
      else if (!checkclearop(cap->oap))
Karsten Hopp b5adee
  	do_exmode(FALSE);
Karsten Hopp b5adee
  }
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 9055,9061 ****
Karsten Hopp b5adee
  	redraw_curbuf_later(INVERTED);
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else if (no_reason)
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      clearop(cap->oap);
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      /* A CTRL-C is often used at the start of a menu.  When 'insertmode' is
Karsten Hopp b5adee
--- 9055,9061 ----
Karsten Hopp b5adee
  	redraw_curbuf_later(INVERTED);
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
      else if (no_reason)
Karsten Hopp b5adee
! 	vim_beep(BO_ESC);
Karsten Hopp b5adee
      clearop(cap->oap);
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      /* A CTRL-C is often used at the start of a menu.  When 'insertmode' is
Karsten Hopp b5adee
*** ../vim-7.4.792/src/option.c	2015-07-19 14:42:16.569130206 +0200
Karsten Hopp b5adee
--- src/option.c	2015-07-21 17:17:27.574113547 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 632,637 ****
Karsten Hopp b5adee
--- 632,640 ----
Karsten Hopp b5adee
      {"beautify",    "bf",   P_BOOL|P_VI_DEF,
Karsten Hopp b5adee
  			    (char_u *)NULL, PV_NONE,
Karsten Hopp b5adee
  			    {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
Karsten Hopp b5adee
+     {"belloff",      "bo",  P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Karsten Hopp b5adee
+ 			    (char_u *)&p_bo, PV_NONE,
Karsten Hopp b5adee
+ 			    {(char_u *)"", (char_u *)0L} SCRIPTID_INIT},
Karsten Hopp b5adee
      {"binary",	    "bin",  P_BOOL|P_VI_DEF|P_RSTAT,
Karsten Hopp b5adee
  			    (char_u *)&p_bin, PV_BIN,
Karsten Hopp b5adee
  			    {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 5323,5328 ****
Karsten Hopp b5adee
--- 5326,5332 ----
Karsten Hopp b5adee
      (void)opt_strings_flags(p_cmp, p_cmp_values, &cmp_flags, TRUE);
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
      (void)opt_strings_flags(p_bkc, p_bkc_values, &bkc_flags, TRUE);
Karsten Hopp b5adee
+     (void)opt_strings_flags(p_bo, p_bo_values, &bo_flags, TRUE);
Karsten Hopp b5adee
  #ifdef FEAT_SESSION
Karsten Hopp b5adee
      (void)opt_strings_flags(p_ssop, p_ssop_values, &ssop_flags, TRUE);
Karsten Hopp b5adee
      (void)opt_strings_flags(p_vop, p_ssop_values, &vop_flags, TRUE);
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 6997,7002 ****
Karsten Hopp b5adee
--- 7001,7011 ----
Karsten Hopp b5adee
  	else if (check_opt_strings(p_bs, p_bs_values, TRUE) != OK)
Karsten Hopp b5adee
  	    errmsg = e_invarg;
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
+     else if (varp == &p_bo)
Karsten Hopp b5adee
+     {
Karsten Hopp b5adee
+ 	if (opt_strings_flags(p_bo, p_bo_values, &bo_flags, TRUE) != OK)
Karsten Hopp b5adee
+ 	    errmsg = e_invarg;
Karsten Hopp b5adee
+     }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
  #ifdef FEAT_MBYTE
Karsten Hopp b5adee
      /* 'casemap' */
Karsten Hopp b5adee
*** ../vim-7.4.792/src/option.h	2015-07-17 14:16:49.850596721 +0200
Karsten Hopp b5adee
--- src/option.h	2015-07-21 17:45:14.614105646 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 338,343 ****
Karsten Hopp b5adee
--- 338,374 ----
Karsten Hopp b5adee
  # define BKC_BREAKHARDLINK	0x010
Karsten Hopp b5adee
  EXTERN char_u	*p_bdir;	/* 'backupdir' */
Karsten Hopp b5adee
  EXTERN char_u	*p_bex;		/* 'backupext' */
Karsten Hopp b5adee
+ EXTERN char_u	*p_bo;		/* 'belloff' */
Karsten Hopp b5adee
+ EXTERN unsigned	bo_flags;
Karsten Hopp b5adee
+ # ifdef IN_OPTION_C
Karsten Hopp b5adee
+ static char *(p_bo_values[]) = {"all", "backspace", "cursor", "complete",
Karsten Hopp b5adee
+ 				 "copy", "ctrlg", "error", "esc", "ex",
Karsten Hopp b5adee
+ 				 "hangul", "insertmode", "lang", "mess",
Karsten Hopp b5adee
+ 				 "showmatch", "operator", "register", "shell", 
Karsten Hopp b5adee
+ 				 "spell", "wildmode", NULL};
Karsten Hopp b5adee
+ # endif
Karsten Hopp b5adee
+ 
Karsten Hopp b5adee
+ /* values for the 'beepon' option */
Karsten Hopp b5adee
+ #define BO_ALL		0x0001
Karsten Hopp b5adee
+ #define BO_BS		0x0002
Karsten Hopp b5adee
+ #define BO_CRSR		0x0004
Karsten Hopp b5adee
+ #define BO_COMPL	0x0008
Karsten Hopp b5adee
+ #define BO_COPY		0x0010
Karsten Hopp b5adee
+ #define BO_CTRLG	0x0020
Karsten Hopp b5adee
+ #define BO_ERROR	0x0040
Karsten Hopp b5adee
+ #define BO_ESC		0x0080
Karsten Hopp b5adee
+ #define BO_EX		0x0100
Karsten Hopp b5adee
+ #define BO_HANGUL	0x0200
Karsten Hopp b5adee
+ #define BO_IM		0x0400
Karsten Hopp b5adee
+ #define BO_LANG		0x0800
Karsten Hopp b5adee
+ #define BO_MESS		0x1000
Karsten Hopp b5adee
+ #define BO_MATCH	0x2000
Karsten Hopp b5adee
+ #define BO_OPER		0x4000
Karsten Hopp b5adee
+ #define BO_REG		0x8000
Karsten Hopp b5adee
+ #define BO_SH		0x10000
Karsten Hopp b5adee
+ #define BO_SPELL	0x20000
Karsten Hopp b5adee
+ #define BO_WILD		0x40000
Karsten Hopp b5adee
+ 
Karsten Hopp b5adee
  #ifdef FEAT_WILDIGN
Karsten Hopp b5adee
  EXTERN char_u	*p_bsk;		/* 'backupskip' */
Karsten Hopp b5adee
  #endif
Karsten Hopp b5adee
*** ../vim-7.4.792/src/proto/misc1.pro	2014-12-17 14:36:10.363090985 +0100
Karsten Hopp b5adee
--- src/proto/misc1.pro	2015-07-21 17:44:35.958476757 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 49,55 ****
Karsten Hopp b5adee
  int prompt_for_number __ARGS((int *mouse_used));
Karsten Hopp b5adee
  void msgmore __ARGS((long n));
Karsten Hopp b5adee
  void beep_flush __ARGS((void));
Karsten Hopp b5adee
! void vim_beep __ARGS((void));
Karsten Hopp b5adee
  void init_homedir __ARGS((void));
Karsten Hopp b5adee
  void free_homedir __ARGS((void));
Karsten Hopp b5adee
  void free_users __ARGS((void));
Karsten Hopp b5adee
--- 49,55 ----
Karsten Hopp b5adee
  int prompt_for_number __ARGS((int *mouse_used));
Karsten Hopp b5adee
  void msgmore __ARGS((long n));
Karsten Hopp b5adee
  void beep_flush __ARGS((void));
Karsten Hopp b5adee
! void vim_beep __ARGS((unsigned val));
Karsten Hopp b5adee
  void init_homedir __ARGS((void));
Karsten Hopp b5adee
  void free_homedir __ARGS((void));
Karsten Hopp b5adee
  void free_users __ARGS((void));
Karsten Hopp b5adee
*** ../vim-7.4.792/src/search.c	2015-07-10 14:43:29.556722605 +0200
Karsten Hopp b5adee
--- src/search.c	2015-07-21 17:17:27.574113547 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 2469,2475 ****
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      if ((lpos = findmatch(NULL, NUL)) == NULL)	    /* no match, so beep */
Karsten Hopp b5adee
! 	vim_beep();
Karsten Hopp b5adee
      else if (lpos->lnum >= curwin->w_topline && lpos->lnum < curwin->w_botline)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
  	if (!curwin->w_p_wrap)
Karsten Hopp b5adee
--- 2469,2475 ----
Karsten Hopp b5adee
      }
Karsten Hopp b5adee
  
Karsten Hopp b5adee
      if ((lpos = findmatch(NULL, NUL)) == NULL)	    /* no match, so beep */
Karsten Hopp b5adee
! 	vim_beep(BO_MATCH);
Karsten Hopp b5adee
      else if (lpos->lnum >= curwin->w_topline && lpos->lnum < curwin->w_botline)
Karsten Hopp b5adee
      {
Karsten Hopp b5adee
  	if (!curwin->w_p_wrap)
Karsten Hopp b5adee
*** ../vim-7.4.792/src/spell.c	2015-03-31 13:33:00.801524871 +0200
Karsten Hopp b5adee
--- src/spell.c	2015-07-21 17:17:27.578113509 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 10201,10207 ****
Karsten Hopp b5adee
  	 * a multi-line selection. */
Karsten Hopp b5adee
  	if (curwin->w_cursor.lnum != VIsual.lnum)
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
! 	    vim_beep();
Karsten Hopp b5adee
  	    return;
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  	badlen = (int)curwin->w_cursor.col - (int)VIsual.col;
Karsten Hopp b5adee
--- 10201,10207 ----
Karsten Hopp b5adee
  	 * a multi-line selection. */
Karsten Hopp b5adee
  	if (curwin->w_cursor.lnum != VIsual.lnum)
Karsten Hopp b5adee
  	{
Karsten Hopp b5adee
! 	    vim_beep(BO_SPELL);
Karsten Hopp b5adee
  	    return;
Karsten Hopp b5adee
  	}
Karsten Hopp b5adee
  	badlen = (int)curwin->w_cursor.col - (int)VIsual.col;
Karsten Hopp b5adee
*** ../vim-7.4.792/src/version.c	2015-07-21 15:48:13.593517912 +0200
Karsten Hopp b5adee
--- src/version.c	2015-07-21 17:17:14.162242329 +0200
Karsten Hopp b5adee
***************
Karsten Hopp b5adee
*** 743,744 ****
Karsten Hopp b5adee
--- 743,746 ----
Karsten Hopp b5adee
  {   /* Add new patch number below this line */
Karsten Hopp b5adee
+ /**/
Karsten Hopp b5adee
+     793,
Karsten Hopp b5adee
  /**/
Karsten Hopp b5adee
Karsten Hopp b5adee
-- 
Karsten Hopp b5adee
Eagles may soar, but weasels don't get sucked into jet engines.
Karsten Hopp b5adee
Karsten Hopp b5adee
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b5adee
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b5adee
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp b5adee
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///