From 6dc755ee09b8dd1d2f93db8d4cd9396d0e812350 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 25 Jul 2026 13:55:56 -0400 Subject: [PATCH 1/3] build(vim-patch): skip doc for n/a features Fix xfuncname to support tags that target Vim mappings, options. - events - options - *'luadll'* - *'mzschemedll'* - *'mzschemegcdll'* - *'perldll'* - *'pythondll'* - *'pythonthreedll'* - *'rubydll'* - *'tcldll'* - *'winptydll'* - t_.+, termcap opts - internal variables - cli flags - ':h emacs-tags' --- scripts/vim-patch.sh | 2 +- scripts/vim_na_hunks_vim.txt | 57 +++++++++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 4b47d79e4c..eaaab1c28f 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -927,7 +927,7 @@ is_na_patch() { for file in $FILES_REMAINING; do case ${file} in runtime/doc/*.txt | runtime/pack/dist/opt/*/doc/*.txt) - HUNKS=$(git -c core.attributesfile="$NVIM_SOURCE_DIR"/.gitattributes -c 'diff.helphelp.xfuncname=^.*\*[.a-zA-Z0-9\-]+\*$' -C "${VIM_SOURCE_DIR}" \ + HUNKS=$(git -c core.attributesfile="$NVIM_SOURCE_DIR"/.gitattributes -c 'diff.helphelp.xfuncname=^.*\*[^*]+\*$' -C "${VIM_SOURCE_DIR}" \ diff-tree --no-commit-id -r -b -U0 \ '-I\*\s+For Vim version [0-9]\.[0-9]\.\s+Last change: [0-9]+ [A-Z][a-z]+ [0-9]+' \ '-I compiled \(with\|without\) .*(\|.*\|) feature\.$' \ diff --git a/scripts/vim_na_hunks_vim.txt b/scripts/vim_na_hunks_vim.txt index b981445621..80a886249c 100644 --- a/scripts/vim_na_hunks_vim.txt +++ b/scripts/vim_na_hunks_vim.txt @@ -21,6 +21,56 @@ ^test_settime(.\+test_settime( ^test_srand_seed(.\+test_srand_seed( ^test_void(.\+test_void( +\*'aleph'\* +\*'antialias'\* +\*'balloon[a-z]\+'\* +\*'bioskey'\* +\*'compatible'\* +\*'conskey'\* +\*'cryptmethod'\* +\*'cscope[a-z]\+'\* +\*'edcompatible'\* +\*'esckeys'\* +\*'guifontset'\* +\*'guiheadroom'\* +\*'guiligatures'\* +\*'guipty'\* +\*'hkmap\(p\)\?'\* +\*'highlight'\* +\*'imactivatekey'\* +\*'imcmdline'\* +\*'imdisable'\* +\*'insertmode'\* +\*'keyprotocol'\* +\*'macatsui'\* +\*'maxmem'\* +\*'maxmemtot'\* +\*'opendevice'\* +\*'pastetoggle'\* +\*'print[a-z]\+'\* +\*'prompt'\* +\*'remap'\* +\*'restorescreen'\* +\*'shelltype'\* +\*'shortname'\* +\*'swapsync'\* +\*'t_.\+'\* +\*'termcap[a-zA-Z-]*'\* +\*'termencoding'\* +\*'terse'\* +\*'textauto'\* +\*'toolbar'\* +\*'toolbariconsize'\* +\*'ttybuiltin'\* +\*'ttymouse'\* +\*'ttyscroll'\* +\*'ttytype'\* +\*'weirdinvert'\* +\*'[a-z]\+dll'\* +\*--literal\* +\*--serverlist\* +\*--servername\* +\*-v\* \*:Print\* \*:Vimuntar\* \*:behave\* @@ -32,5 +82,10 @@ \*:scriptversion\* \*:shell\* \*:smile\* -\*test_gui_[a-zA-Z0-9_]\+()\* +\*SafeStateAgain\* +\*SigUSR1\* +\*emacs[_-]tags\* \*patches-\(after-\)\?[0-9].*\* +\*test_gui_[a-zA-Z0-9_]\+()\* +\*v:none\* +\*v:sizeof[a-z]\+\* From 649bf7bcf2d919312a107b92342e27ed68538710 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 25 Jul 2026 22:19:20 -0400 Subject: [PATCH 2/3] build(vim-patch): helptoc is 100% n/a Use "gO" mapping instead. vim9script is N/A. Detect 'runtime/doc/helphelp.txt' N/A patches for helptoc. --- scripts/vim_na_hunks_vim.txt | 2 ++ scripts/vim_na_regexp.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/scripts/vim_na_hunks_vim.txt b/scripts/vim_na_hunks_vim.txt index 80a886249c..47e6fdd3e9 100644 --- a/scripts/vim_na_hunks_vim.txt +++ b/scripts/vim_na_hunks_vim.txt @@ -82,9 +82,11 @@ \*:scriptversion\* \*:shell\* \*:smile\* +\*HelpToc-mappings\* \*SafeStateAgain\* \*SigUSR1\* \*emacs[_-]tags\* +\*help-toc-install\* \*patches-\(after-\)\?[0-9].*\* \*test_gui_[a-zA-Z0-9_]\+()\* \*v:none\* diff --git a/scripts/vim_na_regexp.txt b/scripts/vim_na_regexp.txt index 9588285bc4..bdaf33e6d9 100644 --- a/scripts/vim_na_regexp.txt +++ b/scripts/vim_na_regexp.txt @@ -96,6 +96,7 @@ _example\.vim$ /tags$ README_[a-z]\+\.txt$ [_.]cp125[0-1] +helptoc netbeans textprop vimtutor From 931a6d2c14d4ed89aeaac569afe148dc93c95b87 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 27 Jul 2026 01:56:38 -0400 Subject: [PATCH 3/3] build(vim-patch): ":h builtin-function-list" is n/a --- scripts/vim_na_hunks_vim.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/vim_na_hunks_vim.txt b/scripts/vim_na_hunks_vim.txt index 47e6fdd3e9..6c6cc14b55 100644 --- a/scripts/vim_na_hunks_vim.txt +++ b/scripts/vim_na_hunks_vim.txt @@ -85,6 +85,7 @@ \*HelpToc-mappings\* \*SafeStateAgain\* \*SigUSR1\* +\*builtin-function-list\* \*emacs[_-]tags\* \*help-toc-install\* \*patches-\(after-\)\?[0-9].*\*