Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42295 Details for
Bug 66341
vimspell doesn't like latest aspell update
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
vimspell-1.84.patch
vimspell-1.84.patch (text/plain), 7.17 KB, created by
Molchanov Alexander
on 2004-10-21 01:18:13 UTC
(
hide
)
Description:
vimspell-1.84.patch
Filename:
MIME Type:
Creator:
Molchanov Alexander
Created:
2004-10-21 01:18:13 UTC
Size:
7.17 KB
patch
obsolete
>--- vimspell.vim.old 2004-04-22 19:47:29.000000000 +0400 >+++ vimspell.vim.new 2004-10-21 12:10:12.811142448 +0400 >@@ -445,11 +445,15 @@ endfunction > " Function: s:SpellVerifyLanguage(a:language) {{{2 > " Verify the availability of the language for the previously selected > " spell checker. > function! s:SpellVerifyLanguage(language) > if b:spell_executable == "ispell" || b:spell_executable == "aspell" >- let l:dirs = system("echo word |". b:spell_executable ." -l -d". a:language ) >+ if b:spell_executable == "ispell" >+ let l:dirs = system("echo word |". b:spell_executable ." -l -d". a:language ) >+ else >+ let l:dirs = system("echo word |". b:spell_executable ." -d". a:language . " list ") >+ endif > if v:shell_error != 0 > echo "Language '". a:language ."' not known from ". b:spell_executable ."." > return 1 > endif > else >@@ -470,12 +474,17 @@ function! s:SpellGuessLanguage() > > let l:mlang=substitute(b:spell_internal_language_list,",.*","","") > > while matchstr(l:mlang,",") == "" > \ && l:langnum <= s:SpellGetOption("spell_guess_max_languages",3) >- let l:errors=system(b:spell_executable . b:spell_options . " -l -d " . >- \ l:mlang . " < " . escape(expand("%"),' \')) >+ if b:spell_executable == "ispell" >+ let l:errors=system(b:spell_executable . b:spell_options . " -l -d " . >+ \ l:mlang . " < " . escape(expand("%"),' \')) >+ else >+ let l:errors=system(b:spell_executable . b:spell_options . " -d " . >+ \ l:mlang . " list " . " < " . escape(expand("%"),' \')) >+ endif > let l:errors=escape(l:errors,'"') > let l:index=stridx(l:errors, "\n") > let l:spellcount=0 > let l:errorcount=0 > >@@ -527,12 +536,13 @@ function! s:SpellGetDicoList() > let l:dirfiles = substitute(l:dirfiles,"\.hash","","g") > let l:dirfiles = substitute(l:dirfiles,"\n",",","g") > elseif b:spell_executable == "aspell" > " Thanks to Alexandre Beneteau <alexandre.beneteau@wanadoo.fr> for showing > " me a way to get aspell directory for dictionaries. >- let l:dirs = system('aspell config | '. s:grep . ' "dict-dir current"') >- let l:dirs = substitute(l:dirs,'^.*dict-dir current: \(\/.*\)','\1',"") >+" let l:dirs = system('aspell config | '. s:grep . ' "dict-dir current"') >+" let l:dirs = substitute(l:dirs,'^.*dict-dir current: \(\/.*\)','\1',"") >+ let l:dirs = system('aspell config dict-dir') > "don't know, why there is a <NUL> char at the end of line ? Get rid of it. > let l:dirs = substitute(l:dirs,".$","","") > > let l:dirfiles = glob("`".s:find . l:dirs . s:findname . '"*.multi"' . s:findopt ."`") > let l:dirfiles = substitute(l:dirfiles,"\/[^\n]*\/","","g") >@@ -650,11 +660,11 @@ function! s:SpellSetupBuffer() > > " This flag indicate that spell buffer is being, or has been setup. > " It's put here to avoid possible reentering problem. > let b:spell_buffer_setup=1 > >- call s:SpellSetSpellchecker(s:SpellGetOption("spell_executable","ispell")) >+ call s:SpellSetSpellchecker(s:SpellGetOption("spell_executable","aspell")) > > let b:spell_filter=s:SpellGetOption("spell_filter","") > if exists("b:spell_filter") && b:spell_filter != "" > let b:spell_filter_pipe=b:spell_filter . "|" > else >@@ -711,11 +721,16 @@ function! s:SpellSetupBuffer() > endif > endif > > call s:SpellCheckLanguage() > >- call s:SpellTuneCommentSyntax(&l:ft) >+ " We don't want to make any changes to syntax highlighting if we're editing >+ " a directory rather than a file, because this upsets the builtin >+ " explorer.vim plugin. >+ if ! isdirectory(expand("%")) >+ call s:SpellTuneCommentSyntax(&l:ft) >+ endif > > call s:SpellSaveIskeyword() > > " user need to be able to backspace before the start of insertion if > " spell_insert_mode is set... (else backspace won't work for the user...) >@@ -743,10 +758,11 @@ endfunction > " 1 if new document installed, 0 otherwise. > " Note: Cleaned and generalized by guo-peng Wen > "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > > function! s:SpellInstallDocumentation(full_name, revision) >+ return 0 > " Name of the document path based on the system we use: > if (has("unix")) > " On UNIX like system, using forward slash: > let l:slash_char = '/' > let l:mkdir_cmd = ':silent !mkdir -p ' >@@ -895,15 +911,26 @@ function! s:SpellCheck() > let b:spellerrors="nonexisitingwordinthisdociumnt\\" > let b:spellcorrected="nonexisitingwordinthisdociumnt" > let b:spellicorrected="nonexisitingwordinthisdociumnt" > > if exists("b:spell_filter") && b:spell_filter != "" >- let l:errors=system('cat '. escape(l:filename,' \')."|".b:spell_filter_pipe >- \. b:spell_executable . b:spell_options . " -l -d ".b:spell_language) >+ if b:spell_executable == "ispell" >+ let l:errors=system('cat '. escape(l:filename,' \')."|".b:spell_filter_pipe >+ \. b:spell_executable . b:spell_options . " -l -d ".b:spell_language) >+ else >+ let l:errors=system('cat '. escape(l:filename,' \')."|".b:spell_filter_pipe >+ \. b:spell_executable . b:spell_options . " -d ".b:spell_language >+ \. " list ") >+ endif > else >- let l:errors=system(b:spell_executable . b:spell_options >- \. " -l -d ".b:spell_language." < ".escape(l:filename,' \')) >+ if b:spell_executable == "ispell" >+ let l:errors=system(b:spell_executable . b:spell_options >+ \. " -l -d ".b:spell_language." < ".escape(l:filename,' \') ) >+ else >+ let l:errors=system(b:spell_executable . b:spell_options >+ \. " -d ".b:spell_language." list "." < ".escape(l:filename,' \') ) >+ endif > endif > > let l:errors=escape(l:errors,'"') > let l:index=stridx(l:errors, "\n") > let l:spellcount=0 >@@ -1015,12 +1042,17 @@ function! s:SpellCheckWindow() > let b:spellerrors="nonexisitingwordinthisdociumnt\\" > let b:spellcorrected="nonexisitingwordinthisdociumnt" > let b:spellicorrected="nonexisitingwordinthisdociumnt" > endif > >- let l:errors=system(b:spell_executable . b:spell_options >- \ . " -l -d ".b:spell_language." < ".w:tempname) >+ if b:spell_executable == "ispell" >+ let l:errors=system(b:spell_executable . b:spell_options >+ \ . " -l -d ".b:spell_language." < ".w:tempname) >+ else >+ let l:errors=system(b:spell_executable . b:spell_options >+ \ . " -d ".b:spell_language. " list " ." < ".w:tempname) >+ endif > let l:errors=escape(l:errors,'"') > let l:index=stridx(l:errors, "\n") > > while (l:index > 0) > " use stridx/strpart instead of sustitude, because it is faster >@@ -1087,12 +1119,17 @@ function! s:SpellCheckLine() > let b:spellerrors="nonexisitingwordinthisdociumnt\\" > let b:spellcorrected="nonexisitingwordinthisdociumnt" > let b:spellicorrected="nonexisitingwordinthisdociumnt" > endif > >- let l:ispexpr = "echo \"".escape(getline('.'),'\"<>')."\"|".b:spell_filter_pipe >- \ . b:spell_executable . b:spell_options . ' -l -d '.b:spell_language >+ if b:spell_executable == "ispell" >+ let l:ispexpr = "echo \"".escape(getline('.'),'\"<>')."\"|".b:spell_filter_pipe >+ \ . b:spell_executable . b:spell_options . ' -l -d '.b:spell_language >+ else >+ let l:ispexpr = "echo \"".escape(getline('.'),'\"<>')."\"|".b:spell_filter_pipe >+ \ . b:spell_executable . b:spell_options . ' -d '.b:spell_language . " list " >+ endif > let l:errors=system(l:ispexpr) > let l:errors=escape(l:errors,'"') > let l:index=stridx(l:errors, "\n") > > while (l:index > 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66341
:
41361
| 42295