comparison src/errors.h @ 26958:d92e0d85923f v8.2.4008

patch 8.2.4008: error messages are spread out Commit: https://github.com/vim/vim/commit/677658ae49de31fe2e5b1fa6d93fdfab85a4362e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 16:09:06 2022 +0000 patch 8.2.4008: 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 17:15:05 +0100
parents b34ddbca305c
children 85866e069c24
comparison
equal deleted inserted replaced
26957:e5b81e2bed22 26958:d92e0d85923f
1717 INIT(= N_("E741: Value is locked: %s")); 1717 INIT(= N_("E741: Value is locked: %s"));
1718 EXTERN char e_cannot_change_value[] 1718 EXTERN char e_cannot_change_value[]
1719 INIT(= N_("E742: Cannot change value")); 1719 INIT(= N_("E742: Cannot change value"));
1720 EXTERN char e_cannot_change_value_of_str[] 1720 EXTERN char e_cannot_change_value_of_str[]
1721 INIT(= N_("E742: Cannot change value of %s")); 1721 INIT(= N_("E742: Cannot change value of %s"));
1722 EXTERN char e_variable_nested_too_deep_for_unlock[]
1723 INIT(= N_("E743: variable nested too deep for (un)lock"));
1722 #endif 1724 #endif
1723 #ifdef FEAT_NETBEANS_INTG 1725 #ifdef FEAT_NETBEANS_INTG
1724 EXTERN char e_netbeans_does_not_allow_changes_in_read_only_files[] 1726 EXTERN char e_netbeans_does_not_allow_changes_in_read_only_files[]
1725 INIT(= N_("E744: NetBeans does not allow changes in read-only files")); 1727 INIT(= N_("E744: NetBeans does not allow changes in read-only files"));
1726 #endif 1728 #endif
1729 #ifdef FEAT_EVAL
1730 EXTERN char e_using_list_as_number[]
1731 INIT(= N_("E745: Using a List as a Number"));
1732 EXTERN char e_function_name_does_not_match_script_file_name_str[]
1733 INIT(= N_("E746: Function name does not match script file name: %s"));
1734 #endif
1735 EXTERN char e_cannot_change_directory_buffer_is_modified_add_bang_to_override[]
1736 INIT(= N_("E747: Cannot change directory, buffer is modified (add ! to override)"));
1737 EXTERN char e_no_previously_used_register[]
1738 INIT(= N_("E748: No previously used register"));
1727 EXTERN char e_empty_buffer[] 1739 EXTERN char e_empty_buffer[]
1728 INIT(= N_("E749: empty buffer")); 1740 INIT(= N_("E749: empty buffer"));
1741 #ifdef FEAT_PROFILE
1742 EXTERN char e_first_use_profile_start_fname[]
1743 INIT(= N_("E750: First use \":profile start {fname}\""));
1744 #endif
1729 #ifdef FEAT_SPELL 1745 #ifdef FEAT_SPELL
1746 EXTERN char e_output_file_name_must_not_have_region_name[]
1747 INIT(= N_("E751: Output file name must not have region name"));
1748 EXTERN char e_no_previous_spell_replacement[]
1749 INIT(= N_("E752: No previous spell replacement"));
1750 EXTERN char e_not_found_str[]
1751 INIT(= N_("E753: Not found: %s"));
1752 EXTERN char e_only_up_to_nr_regions_supported[]
1753 INIT(= N_("E754: Only up to %d regions supported"));
1754 EXTERN char e_invalid_region_in_str[]
1755 INIT(= N_("E755: Invalid region in %s"));
1730 EXTERN char e_spell_checking_is_not_possible[] 1756 EXTERN char e_spell_checking_is_not_possible[]
1731 INIT(= N_("E756: Spell checking is not possible")); 1757 INIT(= N_("E756: Spell checking is not possible"));
1732 #endif 1758 EXTERN char e_this_does_not_look_like_spell_file[]
1759 INIT(= N_("E757: This does not look like a spell file"));
1760 EXTERN char e_truncated_spell_file[]
1761 INIT(= N_("E758: Truncated spell file"));
1762 EXTERN char e_format_error_in_spell_file[]
1763 INIT(= N_("E759: Format error in spell file"));
1764 EXTERN char e_no_word_count_in_str[]
1765 INIT(= N_("E760: No word count in %s"));
1766 EXTERN char e_format_error_in_affix_file_fol_low_or_upp[]
1767 INIT(= N_("E761: Format error in affix file FOL, LOW or UPP"));
1768 EXTERN char e_character_in_fol_low_or_upp_is_out_of_range[]
1769 INIT(= N_("E762: Character in FOL, LOW or UPP is out of range"));
1770 EXTERN char e_word_characters_differ_between_spell_files[]
1771 INIT(= N_("E763: Word characters differ between spell files"));
1733 #if defined(FEAT_SYN_HL) || defined(FEAT_COMPL_FUNC) 1772 #if defined(FEAT_SYN_HL) || defined(FEAT_COMPL_FUNC)
1734 EXTERN char e_option_str_is_not_set[] 1773 EXTERN char e_option_str_is_not_set[]
1735 INIT(= N_("E764: Option '%s' is not set")); 1774 INIT(= N_("E764: Option '%s' is not set"));
1736 #endif 1775 #endif
1776 EXTERN char e_spellfile_does_not_have_nr_entries[]
1777 INIT(= N_("E765: 'spellfile' does not have %d entries"));
1778 #endif
1779 EXTERN char e_insufficient_arguments_for_printf[]
1780 INIT(= N_("E766: Insufficient arguments for printf()"));
1781 EXTERN char e_too_many_arguments_to_printf[]
1782 INIT(= N_("E767: Too many arguments for printf()"));
1783 EXTERN char e_swap_file_exists_str_silent_overrides[]
1784 INIT(= N_("E768: Swap file exists: %s (:silent! overrides)"));
1785 EXTERN char e_missing_rsb_after_str_lsb[]
1786 INIT(= N_("E769: Missing ] after %s["));
1787 #ifdef FEAT_SPELL
1788 EXTERN char e_unsupported_section_in_spell_file[]
1789 INIT(= N_("E770: Unsupported section in spell file"));
1790 EXTERN char e_old_spell_file_needs_to_be_updated[]
1791 INIT(= N_("E771: Old spell file, needs to be updated"));
1792 EXTERN char e_spell_file_is_for_newer_version_of_vim[]
1793 INIT(= N_("E772: Spell file is for newer version of Vim"));
1794 #endif
1795 EXTERN char e_symlink_loop_for_str[]
1796 INIT(= N_("E773: Symlink loop for \"%s\""));
1797 EXTERN char e_operatorfunc_is_empty[]
1798 INIT(= N_("E774: 'operatorfunc' is empty"));
1799 #ifndef FEAT_EVAL
1800 EXTERN char e_eval_feature_not_available[]
1801 INIT(= N_("E775: Eval feature not available"));
1802 #endif
1737 #ifdef FEAT_QUICKFIX 1803 #ifdef FEAT_QUICKFIX
1738 EXTERN char e_no_location_list[] 1804 EXTERN char e_no_location_list[]
1739 INIT(= N_("E776: No location list")); 1805 INIT(= N_("E776: No location list"));
1806 #endif
1807 EXTERN char e_string_or_list_expected[]
1808 INIT(= N_("E777: String or List expected"));
1809 #ifdef FEAT_SPELL
1810 EXTERN char e_this_does_not_look_like_sug_file_str[]
1811 INIT(= N_("E778: This does not look like a .sug file: %s"));
1812 EXTERN char e_old_sug_file_needs_to_be_updated_str[]
1813 INIT(= N_("E779: Old .sug file, needs to be updated: %s"));
1814 EXTERN char e_sug_file_is_for_newer_version_of_vim_str[]
1815 INIT(= N_("E780: .sug file is for newer version of Vim: %s"));
1816 EXTERN char e_sug_file_doesnt_match_spl_file_str[]
1817 INIT(= N_("E781: .sug file doesn't match .spl file: %s"));
1818 EXTERN char e_error_while_reading_sug_file_str[]
1819 INIT(= N_("E782: error while reading .sug file: %s"));
1820 EXTERN char e_duplicate_char_in_map_entry[]
1821 INIT(= N_("E783: duplicate char in MAP entry"));
1822 #endif
1823 EXTERN char e_cannot_close_last_tab_page[]
1824 INIT(= N_("E784: Cannot close last tab page"));
1825 EXTERN char e_complete_can_only_be_used_in_insert_mode[]
1826 INIT(= N_("E785: complete() can only be used in Insert mode"));
1827 EXTERN char e_range_not_allowed[]
1828 INIT(= N_("E786: Range not allowed"));
1829 EXTERN char e_buffer_changed_unexpectedly[]
1830 INIT(= N_("E787: Buffer changed unexpectedly"));
1831 EXTERN char e_not_allowed_to_edit_another_buffer_now[]
1832 INIT(= N_("E788: Not allowed to edit another buffer now"));
1833 EXTERN char e_error_missing_rsb_str[]
1834 INIT(= N_("E789: Missing ']': %s"));
1835 EXTERN char e_undojoin_is_not_allowed_after_undo[]
1836 INIT(= N_("E790: undojoin is not allowed after undo"));
1837 EXTERN char e_empty_keymap_entry[]
1838 INIT(= N_("E791: Empty keymap entry"));
1839 EXTERN char e_empty_menu_name[]
1840 INIT(= N_("E792: Empty menu name"));
1841 #ifdef FEAT_DIFF
1842 EXTERN char e_no_other_buffer_in_diff_mode_is_modifiable[]
1843 INIT(= N_("E793: No other buffer in diff mode is modifiable"));
1740 #endif 1844 #endif
1741 #ifdef FEAT_EVAL 1845 #ifdef FEAT_EVAL
1742 EXTERN char e_cannot_set_variable_in_sandbox[] 1846 EXTERN char e_cannot_set_variable_in_sandbox[]
1743 INIT(= N_("E794: Cannot set variable in the sandbox")); 1847 INIT(= N_("E794: Cannot set variable in the sandbox"));
1744 EXTERN char e_cannot_set_variable_in_sandbox_str[] 1848 EXTERN char e_cannot_set_variable_in_sandbox_str[]
1745 INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\"")); 1849 INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\""));
1746 EXTERN char e_cannot_delete_variable[] 1850 EXTERN char e_cannot_delete_variable[]
1747 INIT(= N_("E795: Cannot delete variable")); 1851 INIT(= N_("E795: Cannot delete variable"));
1852 EXTERN char e_cannot_delete_variable_str[]
1853 INIT(= N_("E795: Cannot delete variable %s"));
1748 // E796 1854 // E796
1749 EXTERN char e_writing_to_device_disabled_with_opendevice_option[] 1855 EXTERN char e_writing_to_device_disabled_with_opendevice_option[]
1750 INIT(= N_("writing to device disabled with 'opendevice' option")); 1856 INIT(= N_("writing to device disabled with 'opendevice' option"));
1751 EXTERN char e_cannot_delete_variable_str[] 1857 #endif
1752 INIT(= N_("E795: Cannot delete variable %s")); 1858 #ifdef FEAT_SPELL
1753 #endif 1859 EXTERN char e_spellfilemising_autocommand_deleted_buffer[]
1754 1860 INIT(= N_("E797: SpellFileMissing autocommand deleted buffer"));
1861 #endif
1862 EXTERN char e_id_is_reserved_for_match_nr[]
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[]
1865 INIT(= N_("E799: Invalid ID: %d (must be greater than or equal to 1)"));
1755 #ifndef FEAT_ARABIC 1866 #ifndef FEAT_ARABIC
1756 EXTERN char e_arabic_cannot_be_used_not_enabled_at_compile_time[] 1867 EXTERN char e_arabic_cannot_be_used_not_enabled_at_compile_time[]
1757 INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n")); 1868 INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n"));
1758 #endif 1869 #endif
1870
1759 #ifdef FEAT_EVAL 1871 #ifdef FEAT_EVAL
1760 EXTERN char e_cannot_use_percent_with_float[] 1872 EXTERN char e_cannot_use_percent_with_float[]
1761 INIT(= N_("E804: Cannot use '%' with Float")); 1873 INIT(= N_("E804: Cannot use '%' with Float"));
1762 #endif 1874 #endif
1875
1763 #ifdef FEAT_FLOAT 1876 #ifdef FEAT_FLOAT
1764 EXTERN char e_using_float_as_string[] 1877 EXTERN char e_using_float_as_string[]
1765 INIT(= N_("E806: using Float as a String")); 1878 INIT(= N_("E806: using Float as a String"));
1766 #endif 1879 #endif
1767 EXTERN char e_cannot_close_autocmd_or_popup_window[] 1880 EXTERN char e_cannot_close_autocmd_or_popup_window[]
1836 INIT(= N_("E939: Positive count required")); 1949 INIT(= N_("E939: Positive count required"));
1837 #ifdef FEAT_EVAL 1950 #ifdef FEAT_EVAL
1838 EXTERN char e_cannot_lock_or_unlock_variable_str[] 1951 EXTERN char e_cannot_lock_or_unlock_variable_str[]
1839 INIT(= N_("E940: Cannot lock or unlock variable %s")); 1952 INIT(= N_("E940: Cannot lock or unlock variable %s"));
1840 #endif 1953 #endif
1954 EXTERN char e_reverse_range_in_character_class[]
1955 INIT(= N_("E944: Reverse range in character class"));
1956 EXTERN char e_range_too_large_in_character_class[]
1957 INIT(= N_("E945: Range too large in character class"));
1958
1841 #ifdef FEAT_TERMINAL 1959 #ifdef FEAT_TERMINAL
1842 EXTERN char e_job_still_running[] 1960 EXTERN char e_job_still_running[]
1843 INIT(= N_("E948: Job still running")); 1961 INIT(= N_("E948: Job still running"));
1844 EXTERN char e_job_still_running_add_bang_to_end_the_job[] 1962 EXTERN char e_job_still_running_add_bang_to_end_the_job[]
1845 INIT(= N_("E948: Job still running (add ! to end the job)")); 1963 INIT(= N_("E948: Job still running (add ! to end the job)"));
1846 #endif 1964 #endif
1847 EXTERN char e_file_changed_while_writing[] 1965 EXTERN char e_file_changed_while_writing[]
1848 INIT(= N_("E949: File changed while writing")); 1966 INIT(= N_("E949: File changed while writing"));
1849 EXTERN char e_autocommand_caused_recursive_behavior[] 1967 EXTERN char e_autocommand_caused_recursive_behavior[]
1850 INIT(= N_("E952: Autocommand caused recursive behavior")); 1968 INIT(= N_("E952: Autocommand caused recursive behavior"));
1969 EXTERN char e_cannot_use_pattern_recursively[]
1970 INIT(= N_("E956: Cannot use pattern recursively"));
1851 EXTERN char e_invalid_window_number[] 1971 EXTERN char e_invalid_window_number[]
1852 INIT(= N_("E957: Invalid window number")); 1972 INIT(= N_("E957: Invalid window number"));
1853 EXTERN char_u e_invalid_column_number_nr[] 1973 EXTERN char_u e_invalid_column_number_nr[]
1854 INIT(= N_("E964: Invalid column number: %ld")); 1974 INIT(= N_("E964: Invalid column number: %ld"));
1855 EXTERN char_u e_invalid_line_number_nr[] 1975 EXTERN char_u e_invalid_line_number_nr[]