Patch 8.0.1213
Problem: Setting 'mzschemedll' has no effect.
Solution: Move loading .vimrc to before call to mzscheme_main().
Files: src/main.c
*** ../vim-8.0.1212/src/main.c 2017-09-27 21:46:12.419402953 +0200
--- src/main.c 2017-10-22 20:53:11.847307832 +0200
***************
*** 403,414 ****
--- 403,428 ----
debug_break_level = params.use_debug_break_level;
#endif
+ /* Reset 'loadplugins' for "-u NONE" before "--cmd" arguments.
+ * Allows for setting 'loadplugins' there. */
+ if (params.use_vimrc != NULL
+ && (STRCMP(params.use_vimrc, "NONE") == 0
+ || STRCMP(params.use_vimrc, "DEFAULTS") == 0))
+ p_lpl = FALSE;
+
+ /* Execute --cmd arguments. */
+ exe_pre_commands(¶ms);
+
+ /* Source startup scripts. */
+ source_startup_scripts(¶ms);
+
#ifdef FEAT_MZSCHEME
/*
* Newer version of MzScheme (Racket) require earlier (trampolined)
* initialisation via scheme_main_setup.
* Implement this by initialising it as early as possible
* and splitting off remaining Vim main into vim_main2().
+ * Do source startup scripts, so that 'mzschemedll' can be set.
*/
return mzscheme_main();
#else
***************
*** 427,445 ****
vim_main2(void)
{
#ifndef NO_VIM_MAIN
- /* Reset 'loadplugins' for "-u NONE" before "--cmd" arguments.
- * Allows for setting 'loadplugins' there. */
- if (params.use_vimrc != NULL
- && (STRCMP(params.use_vimrc, "NONE") == 0
- || STRCMP(params.use_vimrc, "DEFAULTS") == 0))
- p_lpl = FALSE;
-
- /* Execute --cmd arguments. */
- exe_pre_commands(¶ms);
-
- /* Source startup scripts. */
- source_startup_scripts(¶ms);
-
#ifdef FEAT_EVAL
/*
* Read all the plugin files.
--- 441,446 ----
*** ../vim-8.0.1212/src/version.c 2017-10-22 16:43:15.466595344 +0200
--- src/version.c 2017-10-22 20:54:13.714879145 +0200
***************
*** 763,764 ****
--- 763,766 ----
{ /* Add new patch number below this line */
+ /**/
+ 1213,
/**/
--
Q: How many hardware engineers does it take to change a lightbulb?
A: None. We'll fix it in software.
/// 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/d/optout.