Mercurial > vim
comparison runtime/doc/builtin.txt @ 32685:3868e8035b8c v9.0.1673
patch 9.0.1673: cannot produce a status 418 or 503 message
Commit: https://github.com/vim/vim/commit/80adaa8ae8398403ca4e9797219ea9a501fc76a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 7 18:57:40 2023 +0100
patch 9.0.1673: cannot produce a status 418 or 503 message
Problem: Cannot produce a status 418 or 503 message.
Solution: Add err_teapot().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jul 2023 20:00:05 +0200 |
parents | 695b50472e85 |
children | 6aff98e1c5f0 |
comparison
equal
deleted
inserted
replaced
32684:fa275d713294 | 32685:3868e8035b8c |
---|---|
152 digraph_get({chars}) String get the |digraph| of {chars} | 152 digraph_get({chars}) String get the |digraph| of {chars} |
153 digraph_getlist([{listall}]) List get all |digraph|s | 153 digraph_getlist([{listall}]) List get all |digraph|s |
154 digraph_set({chars}, {digraph}) Boolean register |digraph| | 154 digraph_set({chars}, {digraph}) Boolean register |digraph| |
155 digraph_setlist({digraphlist}) Boolean register multiple |digraph|s | 155 digraph_setlist({digraphlist}) Boolean register multiple |digraph|s |
156 echoraw({expr}) none output {expr} as-is | 156 echoraw({expr}) none output {expr} as-is |
157 err_teapot() Number produce error 418 | |
157 empty({expr}) Number |TRUE| if {expr} is empty | 158 empty({expr}) Number |TRUE| if {expr} is empty |
158 environ() Dict return environment variables | 159 environ() Dict return environment variables |
159 escape({string}, {chars}) String escape {chars} in {string} with '\' | 160 escape({string}, {chars}) String escape {chars} in {string} with '\' |
160 eval({string}) any evaluate {string} into its value | 161 eval({string}) any evaluate {string} into its value |
161 eventhandler() Number |TRUE| if inside an event handler | 162 eventhandler() Number |TRUE| if inside an event handler |
2174 < and to enable it again: > | 2175 < and to enable it again: > |
2175 call echoraw(&t_TI) | 2176 call echoraw(&t_TI) |
2176 < Use with care, you can mess up the terminal this way. | 2177 < Use with care, you can mess up the terminal this way. |
2177 | 2178 |
2178 | 2179 |
2180 err_teapot([{expr}]) *err_teapot()* | |
2181 Produce an error with number 418, needed for implementation of | |
2182 RFC 2325. | |
2183 If {expr} is present and it is TRUE error 503 is given, | |
2184 indicating that coffee is temporarily not available. | |
2185 If {expr} is present it must be a String. | |
2186 | |
2187 | |
2179 empty({expr}) *empty()* | 2188 empty({expr}) *empty()* |
2180 Return the Number 1 if {expr} is empty, zero otherwise. | 2189 Return the Number 1 if {expr} is empty, zero otherwise. |
2181 - A |List| or |Dictionary| is empty when it does not have any | 2190 - A |List| or |Dictionary| is empty when it does not have any |
2182 items. | 2191 items. |
2183 - A |String| is empty when its length is zero. | 2192 - A |String| is empty when its length is zero. |