[patch] enable z=, spellbadword() and spellsuggest() even when 'spell' is disabled

22 views
Skip to first unread message

Gary Johnson

unread,
Jun 8, 2020, 7:30:45 PM6/8/20
to vim...@googlegroups.com
I've been keeping Christian Brabandt's enable_spellchecking patch up
to date since he originally posted it to vim_dev on August 5, 2012
("Suggestion: allow 'z=' when spell-checking isn't on"). I haven't
seen any problems with it in all that time, so I thought I'd update
the documentation and tests as well and try to have it incorporated
into mainstream Vim. The patch against version 8.2.935 is attached

The patch allows the z= command and the spellbadword() and
spellsuggest() functions to work even when 'spell' is disabled.
Having the z= command available all the time is very handy for quick
spelling checks.

Regards,
Gary
gj_enable_spellchecking.diff

Yegappan Lakshmanan

unread,
Jun 8, 2020, 8:09:46 PM6/8/20
to vim_dev
Hi Gary,

Is it possible to create a PR out of this diff so that it passes the CI tests?
(Maybe Christian can create the PR).

- Yegappan

Gary Johnson

unread,
Jun 8, 2020, 8:17:43 PM6/8/20
to vim_dev
Either way, having Christian do it or me do it, is fine with me.
It's probably better in the long term if I do it, if that's now the
preferred way. I've never submitted anything to this project that
way. Where would I find instructions?

Regards,
Gary

Yegappan Lakshmanan

unread,
Jun 8, 2020, 10:01:24 PM6/8/20
to vim_dev
Hi Gary,

I use the following steps (assuming you have a github account, familiar
with Git and have created a Vim repository clone in your account).

    $ mkdir spellcheck
    $ cd spellcheck
    $ git clone https://github.com/<user>/vim
    $ cd vim
    $ git checkout -b spellcheck
    $ git push origin spellcheck
    $ git branch --set-upstream-to=origin/spellcheck spellcheck

Make the changes to the source code, build the image and test.
Note that I use separate branches to work on different sets of changes.

After making and testing the changes, you can push them to github
using: 

    $ git add <list of files>
    $ git commit -m <comment>
    $ git push origin spellcheck

To create the pull request,  in the github page (http://github.com/<user>/vim),
go to the spellcheck branch and click on the "New pull request" button.

This will create a pull request and run the various tests. Check
the following pages for the status of the tests:


Regards,
Yegappan

Gary Johnson

unread,
Jun 9, 2020, 12:15:51 AM6/9/20
to vim_dev
Hi Yegappan,

Thanks very much. I know git reasonably well and have a GitHub
account. I have plans for the rest of the evening, but I'll get
this done tomorrow morning (Pacific Daylight Time).

Regards,
Gary

Reply all
Reply to author
Forward
0 new messages