Saturday, November 8, 2014

Re: avoiding visual mode

On Fr, 07 Nov 2014, B. Elijah Griffin wrote:

> The visual.txt doc file implies visual can be disabled at compile time:
>
> {not available when the |+visual| feature was disabled when compiling}

Is that still in the docs? I can't seem to find that in the latest
distributed runtime.

> It does appear that you are correct and the code does not compile
> without +visual. Working off the 7.4 tarball:
[…]
> (I did a bare configure and then added #undefs for FEAT_VISUAL and
> FEAT_VISUALEXTRA to the end of feature.h, since FEAT_VISUAL is set in a
> couple of places in feature.h.)

Visual mode was enabled by default a "couple of commits" ago:

#v+
chrisbra@debian ~/code/vim/src (hg)-[default]- % hg log -v -r v7-4-200
Änderung: 5763:0559091e6f09
Marke: v7-4-200
Nutzer: Bram Moolenaar <bram@vim.org>
Datum: Wed Mar 12 17:56:48 2014 +0100
Dateien: src/feature.h src/version.c
Beschreibung:
updated for version 7.4.200
Problem: Too many #ifdefs in the code.
Solution: Enable FEAT_VISUAL always, await any complaints
#v-

Some commits later FEAT_VISUAL was removed completedly:
#v+
chrisbra@debian ~/code/vim/src (hg)-[default]- % hg log -v -r v7-4-212
Änderung: 5788:50dbef5e774a
Marke: v7-4-212
Nutzer: Bram Moolenaar <bram@vim.org>
Datum: Sun Mar 23 15:13:05 2014 +0100
Dateien: src/buffer.c src/charset.c src/edit.c src/eval.c src/ex_cmds.c src/ex_docmd.c src/feature.h src/fold.c src/getchar.c src/globals.h src/gui.c src/gui_mac.c src/gui_w48.c src/main.c src/mark.c src/menu.c src/misc2
Beschreibung:
updated for version 7.4.212
Problem: Now that the +visual feature is always enabled the #ifdefs for it
are not useful.
Solution: Remove the checks for FEAT_VISUAL.
#v-

Best,
Christian
--
Aufhören können, das ist nicht eine Schwäche, das ist eine Stärke.
Die Geschichte lehrt dauernd, aber sie findet keine Schüler.
-- Ingeborg Bachmann

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: