Mercurial > vim
comparison src/errors.h @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 15:30:05 +0100 |
parents | 659e30d7eeb7 |
children | 7f150a4936f2 |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
327 INIT(= N_("E148: Regular expression missing from :global")); | 327 INIT(= N_("E148: Regular expression missing from :global")); |
328 EXTERN char e_sorry_no_help_for_str[] | 328 EXTERN char e_sorry_no_help_for_str[] |
329 INIT(= N_("E149: Sorry, no help for %s")); | 329 INIT(= N_("E149: Sorry, no help for %s")); |
330 EXTERN char e_not_a_directory_str[] | 330 EXTERN char e_not_a_directory_str[] |
331 INIT(= N_("E150: Not a directory: %s")); | 331 INIT(= N_("E150: Not a directory: %s")); |
332 EXTERN char e_no_match_str[] | 332 EXTERN char e_no_match_str_1[] |
333 INIT(= N_("E151: No match: %s")); | 333 INIT(= N_("E151: No match: %s")); |
334 EXTERN char e_cannot_open_str_for_writing_1[] | 334 EXTERN char e_cannot_open_str_for_writing_1[] |
335 INIT(= N_("E152: Cannot open %s for writing")); | 335 INIT(= N_("E152: Cannot open %s for writing")); |
336 EXTERN char e_unable_to_open_str_for_reading[] | 336 EXTERN char e_unable_to_open_str_for_reading[] |
337 INIT(= N_("E153: Unable to open %s for reading")); | 337 INIT(= N_("E153: Unable to open %s for reading")); |
495 EXTERN char e_makemap_illegal_mode[] | 495 EXTERN char e_makemap_illegal_mode[] |
496 INIT(= N_("E228: makemap: Illegal mode")); | 496 INIT(= N_("E228: makemap: Illegal mode")); |
497 EXTERN char e_cannot_start_the_GUI[] | 497 EXTERN char e_cannot_start_the_GUI[] |
498 INIT(= N_("E229: Cannot start the GUI")); | 498 INIT(= N_("E229: Cannot start the GUI")); |
499 | 499 |
500 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) | |
501 EXTERN char e_cannot_open_display[] | |
502 INIT(= N_("E233: cannot open display")); | |
503 #endif | |
500 #if defined(FEAT_GUI) && defined(FEAT_XFONTSET) | 504 #if defined(FEAT_GUI) && defined(FEAT_XFONTSET) |
501 EXTERN char e_unknown_fontset_str[] | 505 EXTERN char e_unknown_fontset_str[] |
502 INIT(= N_("E234: Unknown fontset: %s")); | 506 INIT(= N_("E234: Unknown fontset: %s")); |
503 #endif | 507 #endif |
504 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) \ | 508 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) \ |
507 INIT(= N_("E235: Unknown font: %s")); | 511 INIT(= N_("E235: Unknown font: %s")); |
508 #endif | 512 #endif |
509 #if defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) | 513 #if defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) |
510 EXTERN char e_font_str_is_not_fixed_width[] | 514 EXTERN char e_font_str_is_not_fixed_width[] |
511 INIT(= N_("E236: Font \"%s\" is not fixed-width")); | 515 INIT(= N_("E236: Font \"%s\" is not fixed-width")); |
516 #endif | |
517 #ifdef FEAT_CLIENTSERVER | |
518 EXTERN char e_no_registered_server_named_str[] | |
519 INIT(= N_("E247: no registered server named \"%s\"")); | |
512 #endif | 520 #endif |
513 EXTERN char e_window_layout_changed_unexpectedly[] | 521 EXTERN char e_window_layout_changed_unexpectedly[] |
514 INIT(= N_("E249: window layout changed unexpectedly")); | 522 INIT(= N_("E249: window layout changed unexpectedly")); |
515 #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) | 523 #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) |
516 EXTERN char e_cannot_allocate_color_str[] | 524 EXTERN char e_cannot_allocate_color_str[] |
519 | 527 |
520 EXTERN char e_internal_error_lalloc_zero[] | 528 EXTERN char e_internal_error_lalloc_zero[] |
521 INIT(= N_("E341: Internal error: lalloc(0, )")); | 529 INIT(= N_("E341: Internal error: lalloc(0, )")); |
522 EXTERN char e_out_of_memory_allocating_nr_bytes[] | 530 EXTERN char e_out_of_memory_allocating_nr_bytes[] |
523 INIT(= N_("E342: Out of memory! (allocating %lu bytes)")); | 531 INIT(= N_("E342: Out of memory! (allocating %lu bytes)")); |
532 #ifdef FEAT_LIBCALL | |
533 EXTERN char e_library_call_failed_for_str[] | |
534 INIT(= N_("E364: Library call failed for \"%s()\"")); | |
535 #endif | |
524 EXTERN char e_no_such_group_str[] | 536 EXTERN char e_no_such_group_str[] |
525 INIT(= N_("E367: No such group: \"%s\"")); | 537 INIT(= N_("E367: No such group: \"%s\"")); |
538 #ifdef USING_LOAD_LIBRARY | |
539 EXTERN char e_could_not_load_library_str_str[] | |
540 INIT(= N_("E370: Could not load library %s: %s")); | |
541 #endif | |
526 EXTERN char e_cannot_write_buftype_option_is_set[] | 542 EXTERN char e_cannot_write_buftype_option_is_set[] |
527 INIT(= N_("E382: Cannot write, 'buftype' option is set")); | 543 INIT(= N_("E382: Cannot write, 'buftype' option is set")); |
528 | 544 |
545 #ifdef USING_LOAD_LIBRARY | |
546 EXTERN char e_could_not_load_library_function_str[] | |
547 INIT(= N_("E448: Could not load library function %s")); | |
548 #endif | |
549 #if defined(UNIX) || defined(FEAT_SESSION) | |
550 EXTERN char e_cannot_go_back_to_previous_directory[] | |
551 INIT(= N_("E459: Cannot go back to previous directory")); | |
552 #endif | |
553 #ifdef FEAT_EVAL | |
554 EXTERN char e_illegal_variable_name_str[] | |
555 INIT(= N_("E461: Illegal variable name: %s")); | |
556 #endif | |
529 EXTERN char e_ambiguous_use_of_user_defined_command[] | 557 EXTERN char e_ambiguous_use_of_user_defined_command[] |
530 INIT(= N_("E464: Ambiguous use of user-defined command")); | 558 INIT(= N_("E464: Ambiguous use of user-defined command")); |
531 EXTERN char e_command_aborted[] | 559 EXTERN char e_command_aborted[] |
532 INIT(= N_("E470: Command aborted")); | 560 INIT(= N_("E470: Command aborted")); |
533 EXTERN char e_argument_required[] | 561 EXTERN char e_argument_required[] |
544 INIT(= N_("E475: Invalid value for argument %s")); | 572 INIT(= N_("E475: Invalid value for argument %s")); |
545 EXTERN char e_invalid_value_for_argument_str_str[] | 573 EXTERN char e_invalid_value_for_argument_str_str[] |
546 INIT(= N_("E475: Invalid value for argument %s: %s")); | 574 INIT(= N_("E475: Invalid value for argument %s: %s")); |
547 EXTERN char e_invalid_command[] | 575 EXTERN char e_invalid_command[] |
548 INIT(= N_("E476: Invalid command")); | 576 INIT(= N_("E476: Invalid command")); |
577 EXTERN char e_no_bang_allowed[] | |
578 INIT(= N_("E477: No ! allowed")); | |
549 #ifdef FEAT_EVAL | 579 #ifdef FEAT_EVAL |
550 EXTERN char e_invalid_command_str[] | 580 EXTERN char e_invalid_command_str[] |
551 INIT(= N_("E476: Invalid command: %s")); | 581 INIT(= N_("E476: Invalid command: %s")); |
552 #endif | 582 #endif |
583 EXTERN char e_cant_create_file_str[] | |
584 INIT(= N_("E482: Can't create file %s")); | |
585 EXTERN char e_cant_get_temp_file_name[] | |
586 INIT(= N_("E483: Can't get temp file name")); | |
587 EXTERN char e_cant_open_file_str[] | |
588 INIT(= N_("E484: Can't open file %s")); | |
589 EXTERN char e_cant_read_file_str[] | |
590 INIT(= N_("E485: Can't read file %s")); | |
591 EXTERN char e_pattern_not_found[] | |
592 INIT(= N_("E486: Pattern not found")); | |
593 EXTERN char e_pattern_not_found_str[] | |
594 INIT(= N_("E486: Pattern not found: %s")); | |
595 EXTERN char e_argument_must_be_positive[] | |
596 INIT(= N_("E487: Argument must be positive")); | |
597 EXTERN char e_no_match[] | |
598 INIT(= N_("E479: No match")); | |
599 EXTERN char e_no_match_str_2[] | |
600 INIT(= N_("E480: No match: %s")); | |
601 EXTERN char e_no_range_allowed[] | |
602 INIT(= N_("E481: No range allowed")); | |
553 | 603 |
554 // E502 | 604 // E502 |
555 EXTERN char e_is_a_directory[] | 605 EXTERN char e_is_a_directory[] |
556 INIT(= N_("is a directory")); | 606 INIT(= N_("is a directory")); |
557 // E503 | 607 // E503 |
613 INIT(= N_("NetBeans disallows writes of unmodified buffers")); | 663 INIT(= N_("NetBeans disallows writes of unmodified buffers")); |
614 // E657 | 664 // E657 |
615 EXTERN char e_partial_writes_disallowed_for_netbeans_buffers[] | 665 EXTERN char e_partial_writes_disallowed_for_netbeans_buffers[] |
616 INIT(= N_("Partial writes disallowed for NetBeans buffers")); | 666 INIT(= N_("Partial writes disallowed for NetBeans buffers")); |
617 #endif | 667 #endif |
668 #ifdef HAVE_FSYNC | |
669 EXTERN char e_fsync_failed[] | |
670 INIT(= N_("E667: Fsync failed")); | |
671 #endif | |
618 EXTERN char e_no_matching_autocommands_for_acwrite_buffer[] | 672 EXTERN char e_no_matching_autocommands_for_acwrite_buffer[] |
619 INIT(= N_("E676: No matching autocommands for acwrite buffer")); | 673 INIT(= N_("E676: No matching autocommands for acwrite buffer")); |
620 EXTERN char e_buffer_nr_invalid_buffer_number[] | 674 EXTERN char e_buffer_nr_invalid_buffer_number[] |
621 INIT(= N_("E680: <buffer=%d>: invalid buffer number")); | 675 INIT(= N_("E680: <buffer=%d>: invalid buffer number")); |
622 #ifdef FEAT_EVAL | 676 #ifdef FEAT_EVAL |
677 EXTERN char e_list_index_out_of_range_nr[] | |
678 INIT(= N_("E684: list index out of range: %ld")); | |
679 #endif | |
680 EXTERN char e_internal_error_str[] | |
681 INIT(= N_("E685: Internal error: %s")); | |
682 #ifdef FEAT_EVAL | |
623 EXTERN char e_cannot_index_a_funcref[] | 683 EXTERN char e_cannot_index_a_funcref[] |
624 INIT(= N_("E695: Cannot index a Funcref")); | 684 INIT(= N_("E695: Cannot index a Funcref")); |
685 EXTERN char e_missing_end_of_list_rsb_str[] | |
686 INIT(= N_("E697: Missing end of List ']': %s")); | |
625 | 687 |
626 EXTERN char e_list_value_has_more_items_than_targets[] | 688 EXTERN char e_list_value_has_more_items_than_targets[] |
627 INIT(= N_("E710: List value has more items than targets")); | 689 INIT(= N_("E710: List value has more items than targets")); |
628 EXTERN char e_list_value_does_not_have_enough_items[] | 690 EXTERN char e_list_value_does_not_have_enough_items[] |
629 INIT(= N_("E711: List value does not have enough items")); | 691 INIT(= N_("E711: List value does not have enough items")); |
692 EXTERN char e_argument_of_str_must_be_list_or_dictionary[] | |
693 INIT(= N_("E712: Argument of %s must be a List or Dictionary")); | |
694 EXTERN char e_cannot_use_empty_key_for_dictionary[] | |
695 INIT(= N_("E713: Cannot use empty key for Dictionary")); | |
696 EXTERN char e_list_required[] | |
697 INIT(= N_("E714: List required")); | |
698 EXTERN char e_dictionary_required[] | |
699 INIT(= N_("E715: Dictionary required")); | |
700 EXTERN char e_key_not_present_in_dictionary[] | |
701 INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); | |
630 EXTERN char e_cannot_slice_dictionary[] | 702 EXTERN char e_cannot_slice_dictionary[] |
631 INIT(= N_("E719: Cannot slice a Dictionary")); | 703 INIT(= N_("E719: Cannot slice a Dictionary")); |
704 EXTERN char e_wrong_variable_type_for_str_equal[] | |
705 INIT(= N_("E734: Wrong variable type for %s=")); | |
632 EXTERN char e_value_is_locked[] | 706 EXTERN char e_value_is_locked[] |
633 INIT(= N_("E741: Value is locked")); | 707 INIT(= N_("E741: Value is locked")); |
634 EXTERN char e_value_is_locked_str[] | 708 EXTERN char e_value_is_locked_str[] |
635 INIT(= N_("E741: Value is locked: %s")); | 709 INIT(= N_("E741: Value is locked: %s")); |
636 EXTERN char e_cannot_change_value[] | 710 EXTERN char e_cannot_change_value[] |
637 INIT(= N_("E742: Cannot change value")); | 711 INIT(= N_("E742: Cannot change value")); |
638 EXTERN char e_cannot_change_value_of_str[] | 712 EXTERN char e_cannot_change_value_of_str[] |
639 INIT(= N_("E742: Cannot change value of %s")); | 713 INIT(= N_("E742: Cannot change value of %s")); |
714 #endif | |
715 #ifdef FEAT_SPELL | |
716 EXTERN char e_spell_checking_is_not_possible[] | |
717 INIT(= N_("E756: Spell checking is not possible")); | |
718 #endif | |
719 #ifdef FEAT_QUICKFIX | |
720 EXTERN char e_no_location_list[] | |
721 INIT(= N_("E776: No location list")); | |
722 #endif | |
723 #ifdef FEAT_EVAL | |
640 EXTERN char e_cannot_set_variable_in_sandbox[] | 724 EXTERN char e_cannot_set_variable_in_sandbox[] |
641 INIT(= N_("E794: Cannot set variable in the sandbox")); | 725 INIT(= N_("E794: Cannot set variable in the sandbox")); |
642 EXTERN char e_cannot_set_variable_in_sandbox_str[] | 726 EXTERN char e_cannot_set_variable_in_sandbox_str[] |
643 INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\"")); | 727 INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\"")); |
644 EXTERN char e_cannot_delete_variable[] | 728 EXTERN char e_cannot_delete_variable[] |
648 INIT(= N_("writing to device disabled with 'opendevice' option")); | 732 INIT(= N_("writing to device disabled with 'opendevice' option")); |
649 EXTERN char e_cannot_delete_variable_str[] | 733 EXTERN char e_cannot_delete_variable_str[] |
650 INIT(= N_("E795: Cannot delete variable %s")); | 734 INIT(= N_("E795: Cannot delete variable %s")); |
651 #endif | 735 #endif |
652 | 736 |
737 #ifndef FEAT_ARABIC | |
738 EXTERN char e_arabic_cannot_be_used_not_enabled_at_compile_time[] | |
739 INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n")); | |
740 #endif | |
741 #ifdef FEAT_EVAL | |
742 EXTERN char e_cannot_use_percent_with_float[] | |
743 INIT(= N_("E804: Cannot use '%' with Float")); | |
744 #endif | |
653 EXTERN char e_blowfish_big_little_endian_use_wrong[] | 745 EXTERN char e_blowfish_big_little_endian_use_wrong[] |
654 INIT(= N_("E817: Blowfish big/little endian use wrong")); | 746 INIT(= N_("E817: Blowfish big/little endian use wrong")); |
655 EXTERN char e_sha256_test_failed[] | 747 EXTERN char e_sha256_test_failed[] |
656 INIT(= N_("E818: sha256 test failed")); | 748 INIT(= N_("E818: sha256 test failed")); |
657 EXTERN char e_blowfish_test_failed[] | 749 EXTERN char e_blowfish_test_failed[] |
662 INIT(= N_("E831: bf_key_init() called with empty password")); | 754 INIT(= N_("E831: bf_key_init() called with empty password")); |
663 EXTERN char e_conflicts_with_value_of_listchars[] | 755 EXTERN char e_conflicts_with_value_of_listchars[] |
664 INIT(= N_("E834: Conflicts with value of 'listchars'")); | 756 INIT(= N_("E834: Conflicts with value of 'listchars'")); |
665 EXTERN char e_conflicts_with_value_of_fillchars[] | 757 EXTERN char e_conflicts_with_value_of_fillchars[] |
666 INIT(= N_("E835: Conflicts with value of 'fillchars'")); | 758 INIT(= N_("E835: Conflicts with value of 'fillchars'")); |
759 // E839 unused | |
667 EXTERN char e_autocommands_caused_command_to_abort[] | 760 EXTERN char e_autocommands_caused_command_to_abort[] |
668 INIT(= N_("E855: Autocommands caused command to abort")); | 761 INIT(= N_("E855: Autocommands caused command to abort")); |
669 #ifdef FEAT_EVAL | 762 #ifdef FEAT_EVAL |
670 EXTERN char e_assert_fails_second_arg[] | 763 EXTERN char e_assert_fails_second_arg[] |
671 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings")); | 764 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings")); |
765 EXTERN char e_dictionary_key_str_required[] | |
766 INIT(= N_("E857: Dictionary key \"%s\" required")); | |
767 #endif | |
768 #ifdef FEAT_PROP_POPUP | |
769 EXTERN char e_number_required[] | |
770 INIT(= N_("E889: Number required")); | |
771 #endif | |
772 #ifdef FEAT_EVAL | |
773 EXTERN char e_argument_of_str_must_be_list_dictionary_or_blob[] | |
774 INIT(= N_("E896: Argument of %s must be a List, Dictionary or Blob")); | |
775 EXTERN char e_list_or_blob_required[] | |
776 INIT(= N_("E897: List or Blob required")); | |
777 #endif | |
672 | 778 |
779 #ifdef FEAT_EVAL | |
673 EXTERN char e_using_invalid_value_as_string_str[] | 780 EXTERN char e_using_invalid_value_as_string_str[] |
674 INIT(= N_("E908: using an invalid value as a String: %s")); | 781 INIT(= N_("E908: using an invalid value as a String: %s")); |
675 EXTERN char e_cannot_index_special_variable[] | 782 EXTERN char e_cannot_index_special_variable[] |
676 INIT(= N_("E909: Cannot index a special variable")); | 783 INIT(= N_("E909: Cannot index a special variable")); |
784 EXTERN char e_string_required[] | |
785 INIT(= N_("E928: String required")); | |
677 #endif | 786 #endif |
678 EXTERN char e_buffer_cannot_be_registered[] | 787 EXTERN char e_buffer_cannot_be_registered[] |
679 INIT(= N_("E931: Buffer cannot be registered")); | 788 INIT(= N_("E931: Buffer cannot be registered")); |
789 #ifdef FEAT_EVAL | |
790 EXTERN char e_function_was_deleted_str[] | |
791 INIT(= N_("E933: Function was deleted: %s")); | |
792 #endif | |
680 EXTERN char e_cannot_delete_current_group[] | 793 EXTERN char e_cannot_delete_current_group[] |
681 INIT(= N_("E936: Cannot delete the current group")); | 794 INIT(= N_("E936: Cannot delete the current group")); |
682 EXTERN char e_attempt_to_delete_buffer_that_is_in_use_str[] | 795 EXTERN char e_attempt_to_delete_buffer_that_is_in_use_str[] |
683 INIT(= N_("E937: Attempt to delete a buffer that is in use: %s")); | 796 INIT(= N_("E937: Attempt to delete a buffer that is in use: %s")); |
684 #ifdef FEAT_TERMINAL | 797 #ifdef FEAT_TERMINAL |
693 INIT(= N_("E964: Invalid column number: %ld")); | 806 INIT(= N_("E964: Invalid column number: %ld")); |
694 EXTERN char_u e_invalid_line_number_nr[] | 807 EXTERN char_u e_invalid_line_number_nr[] |
695 INIT(= N_("E966: Invalid line number: %ld")); | 808 INIT(= N_("E966: Invalid line number: %ld")); |
696 EXTERN char e_blob_value_does_not_have_right_number_of_bytes[] | 809 EXTERN char e_blob_value_does_not_have_right_number_of_bytes[] |
697 INIT(= N_("E972: Blob value does not have the right number of bytes")); | 810 INIT(= N_("E972: Blob value does not have the right number of bytes")); |
811 #ifdef FEAT_EVAL | |
812 EXTERN char e_invalid_operation_for_blob[] | |
813 INIT(= N_("E978: Invalid operation for Blob")); | |
814 EXTERN char e_blob_index_out_of_range_nr[] | |
815 INIT(= N_("E979: Blob index out of range: %ld")); | |
816 #endif | |
817 EXTERN char e_duplicate_argument_str[] | |
818 INIT(= N_("E983: Duplicate argument: %s")); | |
819 #ifdef FEAT_EVAL | |
820 EXTERN char e_cannot_modify_existing_variable[] | |
821 INIT(= N_("E995: Cannot modify existing variable")); | |
822 EXTERN char e_cannot_lock_an_option[] | |
823 INIT(= N_("E996: Cannot lock an option")); | |
824 EXTERN char e_reduce_of_an_empty_str_with_no_initial_value[] | |
825 INIT(= N_("E998: Reduce of an empty %s with no initial value")); | |
826 #endif | |
698 | 827 |
699 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] | 828 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] |
700 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); | 829 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); |
701 #ifdef FEAT_EVAL | 830 #ifdef FEAT_EVAL |
702 EXTERN char e_variable_not_found_str[] | 831 EXTERN char e_variable_not_found_str[] |