comparison src/errors.h @ 26962:85866e069c24 v8.2.4010

patch 8.2.4010: error messages are spread out Commit: https://github.com/vim/vim/commit/9d00e4a8146862c17ed429dc6b1b43349acb2b5f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 17:49:15 2022 +0000 patch 8.2.4010: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jan 2022 19:00:06 +0100
parents d92e0d85923f
children 5de60e0d65fa
comparison
equal deleted inserted replaced
26961:33c0467b3c52 26962:85866e069c24
1859 EXTERN char e_spellfilemising_autocommand_deleted_buffer[] 1859 EXTERN char e_spellfilemising_autocommand_deleted_buffer[]
1860 INIT(= N_("E797: SpellFileMissing autocommand deleted buffer")); 1860 INIT(= N_("E797: SpellFileMissing autocommand deleted buffer"));
1861 #endif 1861 #endif
1862 EXTERN char e_id_is_reserved_for_match_nr[] 1862 EXTERN char e_id_is_reserved_for_match_nr[]
1863 INIT(= N_("E798: ID is reserved for \":match\": %d")); 1863 INIT(= N_("E798: ID is reserved for \":match\": %d"));
1864 EXTERN char e_invalid_id_nr_must_be_greater_than_or_equal_to_one[] 1864 // E799 unused
1865 INIT(= N_("E799: Invalid ID: %d (must be greater than or equal to 1)"));
1866 #ifndef FEAT_ARABIC 1865 #ifndef FEAT_ARABIC
1867 EXTERN char e_arabic_cannot_be_used_not_enabled_at_compile_time[] 1866 EXTERN char e_arabic_cannot_be_used_not_enabled_at_compile_time[]
1868 INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n")); 1867 INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n"));
1869 #endif 1868 #endif
1870 1869 EXTERN char e_id_already_taken_nr[]
1870 INIT(= N_("E801: ID already taken: %d"));
1871 EXTERN char e_invalid_id_nr_must_be_greater_than_or_equal_to_one[]
1872 INIT(= N_("E802: Invalid ID: %d (must be greater than or equal to 1)"));
1873 EXTERN char e_id_not_found_nr[]
1874 INIT(= N_("E803: ID not found: %d"));
1871 #ifdef FEAT_EVAL 1875 #ifdef FEAT_EVAL
1872 EXTERN char e_cannot_use_percent_with_float[] 1876 EXTERN char e_cannot_use_percent_with_float[]
1873 INIT(= N_("E804: Cannot use '%' with Float")); 1877 INIT(= N_("E804: Cannot use '%' with Float"));
1874 #endif 1878 #endif
1875
1876 #ifdef FEAT_FLOAT 1879 #ifdef FEAT_FLOAT
1880 EXTERN char e_using_float_as_number[]
1881 INIT(= N_("E805: Using a Float as a Number"));
1877 EXTERN char e_using_float_as_string[] 1882 EXTERN char e_using_float_as_string[]
1878 INIT(= N_("E806: using Float as a String")); 1883 INIT(= N_("E806: using Float as a String"));
1879 #endif 1884 #endif
1885 #ifdef FEAT_FLOAT
1886 EXTERN char e_expected_float_argument_for_printf[]
1887 INIT(= N_("E807: Expected Float argument for printf()"));
1888 #endif
1889 #if defined(FEAT_EVAL) && defined(FEAT_FLOAT)
1890 EXTERN char e_number_or_float_required[]
1891 INIT(= N_("E808: Number or Float required"));
1892 #endif
1893 #ifndef FEAT_EVAL
1894 EXTERN char e_hashsmall_is_not_available_without_the_eval_feature[]
1895 INIT(= N_("E809: #< is not available without the +eval feature"));
1896 #endif
1897 EXTERN char e_cannot_read_or_write_temp_files[]
1898 INIT(= N_("E810: Cannot read or write temp files"));
1899 EXTERN char e_not_allowed_to_change_buffer_information_now[]
1900 INIT(= N_("E811: Not allowed to change buffer information now"));
1901 EXTERN char e_autocommands_changed_buffer_or_buffer_name[]
1902 INIT(= N_("E812: Autocommands changed buffer or buffer name"));
1880 EXTERN char e_cannot_close_autocmd_or_popup_window[] 1903 EXTERN char e_cannot_close_autocmd_or_popup_window[]
1881 INIT(= N_("E813: Cannot close autocmd or popup window")); 1904 INIT(= N_("E813: Cannot close autocmd or popup window"));
1905 EXTERN char e_cannot_close_window_only_autocmd_window_would_remain[]
1906 INIT(= N_("E814: Cannot close window, only autocmd window would remain"));
1907 #ifdef FEAT_MZSCHEME
1908 EXTERN char e_sorry_this_command_is_disabled_the_mzscheme_libraries_could_not_be_loaded[]
1909 INIT(= N_("E815: Sorry, this command is disabled, the MzScheme libraries could not be loaded."));
1910 #endif
1911 EXTERN char e_cannot_read_patch_output[]
1912 INIT(= N_("E816: Cannot read patch output"));
1882 EXTERN char e_blowfish_big_little_endian_use_wrong[] 1913 EXTERN char e_blowfish_big_little_endian_use_wrong[]
1883 INIT(= N_("E817: Blowfish big/little endian use wrong")); 1914 INIT(= N_("E817: Blowfish big/little endian use wrong"));
1884 EXTERN char e_sha256_test_failed[] 1915 EXTERN char e_sha256_test_failed[]
1885 INIT(= N_("E818: sha256 test failed")); 1916 INIT(= N_("E818: sha256 test failed"));
1886 EXTERN char e_blowfish_test_failed[] 1917 EXTERN char e_blowfish_test_failed[]
1887 INIT(= N_("E819: Blowfish test failed")); 1918 INIT(= N_("E819: Blowfish test failed"));
1888 EXTERN char e_sizeof_uint32_isnot_four[] 1919 EXTERN char e_sizeof_uint32_isnot_four[]
1889 INIT(= N_("E820: sizeof(uint32_t) != 4")); 1920 INIT(= N_("E820: sizeof(uint32_t) != 4"));
1921 EXTERN char e_file_is_encrypted_with_unknown_method[]
1922 INIT(= N_("E821: File is encrypted with unknown method"));
1923 EXTERN char e_cannot_open_undo_file_for_reading_str[]
1924 INIT(= N_("E822: Cannot open undo file for reading: %s"));
1925 EXTERN char e_not_an_undo_file_str[]
1926 INIT(= N_("E823: Not an undo file: %s"));
1927 EXTERN char e_incompatible_undo_file_str[]
1928 INIT(= N_("E824: Incompatible undo file: %s"));
1929 EXTERN char e_corrupted_undo_file_str_str[]
1930 INIT(= N_("E825: Corrupted undo file (%s): %s"));
1931 EXTERN char e_undo_file_decryption_failed[]
1932 INIT(= N_("E826: Undo file decryption failed: %s"));
1933 EXTERN char e_undo_file_is_encrypted_str[]
1934 INIT(= N_("E827: Undo file is encrypted: %s"));
1935 EXTERN char e_cannot_open_undo_file_for_writing_str[]
1936 INIT(= N_("E828: Cannot open undo file for writing: %s"));
1937 EXTERN char e_write_error_in_undo_file_str[]
1938 INIT(= N_("E829: write error in undo file: %s"));
1939 EXTERN char e_undo_number_nr_not_found[]
1940 INIT(= N_("E830: Undo number %ld not found"));
1890 EXTERN char e_bf_key_init_called_with_empty_password[] 1941 EXTERN char e_bf_key_init_called_with_empty_password[]
1891 INIT(= N_("E831: bf_key_init() called with empty password")); 1942 INIT(= N_("E831: bf_key_init() called with empty password"));
1943 EXTERN char e_non_encrypted_file_has_encrypted_undo_file[]
1944 INIT(= N_("E832: Non-encrypted file has encrypted undo file: %s"));
1945 EXTERN char e_str_is_encrypted_and_this_version_of_vim_does_not_support_encryption[]
1946 INIT(= N_("E833: %s is encrypted and this version of Vim does not support encryption"));
1892 EXTERN char e_conflicts_with_value_of_listchars[] 1947 EXTERN char e_conflicts_with_value_of_listchars[]
1893 INIT(= N_("E834: Conflicts with value of 'listchars'")); 1948 INIT(= N_("E834: Conflicts with value of 'listchars'"));
1894 EXTERN char e_conflicts_with_value_of_fillchars[] 1949 EXTERN char e_conflicts_with_value_of_fillchars[]
1895 INIT(= N_("E835: Conflicts with value of 'fillchars'")); 1950 INIT(= N_("E835: Conflicts with value of 'fillchars'"));
1951 EXTERN char e_this_vim_cannot_execute_python_after_using_py3[]
1952 INIT(= N_("E836: This Vim cannot execute :python after using :py3"));
1953 EXTERN char e_this_vim_cannot_execute_py3_after_using_python[]
1954 INIT(= N_("E837: This Vim cannot execute :py3 after using :python"));
1896 #ifdef FEAT_NETBEANS_INTG 1955 #ifdef FEAT_NETBEANS_INTG
1897 EXTERN char e_netbeans_is_not_supported_with_this_GUI[] 1956 EXTERN char e_netbeans_is_not_supported_with_this_GUI[]
1898 INIT(= N_("E838: netbeans is not supported with this GUI")); 1957 INIT(= N_("E838: netbeans is not supported with this GUI"));
1899 #endif 1958 #endif
1900 // E839 unused 1959 // E839 unused
1960 # ifdef FEAT_COMPL_FUNC
1961 EXTERN char e_complete_function_deleted_text[]
1962 INIT(= N_("E840: Completion function deleted text"));
1963 # endif
1964 EXTERN char e_reserved_name_cannot_be_used_for_user_defined_command[]
1965 INIT(= N_("E841: Reserved name, cannot be used for user defined command"));
1966 EXTERN char e_no_line_number_to_use_for_slnum[]
1967 INIT(= N_("E842: no line number to use for \"<slnum>\""));
1968 EXTERN char e_error_while_updating_swap_file_crypt[]
1969 INIT(= N_("E843: Error while updating swap file crypt"));
1970 EXTERN char e_invalid_cchar_value[]
1971 INIT(= N_("E844: invalid cchar value"));
1972 #ifdef FEAT_SPELL
1973 EXTERN char e_insufficient_memory_word_list_will_be_incomplete[]
1974 INIT(= N_("E845: Insufficient memory, word list will be incomplete"));
1975 #endif
1976 EXTERN char e_key_code_not_set[]
1977 INIT(= N_("E846: Key code not set"));
1978 EXTERN char e_too_many_syntax_includes[]
1979 INIT(= N_("E847: Too many syntax includes"));
1980 EXTERN char e_too_many_syntax_clusters[]
1981 INIT(= N_("E848: Too many syntax clusters"));
1982 EXTERN char e_too_many_highlight_and_syntax_groups[]
1983 INIT(= N_("E849: Too many highlight and syntax groups"));
1901 #ifndef FEAT_CLIPBOARD 1984 #ifndef FEAT_CLIPBOARD
1902 EXTERN char e_invalid_register_name[] 1985 EXTERN char e_invalid_register_name[]
1903 INIT(= N_("E850: Invalid register name")); 1986 INIT(= N_("E850: Invalid register name"));
1904 #endif 1987 #endif
1988 #ifdef FEAT_GUI
1989 EXTERN char e_failed_to_create_new_process_for_GUI[]
1990 INIT(= N_("E851: Failed to create a new process for the GUI"));
1991 EXTERN char e_the_child_process_failed_to_start_GUI[]
1992 INIT(= N_("E852: The child process failed to start the GUI"));
1993 #endif
1994 EXTERN char e_duplicate_argument_name_str[]
1995 INIT(= N_("E853: Duplicate argument name: %s"));
1996 EXTERN char e_path_too_long_for_completion[]
1997 INIT(= N_("E854: path too long for completion"));
1905 EXTERN char e_autocommands_caused_command_to_abort[] 1998 EXTERN char e_autocommands_caused_command_to_abort[]
1906 INIT(= N_("E855: Autocommands caused command to abort")); 1999 INIT(= N_("E855: Autocommands caused command to abort"));
1907 #ifdef FEAT_EVAL 2000 #ifdef FEAT_EVAL
1908 EXTERN char e_assert_fails_second_arg[] 2001 EXTERN char e_assert_fails_second_arg[]
1909 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings")); 2002 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings"));
1910 EXTERN char e_dictionary_key_str_required[] 2003 EXTERN char e_dictionary_key_str_required[]
1911 INIT(= N_("E857: Dictionary key \"%s\" required")); 2004 INIT(= N_("E857: Dictionary key \"%s\" required"));
1912 #endif 2005 #endif
2006 #if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3)
2007 EXTERN char e_eval_did_not_return_valid_python_object[]
2008 INIT(= N_("E858: Eval did not return a valid python object"));
2009 EXTERN char e_failed_to_convert_returned_python_object_to_vim_value[]
2010 INIT(= N_("E859: Failed to convert returned python object to a Vim value"));
2011 #endif
2012 EXTERN char e_need_id_and_type_with_both[]
2013 INIT(= N_("E860: Need 'id' and 'type' with 'both'"));
2014 EXTERN char e_cannot_open_second_popup_with_terminal[]
2015 INIT(= N_("E861: Cannot open a second popup with a terminal"));
2016 EXTERN char e_cannot_use_g_here[]
2017 INIT(= N_("E862: Cannot use g: here"));
2018 EXTERN char e_not_allowed_for_terminal_in_popup_window[]
2019 INIT(= N_("E863: Not allowed for a terminal in a popup window"));
2020 EXTERN char e_percent_hash_can_only_be_followed_by_zero_one_two_automatic_engine_will_be_used[]
2021 INIT(= N_("E864: \\%#= can only be followed by 0, 1, or 2. The automatic engine will be used"));
2022 EXTERN char e_nfa_regexp_end_encountered_prematurely[]
2023 INIT(= N_("E865: (NFA) Regexp end encountered prematurely"));
2024 EXTERN char e_nfa_regexp_misplaced_chr[]
2025 INIT(= N_("E866: (NFA regexp) Misplaced %c"));
2026 EXTERN char e_nfa_unknown_operator_z_chr[]
2027 INIT(= N_("E867: (NFA) Unknown operator '\\z%c'"));
2028 EXTERN char e_nfa_unknown_operator_percent_chr[]
2029 INIT(= N_("E867: (NFA) Unknown operator '\\%%%c'"));
2030 EXTERN char e_error_building_nfa_with_equivalence_class[]
2031 INIT(= N_("E868: Error building NFA with equivalence class!"));
2032 EXTERN char e_nfa_unknown_operator_at_chr[]
2033 INIT(= N_("E869: (NFA) Unknown operator '\\@%c'"));
2034
2035 EXTERN char e_nfa_regexp_invalid_character_class_nr[]
2036 INIT(= N_("E877: (NFA regexp) Invalid character class: %d"));
2037
1913 #ifdef FEAT_PROP_POPUP 2038 #ifdef FEAT_PROP_POPUP
1914 EXTERN char e_number_required[] 2039 EXTERN char e_number_required[]
1915 INIT(= N_("E889: Number required")); 2040 INIT(= N_("E889: Number required"));
1916 #endif 2041 #endif
1917 #ifdef FEAT_EVAL 2042 #ifdef FEAT_EVAL
1962 EXTERN char e_job_still_running_add_bang_to_end_the_job[] 2087 EXTERN char e_job_still_running_add_bang_to_end_the_job[]
1963 INIT(= N_("E948: Job still running (add ! to end the job)")); 2088 INIT(= N_("E948: Job still running (add ! to end the job)"));
1964 #endif 2089 #endif
1965 EXTERN char e_file_changed_while_writing[] 2090 EXTERN char e_file_changed_while_writing[]
1966 INIT(= N_("E949: File changed while writing")); 2091 INIT(= N_("E949: File changed while writing"));
2092
2093 EXTERN char e_percent_value_too_large[]
2094 INIT(= N_("E951: \\% value too large"));
1967 EXTERN char e_autocommand_caused_recursive_behavior[] 2095 EXTERN char e_autocommand_caused_recursive_behavior[]
1968 INIT(= N_("E952: Autocommand caused recursive behavior")); 2096 INIT(= N_("E952: Autocommand caused recursive behavior"));
1969 EXTERN char e_cannot_use_pattern_recursively[] 2097 EXTERN char e_cannot_use_pattern_recursively[]
1970 INIT(= N_("E956: Cannot use pattern recursively")); 2098 INIT(= N_("E956: Cannot use pattern recursively"));
1971 EXTERN char e_invalid_window_number[] 2099 EXTERN char e_invalid_window_number[]