]>
jfr.im git - irc/weechat/weechat.git/log
Sébastien Helleu [Sun, 8 Jan 2023 09:07:07 +0000 (10:07 +0100)]
Version 3.8
Sébastien Helleu [Sun, 8 Jan 2023 09:01:11 +0000 (10:01 +0100)]
core: add note about case insensitive comparison improved in release notes
Sébastien Helleu [Sat, 7 Jan 2023 22:17:56 +0000 (23:17 +0100)]
core: update entries related to CI in ChangeLog
Sébastien Helleu [Sat, 7 Jan 2023 22:02:15 +0000 (23:02 +0100)]
ci: remove use of repository ppa:ondrej/php
Now the CI uses the standard PHP version (8.1) from Ubuntu 22.04.
Sébastien Helleu [Sat, 7 Jan 2023 20:58:16 +0000 (21:58 +0100)]
php: add proper detection of PHP 8.2 in all cases
Sébastien Helleu [Fri, 6 Jan 2023 12:12:59 +0000 (13:12 +0100)]
debian: add symbolic link weechat_raspbian_buster.patch pointing to Debian Buster patch
Sébastien Helleu [Fri, 6 Jan 2023 06:53:39 +0000 (07:53 +0100)]
core: add CMake test called "notests" when tests are not compiled
Now the command `make test` executes properly and returns 0 when test are not
compiled.
Sébastien Helleu [Fri, 6 Jan 2023 06:11:35 +0000 (07:11 +0100)]
Revert "core: add a fake target "test" so that `make test` successes when tests are not compiled"
This reverts commit
129860fd52f3c0c040229a52371798c026fed4ab .
Sébastien Helleu [Thu, 5 Jan 2023 20:26:55 +0000 (21:26 +0100)]
core: add a fake target "test" so that `make test` successes when tests are not compiled
Sébastien Helleu [Thu, 5 Jan 2023 07:05:04 +0000 (08:05 +0100)]
core: rename script build-test.sh to build_test.sh
Sébastien Helleu [Thu, 5 Jan 2023 07:03:12 +0000 (08:03 +0100)]
core: rename script build-debian.sh to build_debian.sh
Sébastien Helleu [Thu, 5 Jan 2023 07:01:48 +0000 (08:01 +0100)]
core: rename script git-version.sh to set_git_version.sh
Sébastien Helleu [Thu, 5 Jan 2023 06:48:08 +0000 (07:48 +0100)]
core: add message after checking Curl symbols: "all good" or number of errors
Sébastien Helleu [Thu, 5 Jan 2023 06:43:01 +0000 (07:43 +0100)]
core: add example with Curl repository cloned locally
Sébastien Helleu [Wed, 4 Jan 2023 21:49:36 +0000 (22:49 +0100)]
core: install flake8 in CI
Sébastien Helleu [Wed, 4 Jan 2023 21:38:41 +0000 (22:38 +0100)]
core: add script check_scripts.sh
This script is now used in CI to check all shell scripts (*.sh) and Python
scripts (*.py) that are in git repository.
Tools used:
- shell scripts: shellcheck
- Python scripts: flake8 + pylint + bandit
Sébastien Helleu [Wed, 4 Jan 2023 21:29:04 +0000 (22:29 +0100)]
core: add script check_curl_symbols.py
This script is used to check Curl symbols defined in WeeChat vs exposed Curl
symbols.
Usage:
curl https://raw.githubusercontent.com/curl/curl/master/docs/libcurl/symbols-in-versions | ./tools/check_curl_symbols.py
Sébastien Helleu [Wed, 4 Jan 2023 20:37:48 +0000 (21:37 +0100)]
core: fix Curl version in comments
Sébastien Helleu [Wed, 4 Jan 2023 20:48:28 +0000 (21:48 +0100)]
core: remove useless "exit 0"
This fixes the following shellcheck error:
SC2317 (info): Command appears to be unreachable. Check usage (or ignore if
invoked indirectly).
Sébastien Helleu [Wed, 4 Jan 2023 20:46:44 +0000 (21:46 +0100)]
core: double quote $JOBS
This fixes the following shellcheck error:
SC2086 (info): Double quote to prevent globbing and word splitting.
Sébastien Helleu [Wed, 4 Jan 2023 20:35:13 +0000 (21:35 +0100)]
core: don't use eval to run commands in scripts
This fixes the following shellcheck error:
SC2294 (warning): eval negates the benefit of arrays. Drop eval to preserve
whitespace/symbols (or eval as string).
Sébastien Helleu [Wed, 4 Jan 2023 20:13:25 +0000 (21:13 +0100)]
tests: fix long lines in scripting API tests
Sébastien Helleu [Wed, 4 Jan 2023 20:12:53 +0000 (21:12 +0100)]
tests: ignore module level import not at top of file (flake8 E402)
Sébastien Helleu [Wed, 4 Jan 2023 20:11:41 +0000 (21:11 +0100)]
tests: mark methods is_bool and is_number as static
Sébastien Helleu [Tue, 3 Jan 2023 22:21:44 +0000 (23:21 +0100)]
api: add Curl options for versions 7.64.0 to 7.87.0
Sébastien Helleu [Tue, 3 Jan 2023 19:20:21 +0000 (20:20 +0100)]
plugins: change priority of scripting plugins
Use a step of 10 between each scripting plugin priority.
Sébastien Helleu [Tue, 3 Jan 2023 16:02:38 +0000 (17:02 +0100)]
core: fix crash or infinite loop in /allbuf command
A crash could occur if the command closes buffers.
An infinite loop could occur if the command creates new buffers.
Sébastien Helleu [Tue, 3 Jan 2023 16:01:52 +0000 (17:01 +0100)]
core: add variable list_size to prevent computing arraylist size in each iteration
Sébastien Helleu [Tue, 3 Jan 2023 00:06:51 +0000 (01:06 +0100)]
irc: properly rename private buffer on notice messages
Sébastien Helleu [Mon, 2 Jan 2023 13:27:21 +0000 (14:27 +0100)]
Version 3.8-rc1
Sébastien Helleu [Mon, 2 Jan 2023 13:20:44 +0000 (14:20 +0100)]
core: fix line wrapping in Polish translations
Sébastien Helleu [Mon, 2 Jan 2023 13:17:20 +0000 (14:17 +0100)]
irc: properly rename private buffer on nick changes or private message when new nick is the same with different case
Sébastien Helleu [Mon, 2 Jan 2023 12:50:58 +0000 (13:50 +0100)]
irc: replace "private window" by "private buffer" in comments
Sébastien Helleu [Sun, 1 Jan 2023 13:54:35 +0000 (14:54 +0100)]
core: update copyright dates
Sébastien Helleu [Sun, 1 Jan 2023 13:41:06 +0000 (14:41 +0100)]
tests: add tests on gui input functions
Sébastien Helleu [Sun, 1 Jan 2023 13:39:38 +0000 (14:39 +0100)]
core: check that buffer is not NULL in function gui_input_clipboard_copy
Sébastien Helleu [Sat, 31 Dec 2022 09:40:00 +0000 (10:40 +0100)]
core: move function gui_input_move_to_buffer to gui-buffer.c
Sébastien Helleu [Fri, 30 Dec 2022 20:50:18 +0000 (21:50 +0100)]
core: fix color when the delimiter is not followed by a background color (closes #1867)
Sébastien Helleu [Fri, 30 Dec 2022 15:30:20 +0000 (16:30 +0100)]
doc: update Polish auto-generated files
Krzysztof Korościk [Thu, 29 Dec 2022 11:45:20 +0000 (12:45 +0100)]
core: updated Polish translation
Sébastien Helleu [Thu, 29 Dec 2022 18:30:58 +0000 (19:30 +0100)]
doc: update German auto-generated file
Nils Görs [Thu, 29 Dec 2022 11:51:12 +0000 (12:51 +0100)]
core: update German translations
Sébastien Helleu [Thu, 29 Dec 2022 11:05:21 +0000 (12:05 +0100)]
core: fix French translation of "read marker"
Sébastien Helleu [Thu, 29 Dec 2022 11:00:28 +0000 (12:00 +0100)]
core: add option weechat.look.chat_space_right (issue #1862)
Krzysztof Korościk [Tue, 27 Dec 2022 23:01:04 +0000 (00:01 +0100)]
doc: updated polish translation
Sébastien Helleu [Wed, 28 Dec 2022 09:27:44 +0000 (10:27 +0100)]
doc: update German auto-generated file
Nils Görs [Wed, 28 Dec 2022 09:25:31 +0000 (10:25 +0100)]
core: update German translations
Sébastien Helleu [Mon, 26 Dec 2022 22:43:28 +0000 (23:43 +0100)]
doc: update German auto-generated files
Nils Görs [Mon, 26 Dec 2022 12:41:24 +0000 (13:41 +0100)]
core: update German translations
Nils Görs [Mon, 26 Dec 2022 12:32:56 +0000 (13:32 +0100)]
core: update German translations
Sébastien Helleu [Mon, 26 Dec 2022 00:27:45 +0000 (01:27 +0100)]
core: allow value "0" in buffer property "unread" to remove read marker from buffer
Sébastien Helleu [Sun, 25 Dec 2022 23:55:30 +0000 (00:55 +0100)]
doc/api: fix formatting of return value in char/string comparison functions
Sébastien Helleu [Sun, 25 Dec 2022 22:05:22 +0000 (23:05 +0100)]
core: reorder entries in ChangeLog
Dawid Dziurla [Sun, 25 Dec 2022 18:46:24 +0000 (19:46 +0100)]
changelog: add entry about Ruby 3.2 detection
Dawid Dziurla [Sun, 25 Dec 2022 18:46:09 +0000 (19:46 +0100)]
ruby: add detection of Ruby 3.2
Sébastien Helleu [Sun, 25 Dec 2022 21:47:18 +0000 (22:47 +0100)]
core: move `/input` buffer switch/zoom actions to command `/buffer`
Actions moved:
* `/input switch_active_buffer` -> `/buffer switch`
* `/input switch_active_buffer_previous` -> `/buffer switch -previous`
* `/input zoom_merged_buffer` -> `/buffer zoom`
Sébastien Helleu [Sun, 25 Dec 2022 20:44:27 +0000 (21:44 +0100)]
core: move `/input` set_unread actions to commands `/allbuf` and `/buffer set`
Actions moved:
* `/input set_unread` -> `/allbuf /buffer set unread`
* `/input set_unread_current_buffer` -> `/buffer set unread`
Sébastien Helleu [Sun, 25 Dec 2022 20:23:14 +0000 (21:23 +0100)]
core: add command `/allbuf`
Sébastien Helleu [Sun, 25 Dec 2022 19:35:10 +0000 (20:35 +0100)]
api: do not check hotlist add conditions when adding buffer in hotlist with function buffer_set
Sébastien Helleu [Sun, 25 Dec 2022 18:40:57 +0000 (19:40 +0100)]
core: add option `add` in command `/hotlist`
Sébastien Helleu [Sun, 25 Dec 2022 18:07:39 +0000 (19:07 +0100)]
core: fix typo in comment
Sébastien Helleu [Sun, 25 Dec 2022 17:50:57 +0000 (18:50 +0100)]
core: move `/input` hotlist actions to new command `/hotlist`
Actions moved to command `/hotlist`:
* `/input hotlist_clear` -> `/hotlist clear`
* `/input hotlist_remove_buffer` -> `/hotlist remove`
* `/input hotlist_restore_buffer` -> `/hotlist restore`
* `/input hotlist_restore_all` -> `/hotlist restore -all`
Sébastien Helleu [Sun, 25 Dec 2022 16:57:59 +0000 (17:57 +0100)]
core: add function gui_buffer_jump_last_visible_number
Sébastien Helleu [Sun, 25 Dec 2022 16:00:37 +0000 (17:00 +0100)]
core: move `/input` jump actions to command `/buffer jump`
Actions moved to command `/buffer jump`:
* `/input jump_smart` -> `/buffer jump smart`
* `/input jump_previously_visited_buffer` -> `/buffer jump prev_visited`
* `/input jump_next_visited_buffer` -> `/buffer jump next_visited`
* `/input jump_last_buffer_displayed` -> `/buffer jump last_displayed`
Sébastien Helleu [Sun, 25 Dec 2022 15:53:30 +0000 (16:53 +0100)]
core: fix style in ChangeLog and release notes
Sébastien Helleu [Sun, 25 Dec 2022 14:06:03 +0000 (15:06 +0100)]
core: fix typo in comment
Sébastien Helleu [Sat, 24 Dec 2022 18:37:40 +0000 (19:37 +0100)]
core: remove useless conditions
Sébastien Helleu [Sat, 24 Dec 2022 17:29:35 +0000 (18:29 +0100)]
api: add functions string_strcmp and string_strncmp
Sébastien Helleu [Sat, 24 Dec 2022 16:52:31 +0000 (17:52 +0100)]
doc/api: mention "UTF-8" in char/string comparison functions
Sébastien Helleu [Sat, 24 Dec 2022 16:33:22 +0000 (17:33 +0100)]
api: rename char comparison functions "utf8_char*" to "string_char*"
Sébastien Helleu [Sat, 24 Dec 2022 15:25:20 +0000 (16:25 +0100)]
api: return arithmetic difference between chars in string comparison functions
Return code is changed for the following functions:
- string_strcasecmp
- string_strcasecmp_range
- string_strncasecmp
- string_strncasecmp_range
- string_strcmp_ignore_chars
- utf8_charcmp
- utf8_charcasecmp
- utf8_charcasecmp_range
Sébastien Helleu [Fri, 23 Dec 2022 22:20:29 +0000 (23:20 +0100)]
api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
Sébastien Helleu [Thu, 22 Dec 2022 19:56:50 +0000 (20:56 +0100)]
core: fix typo in French translation of /help input
Sébastien Helleu [Wed, 21 Dec 2022 18:23:29 +0000 (19:23 +0100)]
core: improve case convert and insensitive char comparisons (closes #258)
All lowercase letters are now properly converted to uppercase letters (and vice
versa), via functions `towupper` and `towlower`.
Functions `string_tolower`, `string_toupper` and `utf8_charcasecmp` have been
optimized to be faster when there are ASCII chars (< 128); functions are about
25-40% faster with mixed chars (both ASCII and multi-bytes).
Function `utf8_wide_char` has been removed, `utf8_char_int` can be used
instead.
Sébastien Helleu [Mon, 19 Dec 2022 12:01:33 +0000 (13:01 +0100)]
core: remove unneeded casts
Sébastien Helleu [Mon, 19 Dec 2022 10:18:59 +0000 (11:18 +0100)]
irc: fix calls to weechat_string_toupper
Sébastien Helleu [Mon, 19 Dec 2022 10:18:49 +0000 (11:18 +0100)]
core: fix call to string_toupper
Sébastien Helleu [Mon, 19 Dec 2022 06:07:12 +0000 (07:07 +0100)]
spell: return directly output of string_dyn_free without temporary variable
Sébastien Helleu [Mon, 19 Dec 2022 06:06:01 +0000 (07:06 +0100)]
irc: return directly output of string_dyn_free without temporary variable
Sébastien Helleu [Mon, 19 Dec 2022 06:04:33 +0000 (07:04 +0100)]
core: return directly output of string_dyn_free without temporary variable
Sébastien Helleu [Sun, 18 Dec 2022 13:10:10 +0000 (14:10 +0100)]
api: return newly allocated string in functions string_tolower and string_toupper
Sébastien Helleu [Sat, 17 Dec 2022 19:25:07 +0000 (20:25 +0100)]
core: return number of bytes for UTF-8 char in function utf8_int_string
Sébastien Helleu [Sat, 17 Dec 2022 16:37:02 +0000 (17:37 +0100)]
tests: add tests on function gui_input_delete_next_word
Sébastien Helleu [Sat, 17 Dec 2022 16:36:35 +0000 (17:36 +0100)]
tests: add tests on function gui_input_delete_range
Sébastien Helleu [Sat, 17 Dec 2022 15:59:04 +0000 (16:59 +0100)]
tests: add tests on gui delete previous/next char functions
Sébastien Helleu [Sat, 17 Dec 2022 14:38:34 +0000 (15:38 +0100)]
tests: add extra tests on function gui_input_set_pos
Sébastien Helleu [Sat, 17 Dec 2022 14:37:48 +0000 (15:37 +0100)]
tests: add tests on gui input completion functions
Sébastien Helleu [Sat, 17 Dec 2022 14:20:23 +0000 (15:20 +0100)]
core: remove unused argument "pos" from function gui_input_insert_string, add tests on function
Sébastien Helleu [Sat, 17 Dec 2022 13:42:08 +0000 (14:42 +0100)]
core: simplify gui input functions by returning immediately if condition not met
Sébastien Helleu [Sat, 17 Dec 2022 11:55:39 +0000 (12:55 +0100)]
irc: do not join channels in server autojoin option after reconnection to the server (closes #560, bug #21529)
Sébastien Helleu [Wed, 14 Dec 2022 22:44:41 +0000 (23:44 +0100)]
doc: update German auto-generated file
Nils Görs [Wed, 14 Dec 2022 21:38:45 +0000 (22:38 +0100)]
core: update German translations
Trygve Aaberge [Sat, 22 Oct 2022 10:32:18 +0000 (12:32 +0200)]
doc/api: Improve python example for config_new_section
This updates the Python examples to include all the possible return
values for the callbacks in config_new_section, like it is done in the C
example. It also aligns the order of the values with the C example.
Trygve Aaberge [Sat, 22 Oct 2022 10:30:04 +0000 (12:30 +0200)]
doc/api: Fix return values for callback_read in config_new_section
These return values were wrong in the description and C example. As can
be seen on lines 2835 and 2873-2903 of src/core/wee-config-file.c the
callback_read function should return the same as the function
config_file_option_set plus the value
WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND (which is also the same as
the possible return values of config_file_option_set_with_string).
The Python example was already correct and the C example was already
correct in the other languages apart from English.
These errors were introduced in commit
02e2b21d3 and commit
5210ff1ae .
Sébastien Helleu [Sun, 11 Dec 2022 14:25:13 +0000 (15:25 +0100)]
core: add contributor (issue #1859)
Sébastien Helleu [Sun, 11 Dec 2022 14:17:38 +0000 (15:17 +0100)]
core: update ChangeLog (issue #1859)
Ryan Qian [Sun, 11 Dec 2022 03:13:24 +0000 (11:13 +0800)]
cmake: add support of compiling with enchant-2 for the Spell plugin
Sébastien Helleu [Sun, 11 Dec 2022 14:15:50 +0000 (15:15 +0100)]
core: update ChangeLog (issue #1843)
Trygve Aaberge [Sat, 22 Oct 2022 13:27:06 +0000 (15:27 +0200)]
scripts: Send null values to config section callbacks
The callback_read and callback_create_option functions in the scripting
APIs always get the value as a string, never as null. This means that if
the value is null, there is no way for the script to distinguish this
from an empty string for string options. This makes it impossible to
properly make options with fallback values, like the irc server and
server_default options, as far as I can see.
All the scripting languages except Tcl use that language's equivalent
for null. For JavaScript which has both null and undefined, null is
used. For Tcl, the magic null string defined in commit
197a7a01e is used
and the documentation is updated to describe that.
I tested this with these scripts:
https://gist.github.com/trygveaa/
2d49c609addf9773d2ed16e15d1e3447
You can load all of those scripts and see the result with this command
(assuming you have the scripts in the current directory):
weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)"
Sébastien Helleu [Sat, 10 Dec 2022 21:30:24 +0000 (22:30 +0100)]
trigger: fix variables sent to focus callback (closes #1858)
This fixes a regression introduced in WeeChat 3.7 by commit
0f67f55098db564c82c848262540704985790129 .