annotate runtime/ftplugin/scheme.vim @ 34134:8ae680be2a51

runtime(ftplugin): Use "*" browsefilter pattern to match "All Files" Commit: https://github.com/vim/vim/commit/93197fde0f1db09b1e495cf3eb14a8f42c318b80 Author: Doug Kearns <dougkearns@gmail.com> Date: Sun Jan 14 20:59:02 2024 +0100 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files" Problem: The "*.*" browsefilter pattern only matches all files on Windows (Daryl Lee) Solution: Use "*" to filter on all platforms but keep "*.*" as the label text on Windows. (Fixes #12685, Doug Kearns) The *.* browsefilter pattern used to match "All Files" on Windows is a legacy of the DOS 8.3 filename wildcard matching algorithm. For reasons of backward compatibility this still works on Windows to match all files, even those without an extension. However, this pattern only matches filenames containing a dot on other platforms. This often makes files without an extension difficult to access from the file dialog, e.g., "Makefile" On Windows it is still standard practice to use "*.*" for the filter label so ftplugins should use "All Files (*.*)" on Windows and "All Files (*)" on other platforms. This matches Vim's default browsefilter values. This commit also normalises the browsefilter conditional test to check for the Win32 and GTK GUI features and an unset b:browsefilter. closes: #12759 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 14 Jan 2024 21:15:03 +0100
parents 29ec2c198c8d
children 7c7432a53a6c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
1 " Vim filetype plugin file
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
2 " Language: Scheme (R7RS)
25619
29ec2c198c8d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18664
diff changeset
3 " Last Change: 2019-11-19
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
4 " Author: Evan Hanson <evhan@foldling.org>
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
5 " Maintainer: Evan Hanson <evhan@foldling.org>
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
6 " Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
25619
29ec2c198c8d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18664
diff changeset
7 " Repository: https://git.foldling.org/vim-scheme.git
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
8 " URL: https://foldling.org/vim/ftplugin/scheme.vim
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
9
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
10 if exists('b:did_ftplugin')
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
11 finish
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
12 endif
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
13
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
14 let s:cpo = &cpo
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
15 set cpo&vim
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
16
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
17 setl lisp
13437
02b3f719eacb Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
18 setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
19 setl commentstring=;%s
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
20 setl define=^\\s*(def\\k*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
21 setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
23 let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword<'
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
24
18664
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 13437
diff changeset
25 setl lispwords+=case
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
26 setl lispwords+=define
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
27 setl lispwords+=define-record-type
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
28 setl lispwords+=define-syntax
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
29 setl lispwords+=define-values
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
30 setl lispwords+=do
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
31 setl lispwords+=guard
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
32 setl lispwords+=lambda
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
33 setl lispwords+=let
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
34 setl lispwords+=let*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
35 setl lispwords+=let*-values
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
36 setl lispwords+=let-syntax
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
37 setl lispwords+=let-values
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
38 setl lispwords+=letrec
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
39 setl lispwords+=letrec*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
40 setl lispwords+=letrec-syntax
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
41 setl lispwords+=parameterize
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
42 setl lispwords+=set!
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
43 setl lispwords+=syntax-rules
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
44 setl lispwords+=unless
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
45 setl lispwords+=when
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
46
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
47 let b:undo_ftplugin = b:undo_ftplugin . ' lispwords<'
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
48
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
49 let b:did_scheme_ftplugin = 1
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
50
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
51 if exists('b:is_chicken') || exists('g:is_chicken')
25619
29ec2c198c8d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18664
diff changeset
52 runtime! ftplugin/chicken.vim
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
53 endif
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
54
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
55 unlet b:did_scheme_ftplugin
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
56 let b:did_ftplugin = 1
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
57 let &cpo = s:cpo
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5425
diff changeset
58 unlet s:cpo