annotate runtime/ftplugin/postscr.vim @ 33410:b14a47736a1c v9.0.1963

patch 9.0.1963: Configure script may not detect xattr Commit: https://github.com/vim/vim/commit/6de4e58cf27a3bb6e81653ca63b77e29d1bb46f2 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Sep 30 14:19:14 2023 +0200 patch 9.0.1963: Configure script may not detect xattr Problem: Configure script may not detect xattr correctly Solution: include sys/xattr instead of attr/xattr, make Test_write_with_xattr_support() test xattr feature correctly This also applies to the Smack security feature, so change the include and configure script for it as well. closes: #13229 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Sep 2023 14:30:03 +0200
parents 1be42b88900e
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
2 " Language: PostScript
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
3 " Maintainer: Mike Williams <mrw@eandem.co.uk>
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3281
diff changeset
4 " Last Change: 24th April 2012
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
14 let s:cpo_save = &cpo
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 set cpo&vim
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " PS comment formatting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 setlocal comments=b:%
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 setlocal formatoptions-=t formatoptions+=rol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Define patterns for the matchit macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 if !exists("b:match_words")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 let b:match_ignorecase = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Define patterns for the browse file filter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if has("gui_win32") && !exists("b:browsefilter")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let b:browsefilter = "PostScript Files (*.ps)\t*.ps\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \ "EPS Files (*.eps)\t*.eps\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 \ "All Files (*.*)\t*.*\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 endif
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
33
3493
1be42b88900e Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents: 3492
diff changeset
34 let b:undo_ftplugin = "setlocal comments< formatoptions<"
1be42b88900e Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents: 3492
diff changeset
35 \ . "| unlet! b:browsefiler b:match_ignorecase b:match_words"
1be42b88900e Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents: 3492
diff changeset
36
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
37 let &cpo = s:cpo_save
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
38 unlet s:cpo_save