all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 5d4071b3f30f80c9d535163c49589555a607d331 2009 bytes (raw)
name: gnu/packages/patches/vim-8.0.0004.patch 	 # note: path name is non-authoritative(*)

 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
 
To: vim_dev@googlegroups.com
Subject: Patch 8.0.0004
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.0.0004
Problem:    A string argument for function() that is not a function name
            results in an error message with NULL. (Christian Brabandt)
Solution:   Use the argument for the error message.
Files:      src/evalfunc.c, src/testdir/test_expr.vim


*** vim80/src/evalfunc.c	2016-09-10 13:39:30.000000000 +0200
--- vim80/src/evalfunc.c	2016-09-13 23:04:02.917786784 +0200
***************
*** 3612,3618 ****
  
      if (s == NULL || *s == NUL || (use_string && VIM_ISDIGIT(*s))
  					 || (is_funcref && trans_name == NULL))
! 	EMSG2(_(e_invarg2), s);
      /* Don't check an autoload name for existence here. */
      else if (trans_name != NULL && (is_funcref
  				? find_func(trans_name) == NULL
--- 3612,3618 ----
  
      if (s == NULL || *s == NUL || (use_string && VIM_ISDIGIT(*s))
  					 || (is_funcref && trans_name == NULL))
! 	EMSG2(_(e_invarg2), use_string ? get_tv_string(&argvars[0]) : s);
      /* Don't check an autoload name for existence here. */
      else if (trans_name != NULL && (is_funcref
  				? find_func(trans_name) == NULL
*** vim80/src/testdir/test_expr.vim	2016-09-04 21:41:26.000000000 +0200
--- vim80/src/testdir/test_expr.vim	2016-09-13 23:03:20.426385157 +0200
***************
*** 439,444 ****
--- 439,447 ----
    let s:fref = function(s:f)
    call assert_equal(v:t_string, s:fref('x'))
    call assert_fails("call function('s:f')", 'E700:')
+ 
+   call assert_fails("call function('foo()')", 'E475:')
+   call assert_fails("call function('foo()')", 'foo()')
  endfunc
  
  func Test_funcref()
*** vim80/src/version.c	2016-09-12 19:51:07.689659657 +0200
--- vim80/src/version.c	2016-09-14 22:06:19.364036465 +0200
***************
*** 766,767 ****
--- 766,769 ----
  {   /* Add new patch number below this line */
+ /**/
+     4,
  /**/

-- 

debug log:

solving 5d4071b ...
found 5d4071b in https://yhetil.org/guix/20161017163240.15227-2-ng0@we.make.ritual.n0.is/ ||
	https://yhetil.org/guix/20161015203841.19904-2-ng0@we.make.ritual.n0.is/

applying [1/1] https://yhetil.org/guix/20161017163240.15227-2-ng0@we.make.ritual.n0.is/
diff --git a/gnu/packages/patches/vim-8.0.0004.patch b/gnu/packages/patches/vim-8.0.0004.patch
new file mode 100644
index 0000000..5d4071b

1:27: trailing whitespace.
  
1:29: space before tab in indent.
  					 || (is_funcref && trans_name == NULL))
1:33: space before tab in indent.
  				? find_func(trans_name) == NULL
1:35: trailing whitespace.
  
1:37: space before tab in indent.
  					 || (is_funcref && trans_name == NULL))
Checking patch gnu/packages/patches/vim-8.0.0004.patch...
Applied patch gnu/packages/patches/vim-8.0.0004.patch cleanly.
warning: squelched 4 whitespace errors
warning: 9 lines add whitespace errors.

skipping https://yhetil.org/guix/20161015203841.19904-2-ng0@we.make.ritual.n0.is/ for 5d4071b
index at:
100644 5d4071b3f30f80c9d535163c49589555a607d331	gnu/packages/patches/vim-8.0.0004.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.