Mercurial > vim
comparison src/globals.h @ 26865:bce848ec8b1b v8.2.3961
patch 8.2.3961: error messages are spread out
Commit: https://github.com/vim/vim/commit/436b5adc9770a2568209dd5ab1f98bd1afc91898
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 31 22:49:24 2021 +0000
patch 8.2.3961: 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 00:00:04 +0100 |
parents | 2aeea8611342 |
children | 06a137af96f8 |
comparison
equal
deleted
inserted
replaced
26864:eb95ad159bce | 26865:bce848ec8b1b |
---|---|
1598 EXTERN int netbeansReadFile INIT(= 1); // OK to read from disk if != 0 | 1598 EXTERN int netbeansReadFile INIT(= 1); // OK to read from disk if != 0 |
1599 EXTERN int netbeansSuppressNoLines INIT(= 0); // skip "No lines in buffer" | 1599 EXTERN int netbeansSuppressNoLines INIT(= 0); // skip "No lines in buffer" |
1600 #endif | 1600 #endif |
1601 | 1601 |
1602 /* | 1602 /* |
1603 * The error messages that can be shared are included here. | 1603 * Some error messages that can be shared are included here. |
1604 * Excluded are errors that are only used once and debugging messages. | 1604 * They should be moved to errors.h. |
1605 */ | 1605 */ |
1606 EXTERN char e_abort[] INIT(= N_("E470: Command aborted")); | |
1607 EXTERN char e_argreq[] INIT(= N_("E471: Argument required")); | |
1608 #ifdef FEAT_EVAL | |
1609 EXTERN char e_catch[] INIT(= N_("E603: :catch without :try")); | |
1610 EXTERN char e_finally[] INIT(= N_("E606: :finally without :try")); | |
1611 EXTERN char e_finally_dup[] INIT(= N_("E607: multiple :finally")); | |
1612 EXTERN char e_endtry[] INIT(= N_("E600: Missing :endtry")); | |
1613 EXTERN char e_no_endtry[] INIT(= N_("E602: :endtry without :try")); | |
1614 EXTERN char e_while[] INIT(= N_("E588: :endwhile without :while")); | |
1615 EXTERN char e_for[] INIT(= N_("E588: :endfor without :for")); | |
1616 #endif | |
1617 EXTERN char e_failed[] INIT(= N_("E472: Command failed")); | |
1618 #if defined(FEAT_GUI) && defined(FEAT_XFONTSET) | |
1619 EXTERN char e_fontset[] INIT(= N_("E234: Unknown fontset: %s")); | |
1620 #endif | |
1621 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) \ | |
1622 || defined(FEAT_GUI_PHOTON) || defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_HAIKU) | |
1623 EXTERN char e_font[] INIT(= N_("E235: Unknown font: %s")); | |
1624 #endif | |
1625 #if defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) | |
1626 EXTERN char e_fontwidth[] INIT(= N_("E236: Font \"%s\" is not fixed-width")); | |
1627 #endif | |
1628 EXTERN char e_internal[] INIT(= N_("E473: Internal error")); | |
1629 EXTERN char e_intern2[] INIT(= N_("E685: Internal error: %s")); | 1606 EXTERN char e_intern2[] INIT(= N_("E685: Internal error: %s")); |
1630 EXTERN char e_interr[] INIT(= N_("Interrupted")); | |
1631 EXTERN char e_invarg[] INIT(= N_("E474: Invalid argument")); | |
1632 EXTERN char e_invarg2[] INIT(= N_("E475: Invalid argument: %s")); | |
1633 EXTERN char e_duparg2[] INIT(= N_("E983: Duplicate argument: %s")); | 1607 EXTERN char e_duparg2[] INIT(= N_("E983: Duplicate argument: %s")); |
1634 EXTERN char e_invargval[] INIT(= N_("E475: Invalid value for argument %s")); | |
1635 EXTERN char e_invargNval[] INIT(= N_("E475: Invalid value for argument %s: %s")); | |
1636 #ifdef FEAT_SPELL | 1608 #ifdef FEAT_SPELL |
1637 EXTERN char e_no_spell[] INIT(= N_("E756: Spell checking is not possible")); | 1609 EXTERN char e_no_spell[] INIT(= N_("E756: Spell checking is not possible")); |
1638 #endif | 1610 #endif |
1639 #ifdef FEAT_LIBCALL | 1611 #ifdef FEAT_LIBCALL |
1640 EXTERN char e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\"")); | 1612 EXTERN char e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\"")); |