summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0096
blob: a9658784e14e5f0bb785478929b7a88dbbf4bb97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0096
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0096
Problem:    Inconsistent use of the word autocommands.
Solution:   Don't use auto-commands or "auto commands".
Files:	    src/fileio.c


*** ../vim-8.1.0095/src/fileio.c	2018-05-22 20:35:13.562009272 +0200
--- src/fileio.c	2018-06-22 21:26:06.200765470 +0200
***************
*** 8412,8430 ****
   *				    will be automatically executed for <event>
   *				    when editing a file matching <pat>, in
   *				    the current group.
!  * :autocmd <event> <pat>	    Show the auto-commands associated with
   *				    <event> and <pat>.
!  * :autocmd <event>		    Show the auto-commands associated with
   *				    <event>.
!  * :autocmd			    Show all auto-commands.
!  * :autocmd! <event> <pat> <cmd>    Remove all auto-commands associated with
   *				    <event> and <pat>, and add the command
   *				    <cmd>, for the current group.
!  * :autocmd! <event> <pat>	    Remove all auto-commands associated with
   *				    <event> and <pat> for the current group.
!  * :autocmd! <event>		    Remove all auto-commands associated with
   *				    <event> for the current group.
!  * :autocmd!			    Remove ALL auto-commands for the current
   *				    group.
   *
   *  Multiple events and patterns may be given separated by commas.  Here are
--- 8412,8430 ----
   *				    will be automatically executed for <event>
   *				    when editing a file matching <pat>, in
   *				    the current group.
!  * :autocmd <event> <pat>	    Show the autocommands associated with
   *				    <event> and <pat>.
!  * :autocmd <event>		    Show the autocommands associated with
   *				    <event>.
!  * :autocmd			    Show all autocommands.
!  * :autocmd! <event> <pat> <cmd>    Remove all autocommands associated with
   *				    <event> and <pat>, and add the command
   *				    <cmd>, for the current group.
!  * :autocmd! <event> <pat>	    Remove all autocommands associated with
   *				    <event> and <pat> for the current group.
!  * :autocmd! <event>		    Remove all autocommands associated with
   *				    <event> for the current group.
!  * :autocmd!			    Remove ALL autocommands for the current
   *				    group.
   *
   *  Multiple events and patterns may be given separated by commas.  Here are
***************
*** 8534,8540 ****
      if (!forceit && *cmd == NUL)
      {
  	/* Highlight title */
! 	MSG_PUTS_TITLE(_("\n--- Auto-Commands ---"));
      }
  
      /*
--- 8534,8540 ----
      if (!forceit && *cmd == NUL)
      {
  	/* Highlight title */
! 	MSG_PUTS_TITLE(_("\n--- Autocommands ---"));
      }
  
      /*
***************
*** 9602,9608 ****
      autocmd_match = fname;
  
  
!     /* Don't redraw while doing auto commands. */
      ++RedrawingDisabled;
      save_sourcing_name = sourcing_name;
      sourcing_name = NULL;	/* don't free this one */
--- 9602,9608 ----
      autocmd_match = fname;
  
  
!     /* Don't redraw while doing autocommands. */
      ++RedrawingDisabled;
      save_sourcing_name = sourcing_name;
      sourcing_name = NULL;	/* don't free this one */
***************
*** 9855,9861 ****
  		    : ap->buflocal_nr == apc->arg_bufnr)
  	    {
  		name = event_nr2name(apc->event);
! 		s = _("%s Auto commands for \"%s\"");
  		sourcing_name = alloc((unsigned)(STRLEN(s)
  					    + STRLEN(name) + ap->patlen + 1));
  		if (sourcing_name != NULL)
--- 9855,9861 ----
  		    : ap->buflocal_nr == apc->arg_bufnr)
  	    {
  		name = event_nr2name(apc->event);
! 		s = _("%s Autocommands for \"%s\"");
  		sourcing_name = alloc((unsigned)(STRLEN(s)
  					    + STRLEN(name) + ap->patlen + 1));
  		if (sourcing_name != NULL)
*** ../vim-8.1.0095/src/version.c	2018-06-21 22:10:04.404854396 +0200
--- src/version.c	2018-06-22 21:30:10.251289904 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     96,
  /**/

-- 
Momento mori, ergo carpe diem

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///