Sung Pae wrote: > Currently the 'lispwords' setting is global, yet three filetypes attempt > to change it on filetype/indent load: scheme, clojure, and art. > > Scheme and Clojure, in particular, are two very different Lisp variants, > but both modify 'lispwords' to influence their indenting. Both filetypes > also call `setlocal lispwords<` in undo hooks to unset the local value > of the setting, but of course, this does not work. > > The following attached patches make the 'lispwords' setting global-local > to allow different Lisps to use this setting concurrently: > > [PATCH 1/3] > Changes the scope of 'lispwords'. > > [PATCH 2/3] > Adds a simple test, appended to test100 (hope that's okay; it was > the only existing test that obviously involved global-local scope). > > [PATCH 3/3] > Corrects a bug in the Clojure runtime files regarding its handling > of 'lispwords'. > > Also moves the 'lispwords' setting from the indent script to the > ftplugin script to mirror the Scheme filetype. > > I do not foresee any backwards compatibility issues in these changes, > especially since the only two scripts that reference 'lispwords' > evidently assume that the option is already global-local.
Thanks, I'll add it in the todo list. -- Proverb: A nightingale that forgets the lyrics is a hummingbird. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
