This patch addresses some documentation issues raised in the vim_use
thread, 'indentexpr and "=" operator'. It adds references to 'lisp'
and Lisp indenting to the 'indentexpr' and = help topics.
Regards,
Gary
--
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
*** change.txt.orig 2011-05-16 14:50:44.316530000 -0700
--- change.txt 2011-05-16 18:39:49.186774000 -0700
***************
*** 522,532 ****
={motion} Filter {motion} lines through the external program
given with the 'equalprg' option. When the 'equalprg'
option is empty (this is the default), use the
! internal formatting function |C-indenting|. But when
! 'indentexpr' is not empty, it will be used instead
! |indent-expression|. When Vim was compiled without
! internal formatting then the "indent" program is used
! as a last resort.
*==*
== Filter [count] lines like with ={motion}.
--- 522,532 ----
={motion} Filter {motion} lines through the external program
given with the 'equalprg' option. When the 'equalprg'
option is empty (this is the default), use the
! internal formatting function (|C-indenting| and
! |lisp|). But when 'indentexpr' is not empty, it will
! be used instead (|indent-expression|). When Vim was
! compiled without internal formatting then the "indent"
! program is used as a last resort.
*==*
== Filter [count] lines like with ={motion}.
*** options.txt.orig 2011-05-16 14:50:44.696199000 -0700
--- options.txt 2011-05-16 18:40:00.277584000 -0700
***************
*** 4104,4110 ****
It is used when a new line is created, for the |=| operator and
in Insert mode as specified with the 'indentkeys' option.
When this option is not empty, it overrules the 'cindent' and
! 'smartindent' indenting.
When 'paste' is set this option is not used for indenting.
The expression is evaluated with |v:lnum| set to the line number for
which the indent is to be computed. The cursor is also in this line
--- 4104,4111 ----
It is used when a new line is created, for the |=| operator and
in Insert mode as specified with the 'indentkeys' option.
When this option is not empty, it overrules the 'cindent' and
! 'smartindent' indenting. When 'lisp' is set, this option is
! overridden by the Lisp indentation algorithm.
When 'paste' is set this option is not used for indenting.
The expression is evaluated with |v:lnum| set to the line number for
which the indent is to be computed. The cursor is also in this line