Mercurial > vim
comparison src/globals.h @ 31287:fa309d9af73c v9.0.0977
patch 9.0.0977: it is not easy to see what client-server commands are doing
Commit: https://github.com/vim/vim/commit/4c5678ff0c376661d4a8183a5a074a1203413b9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 30 18:12:19 2022 +0000
patch 9.0.0977: it is not easy to see what client-server commands are doing
Problem: It is not easy to see what client-server commands are doing.
Solution: Add channel log messages if ch_log() is available. Move the
channel logging and make it available with the +eval feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Nov 2022 19:15:10 +0100 |
parents | 4bc9cd62d378 |
children | 4f1e70a709bb |
comparison
equal
deleted
inserted
replaced
31286:33c4af586833 | 31287:fa309d9af73c |
---|---|
18 * after setting Rows or Columns (e.g., when starting up). | 18 * after setting Rows or Columns (e.g., when starting up). |
19 */ | 19 */ |
20 EXTERN long Rows // nr of rows in the screen | 20 EXTERN long Rows // nr of rows in the screen |
21 #ifdef DO_INIT | 21 #ifdef DO_INIT |
22 # if defined(MSWIN) | 22 # if defined(MSWIN) |
23 = 25L | 23 = 25L |
24 # else | 24 # else |
25 = 24L | 25 = 24L |
26 # endif | 26 # endif |
27 #endif | 27 #endif |
28 ; | 28 ; |
29 EXTERN long Columns INIT(= 80); // nr of columns in the screen | 29 EXTERN long Columns INIT(= 80); // nr of columns in the screen |
30 | 30 |
31 /* | 31 /* |
32 * The characters that are currently on the screen are kept in ScreenLines[]. | 32 * The characters that are currently on the screen are kept in ScreenLines[]. |
33 * It is a single block of characters, the size of the screen plus one line. | 33 * It is a single block of characters, the size of the screen plus one line. |
1216 | 1216 |
1217 EXTERN int old_indent INIT(= 0); // for ^^D command in insert mode | 1217 EXTERN int old_indent INIT(= 0); // for ^^D command in insert mode |
1218 | 1218 |
1219 EXTERN pos_T saved_cursor // w_cursor before formatting text. | 1219 EXTERN pos_T saved_cursor // w_cursor before formatting text. |
1220 #ifdef DO_INIT | 1220 #ifdef DO_INIT |
1221 = {0, 0, 0} | 1221 = {0, 0, 0} |
1222 #endif | 1222 #endif |
1223 ; | 1223 ; |
1224 | 1224 |
1225 /* | 1225 /* |
1226 * Stuff for insert mode. | 1226 * Stuff for insert mode. |
1227 */ | 1227 */ |
1228 EXTERN pos_T Insstart; // This is where the latest | 1228 EXTERN pos_T Insstart; // This is where the latest |
1587 EXTERN int autocmd_bufnr INIT(= 0); // fnum for <abuf> on cmdline | 1587 EXTERN int autocmd_bufnr INIT(= 0); // fnum for <abuf> on cmdline |
1588 EXTERN char_u *autocmd_match INIT(= NULL); // name for <amatch> on cmdline | 1588 EXTERN char_u *autocmd_match INIT(= NULL); // name for <amatch> on cmdline |
1589 EXTERN int did_cursorhold INIT(= FALSE); // set when CursorHold t'gerd | 1589 EXTERN int did_cursorhold INIT(= FALSE); // set when CursorHold t'gerd |
1590 EXTERN pos_T last_cursormoved // for CursorMoved event | 1590 EXTERN pos_T last_cursormoved // for CursorMoved event |
1591 # ifdef DO_INIT | 1591 # ifdef DO_INIT |
1592 = {0, 0, 0} | 1592 = {0, 0, 0} |
1593 # endif | 1593 # endif |
1594 ; | 1594 ; |
1595 | 1595 |
1596 EXTERN int postponed_split INIT(= 0); // for CTRL-W CTRL-] command | 1596 EXTERN int postponed_split INIT(= 0); // for CTRL-W CTRL-] command |
1597 EXTERN int postponed_split_flags INIT(= 0); // args for win_split() | 1597 EXTERN int postponed_split_flags INIT(= 0); // args for win_split() |
1598 EXTERN int postponed_split_tab INIT(= 0); // cmdmod.cmod_tab | 1598 EXTERN int postponed_split_tab INIT(= 0); // cmdmod.cmod_tab |
1599 #ifdef FEAT_QUICKFIX | 1599 #ifdef FEAT_QUICKFIX |
1749 | 1749 |
1750 # define OPT_PRINT_NUM_OPTIONS 14 | 1750 # define OPT_PRINT_NUM_OPTIONS 14 |
1751 | 1751 |
1752 EXTERN option_table_T printer_opts[OPT_PRINT_NUM_OPTIONS] | 1752 EXTERN option_table_T printer_opts[OPT_PRINT_NUM_OPTIONS] |
1753 # ifdef DO_INIT | 1753 # ifdef DO_INIT |
1754 = | 1754 = { |
1755 { | 1755 {"top", TRUE, 0, NULL, 0, FALSE}, |
1756 {"top", TRUE, 0, NULL, 0, FALSE}, | 1756 {"bottom", TRUE, 0, NULL, 0, FALSE}, |
1757 {"bottom", TRUE, 0, NULL, 0, FALSE}, | 1757 {"left", TRUE, 0, NULL, 0, FALSE}, |
1758 {"left", TRUE, 0, NULL, 0, FALSE}, | 1758 {"right", TRUE, 0, NULL, 0, FALSE}, |
1759 {"right", TRUE, 0, NULL, 0, FALSE}, | 1759 {"header", TRUE, 0, NULL, 0, FALSE}, |
1760 {"header", TRUE, 0, NULL, 0, FALSE}, | 1760 {"syntax", FALSE, 0, NULL, 0, FALSE}, |
1761 {"syntax", FALSE, 0, NULL, 0, FALSE}, | 1761 {"number", FALSE, 0, NULL, 0, FALSE}, |
1762 {"number", FALSE, 0, NULL, 0, FALSE}, | 1762 {"wrap", FALSE, 0, NULL, 0, FALSE}, |
1763 {"wrap", FALSE, 0, NULL, 0, FALSE}, | 1763 {"duplex", FALSE, 0, NULL, 0, FALSE}, |
1764 {"duplex", FALSE, 0, NULL, 0, FALSE}, | 1764 {"portrait", FALSE, 0, NULL, 0, FALSE}, |
1765 {"portrait", FALSE, 0, NULL, 0, FALSE}, | 1765 {"paper", FALSE, 0, NULL, 0, FALSE}, |
1766 {"paper", FALSE, 0, NULL, 0, FALSE}, | 1766 {"collate", FALSE, 0, NULL, 0, FALSE}, |
1767 {"collate", FALSE, 0, NULL, 0, FALSE}, | 1767 {"jobsplit", FALSE, 0, NULL, 0, FALSE}, |
1768 {"jobsplit", FALSE, 0, NULL, 0, FALSE}, | 1768 {"formfeed", FALSE, 0, NULL, 0, FALSE}, |
1769 {"formfeed", FALSE, 0, NULL, 0, FALSE}, | 1769 } |
1770 } | 1770 # endif |
1771 # endif | 1771 ; |
1772 ; | |
1773 | 1772 |
1774 // For prt_get_unit(). | 1773 // For prt_get_unit(). |
1775 # define PRT_UNIT_NONE -1 | 1774 # define PRT_UNIT_NONE -1 |
1776 # define PRT_UNIT_PERC 0 | 1775 # define PRT_UNIT_PERC 0 |
1777 # define PRT_UNIT_INCH 1 | 1776 # define PRT_UNIT_INCH 1 |
1869 | 1868 |
1870 #ifdef USE_MCH_ERRMSG | 1869 #ifdef USE_MCH_ERRMSG |
1871 // Grow array to collect error messages in until they can be displayed. | 1870 // Grow array to collect error messages in until they can be displayed. |
1872 EXTERN garray_T error_ga | 1871 EXTERN garray_T error_ga |
1873 # ifdef DO_INIT | 1872 # ifdef DO_INIT |
1874 = {0, 0, 0, 0, NULL} | 1873 = {0, 0, 0, 0, NULL} |
1875 # endif | 1874 # endif |
1876 ; | 1875 ; |
1877 #endif | 1876 #endif |
1878 | 1877 |
1879 #ifdef FEAT_NETBEANS_INTG | 1878 #ifdef FEAT_NETBEANS_INTG |
1880 EXTERN char *netbeansArg INIT(= NULL); // the -nb[:host:port:passwd] arg | 1879 EXTERN char *netbeansArg INIT(= NULL); // the -nb[:host:port:passwd] arg |
1881 EXTERN int netbeansFireChanges INIT(= 1); // send buffer changes if != 0 | 1880 EXTERN int netbeansFireChanges INIT(= 1); // send buffer changes if != 0 |
1989 # endif | 1988 # endif |
1990 EXTERN int ctrl_break_was_pressed INIT(= FALSE); | 1989 EXTERN int ctrl_break_was_pressed INIT(= FALSE); |
1991 EXTERN HINSTANCE g_hinst INIT(= NULL); | 1990 EXTERN HINSTANCE g_hinst INIT(= NULL); |
1992 #endif | 1991 #endif |
1993 | 1992 |
1993 | |
1994 #if defined(FEAT_JOB_CHANNEL) | 1994 #if defined(FEAT_JOB_CHANNEL) |
1995 EXTERN char *ch_part_names[] | |
1996 # ifdef DO_INIT | |
1997 = {"sock", "out", "err", "in"} | |
1998 # endif | |
1999 ; | |
2000 | |
1995 EXTERN int did_repeated_msg INIT(= 0); | 2001 EXTERN int did_repeated_msg INIT(= 0); |
1996 # define REPEATED_MSG_LOOKING 1 | 2002 # define REPEATED_MSG_LOOKING 1 |
1997 # define REPEATED_MSG_SAFESTATE 2 | 2003 # define REPEATED_MSG_SAFESTATE 2 |
1998 | 2004 |
1999 // This flag is set when outputting a terminal control code and reset in | 2005 // This flag is set when outputting a terminal control code and reset in |