core: add option "dirs" for command /debug

This commit is contained in:
Sebastien Helleu 2013-02-14 20:45:12 +01:00
parent eed0878231
commit 01153cd478
15 changed files with 133 additions and 19 deletions

View File

@ -1,12 +1,13 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.4.1-dev, 2013-02-12
v0.4.1-dev, 2013-02-14
Version 0.4.1 (under dev!)
--------------------------
* core: add option "dirs" for command /debug
* core: fix detection of iconv with cmake on OS X (bug #38321)
* core: add signal "window_opened" (task #12464)
* core: fix structures before buffer data when a buffer is closed

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:07+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1188,6 +1188,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3201,6 +3202,13 @@ msgstr "Využití paměti (viz \"man mallinfo\" pro nápovědu):"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Využití pamětí není dostupné (funkce \"mallinfo\" nenalezena)"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "výchozí hodnota"
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%sChyba: příkaz \"%s\" již existuje pro plugin \"%s\""

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:07+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@ -1225,6 +1225,7 @@ msgstr ""
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
"memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]"
#, fuzzy
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@ -1235,6 +1236,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3622,6 +3624,13 @@ msgstr "Auslastung des Speichers (siehe\"man mallinfo\" für Hilfe):"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Speicheranzeige nicht verfügbar (Funktion \"mallinfo\" nicht gefunden)"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "Standardwert: "
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr ""

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:07+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1202,6 +1202,7 @@ msgstr ""
"list || set <plugin> <nivel> || dump [<plugin>] || buffer|color|infolists|"
"memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]"
#, fuzzy
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@ -1212,6 +1213,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3389,6 +3391,13 @@ msgstr "Uso de memoria (ver en \"man mallinfo\" por ayuda):"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Uso de memoria no disponible (función \"mallinfo\" no encontrada)"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "predeterminado: "
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%sError: el comando \"%s\" ya existe en el plugin \"%s\""

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"PO-Revision-Date: 2013-02-10 22:11+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-02-14 20:41+0100\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@ -1212,6 +1212,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -1226,14 +1227,12 @@ msgstr ""
" set: définir le niveau de debug pour l'extension\n"
"extension: nom de l'extension (\"core\" pour le coeur de WeeChat)\n"
" niveau: niveau de debug pour l'extension\n"
" dump: afficher les variables mémoire WeeChat dans le fichier log (les "
"mêmes messages sont affichés lorsque WeeChat plante)\n"
" buffer: afficher le contenu du tampon en valeurs hexadécimales dans le "
"fichier log\n"
" dump: afficher les variables mémoire WeeChat dans le fichier log (les mêmes messages sont affichés lorsque WeeChat plante)\n"
" buffer: afficher le contenu du tampon en valeurs hexadécimales dans le fichier log\n"
" color: afficher des infos sur les paires de couleur courantes\n"
" cursor: activer/désactiver le debug pour le mode curseur\n"
" hdata: afficher des infos sur les hdata (avec free: supprimer tous les "
"hdata en mémoire)\n"
" dirs: afficher les répertoires\n"
" hdata: afficher des infos sur les hdata (avec free: supprimer tous les hdata en mémoire)\n"
" hooks: afficher des infos sur les hooks\n"
"infolists: afficher des infos sur les infolists\n"
" memory: afficher des infos sur l'utilisation de la mémoire\n"
@ -3515,6 +3514,12 @@ msgstr "Utilisation mémoire (voir \"man mallinfo\" pour de l'aide) :"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Utilisation mémoire non disponible (fonction \"mallinfo\" non trouvée)"
msgid "Directories:"
msgstr "Répertoires :"
msgid "default"
msgstr "défaut"
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:07+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1130,6 +1130,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -2847,6 +2848,13 @@ msgstr ""
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr ""
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr " . alapérték: %d\n"
#, fuzzy, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%s az ignore már létezik\n"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-02-03 12:13+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1190,6 +1190,7 @@ msgstr ""
"list || set <plugin> <livello> || dump [<plugin>] || buffer|color|infolists|"
"memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]"
#, fuzzy
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@ -1200,6 +1201,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3386,6 +3388,13 @@ msgstr "Uso della memoria (consultare \"man mallinfo\" per aiuto):"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Uso della memoria non disponibile (funzione \"mallinfo\" non trovata)"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "predefinito: "
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%sErrore: un altro comando \"%s\" esiste già per il plugin \"%s\""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:07+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@ -1175,6 +1175,7 @@ msgstr ""
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
"memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]"
#, fuzzy
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@ -1185,6 +1186,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3372,6 +3374,13 @@ msgstr "メモリ使用量 (ヘルプを見るには \"man mallinfo\" を参照)
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "メモリ使用量は利用できません (\"mallinfo\" 関数が見つかりません)"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "デフォルト: "
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:08+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1204,6 +1204,7 @@ msgstr ""
"list || set <wtyczka> <poziom> || dump [<wtyczka>] || buffer|color|infolists|"
"memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]"
#, fuzzy
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@ -1214,6 +1215,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3459,6 +3461,13 @@ msgstr "Zużycie pamięci (zobacz \"man mallinfo\"):"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Zużycie pamięci niedostępne (nie znaleziono funkcji \"mallinfo\")"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "domyślnie: "
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%sBłąd: istnieje juz inna komenda \"%s\" dla wtyczki \"%s\""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:08+0100\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1235,6 +1235,7 @@ msgstr ""
"infolists|memory|mouse|tags|term|windows || hdata [free]"
# Find a better translation to crash
#, fuzzy
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@ -1245,6 +1246,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -3292,6 +3294,13 @@ msgstr "Uso de memória (veja \"man mallinfo\" para ajuda):"
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr "Uso de memória não disponível (função \"mallinfo\" não encontrada)"
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr "valor padrão"
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%sErro: outro comando \"%s\" já existe para o plugin \"%s\""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-10 20:17+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-01-20 12:08+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1149,6 +1149,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -2873,6 +2874,13 @@ msgstr ""
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr ""
msgid "Directories:"
msgstr ""
#, fuzzy
msgid "default"
msgstr " . значение по умолчанию: %d\n"
#, fuzzy, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr "%s игнорирование уже существует\n"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-14 18:08+0100\n"
"POT-Creation-Date: 2013-02-14 20:40+0100\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1007,6 +1007,7 @@ msgid ""
" buffer: dump buffer content with hexadecimal values in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove all hdata in "
"memory)\n"
" hooks: display infos about hooks\n"
@ -2519,6 +2520,12 @@ msgstr ""
msgid "Memory usage not available (function \"mallinfo\" not found)"
msgstr ""
msgid "Directories:"
msgstr ""
msgid "default"
msgstr ""
#, c-format
msgid "%sError: another command \"%s\" already exists for plugin \"%s\""
msgstr ""

View File

@ -1414,6 +1414,10 @@ COMMAND_CALLBACK(debug)
{
debug_windows_tree ();
}
else if (string_strcasecmp (argv[1], "dirs") == 0)
{
debug_directories ();
}
else if (string_strcasecmp (argv[1], "set") == 0)
{
COMMAND_MIN_ARGS(4, "debug set");
@ -5943,6 +5947,7 @@ command_init ()
"in log file\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
" dirs: display directories\n"
" hdata: display infos about hdata (with free: remove "
"all hdata in memory)\n"
" hooks: display infos about hooks\n"
@ -5958,6 +5963,7 @@ command_init ()
" || buffer"
" || color"
" || cursor verbose"
" || dirs"
" || hdata free"
" || hooks"
" || infolists"

View File

@ -539,6 +539,22 @@ debug_infolists ()
}
}
/*
* Displays WeeChat directories.
*/
void
debug_directories ()
{
gui_chat_printf (NULL, "");
gui_chat_printf (NULL, _("Directories:"));
gui_chat_printf (NULL, " home : %s (%s: %s)",
weechat_home, _("default"), WEECHAT_HOME);
gui_chat_printf (NULL, " lib : %s", WEECHAT_LIBDIR);
gui_chat_printf (NULL, " share : %s", WEECHAT_SHAREDIR);
gui_chat_printf (NULL, " locale: %s", LOCALEDIR);
}
/*
* Hooks signals for debug.
*/

View File

@ -28,6 +28,7 @@ extern void debug_memory ();
extern void debug_hdata ();
extern void debug_hooks ();
extern void debug_infolists ();
extern void debug_directories ();
extern void debug_init ();
#endif /* __WEECHAT_DEBUG_H */