5098 Commits

Author SHA1 Message Date
Sebastien Helleu
c82633e9e4 core: use first gap for new buffer only if the buffer has no layout number 2013-12-07 12:45:40 +01:00
Sebastien Helleu
4f184b6111 core: add note about new option "irc.network.lag_max" in NEWS 2013-12-07 11:54:11 +01:00
Sebastien Helleu
4520b0f7ae core: add option weechat.look.buffer_position
The value of option can be:
- "end": buffer is added after the end of list (number = last number + 1)
- "first_gap": buffer is added at first number available in the list
  (after the end of list if no number is available)
2013-12-07 10:44:08 +01:00
Sebastien Helleu
9d74013036 irc: add option irc.network.lag_max 2013-12-06 08:40:44 +01:00
Sebastien Helleu
92280750c8 doc: update auto-generated files with hdata 2013-12-06 08:13:04 +01:00
Sebastien Helleu
ea16b06348 irc: fix ignore on a host without nick 2013-12-05 19:47:51 +01:00
Sebastien Helleu
dfa3e13e3d doc: add missing property "print_hooks_enabled" in function buffer_set (plugin API reference) 2013-12-04 10:16:44 +01:00
Sebastien Helleu
1d7466032d core: add buffer property "day_change" to hide messages for the day change in specific buffers 2013-12-04 09:38:57 +01:00
Sebastien Helleu
267eeffa0a irc: add comments about irc color codes in messages 2013-12-04 08:55:02 +01:00
Sebastien Helleu
57cda6a331 irc: remove function irc_color_decode_for_user_entry
Since commits d03eb52d4992c46b01c47d076ae5ef5aa68be10c and
0c48b7ab8bbd4b5b2f5bb73f3e96930091fa7ead, the IRC color codes are the
same in input line and messages, so the function
irc_color_decode_for_user_entry is not needed any more.
It was used only to decode colors when completing the command /topic
(with the channel topic).
2013-12-04 07:51:59 +01:00
Sebastien Helleu
03fa2448ef core: use syntax key[xxx] for key bindings in ChangeLog and NEWS 2013-12-02 19:11:35 +01:00
Sebastien Helleu
50a489bc33 doc: use syntax key[xxx] for key bindings in quickstart guide 2013-12-02 19:11:03 +01:00
Sebastien Helleu
3d49f7662f doc: replace @k(xxx) by key[xxx] for key bindings in docs
The new syntax is more readable in source files (same result in HTML
docs).
2013-12-02 19:10:08 +01:00
Sebastien Helleu
d0832cd50e core: replace default key ctrl+"c", "u" by ctrl+"c", "_" for underlined text in messages 2013-12-01 18:39:05 +01:00
Sebastien Helleu
0c48b7ab8b irc: use color code 0x1F (ctrl-_) for underlined text in input line (same code as messages) (bug #40756) 2013-12-01 18:34:40 +01:00
Sebastien Helleu
d3799b4616 core: replace default key ctrl+"c", "r" by ctrl+"c", "v" for reverse video in messages 2013-12-01 11:30:52 +01:00
Sebastien Helleu
d03eb52d49 irc: use color code 0x16 (ctrl-V) for reverse video in messages
Other clients are using 0x16, and not 0x12 that was the default in
WeeChat (which was able to decode both 0x12 and 0x16).

Now the 0x12 is not decoded and does not make reverse video any more.
2013-12-01 11:28:32 +01:00
Sebastien Helleu
b32ccca390 irc: check that string is not NULL in functions irc_color_{decode,decode_for_user_entry,encode} 2013-12-01 09:50:53 +01:00
Sebastien Helleu
c8a479453d core: add missing access to hdata "buffer_visited" 2013-12-01 08:46:07 +01:00
Sebastien Helleu
9a160509d7 core: fix random crash when closing a buffer
The problem happened because we used a pointer to a
"struct t_gui_buffer_visited" for the switch to another buffer,
when the buffer is closed. This is executed in all windows displaying
the buffer, but on each switch to buffer, the visited buffers are
updated and therefore the address can change. The pointer becomes
invalid, and WeeChat still uses it on next windows for the buffer
switch.

It happened rarely because the visited buffer is freed and allocated
immediately after, so the address is often the same in memory.

Thanks to silverd for the tests on OS X to track the problem.
2013-12-01 08:37:22 +01:00
Sebastien Helleu
983791de84 irc: use option irc.network.colors_send (instead of receive) when displaying messages sent by commands /away, /me, /msg, /notice, /query 2013-11-30 19:50:56 +01:00
Sebastien Helleu
70e68afbf8 core: fix command /buffer renumber 2013-11-30 19:42:28 +01:00
Sebastien Helleu
f97ef54733 core: fix unmerge of buffer 2013-11-30 19:09:39 +01:00
Sebastien Helleu
92d6074931 core: add limits for buffers (max 10000 buffers opened, number of a buffer: between 1 and INT_MAX - 10000) 2013-11-30 18:45:19 +01:00
Sebastien Helleu
3e90657ab0 core: fix crash when moving buffer with only one buffer (core buffer) 2013-11-30 17:34:25 +01:00
Sebastien Helleu
b7e0e29de7 core: add bar item "buffer_last_number" 2013-11-30 15:57:34 +01:00
Sebastien Helleu
4c59f2bf5e core: add variable "gui_buffers_count", use it in bar item "buffer_count"
Now the bar item "buffer_count" displays the number of opened buffers
(each merged buffer counts 1).
2013-11-30 15:11:17 +01:00
Sebastien Helleu
f99103ee21 aspell: fix detection of nicks when there are non-alphanumeric chars around and in private buffers 2013-11-30 13:31:06 +01:00
Sebastien Helleu
332dcf1257 aspell: fix detection of nicks when there is nick completer at the end 2013-11-30 12:58:33 +01:00
Sebastien Helleu
0a0bbeed4d aspell: fix detection of nicks with non-alphanumeric chars 2013-11-30 12:18:36 +01:00
Sebastien Helleu
a496db78aa core: add option weechat.look.buffer_auto_renumber
New option: weechat.look.buffer_auto_renumber, boolean which is on by
default, so the behavior is the same: no gap is allowed in numbers,
they start at number 1 and they are auto-renumbered after each command
like /buffer move, /buffer merge, ...

A new option "renumber" has been added in command /buffer, to renumber
a range of buffers (or all).

Changes when the option weechat.look.buffer_auto_renumber is off:

- command "/buffer move":
    - the current number will be left free for use, and the
      target number can be any number >= 1 (possibly higher than the
      current last buffer number)
    - the value can be "-" (which moves the buffer to number 1)
      or "+" (which moves the buffer to the end, ie last number + 1)

- command "/buffer swap":
    - now the buffers are swapped in the list without being "moved"

- comand "/buffer [+/-]N":
    - it is now working with gaps in buffer numbers

- command "/buffer merge":
    - it can now merge a group of merged buffers into another buffer
      (or buffers merged themselves)

- layout can restore buffer numbers with gaps in numbers
2013-11-30 10:39:38 +01:00
Sebastien Helleu
9cc31d88ea irc: fix crash when setting a wrong value in server option "ssl_priorities"
The bug was introduced by commit 2305c95db08a214dba68e771c9bbabc51ca7d055
2013-11-30 09:20:14 +01:00
Sebastien Helleu
7e14c60f4d core: revert check of layout when switching to a buffer using value "auto" in buffer_set
This reverts commits 14cf7bd20fb3f00b18343464c175a0c4e3556149 and
262dff4b87ebf14a11fe83899fe168bc5a72ffe6.

The initial fix was for a problem with irc autojoin and layout: the
current window has not appropriate buffer (as defined in layout) if it
is not the latest channel in "autojoin" option.

So the way to fix this problem is to set the value of option
irc.look.buffer_switch_autojoin to off.
2013-11-28 19:59:36 +01:00
Sebastien Helleu
02fc4053c9 python: fix load of scripts with python >= 3.3 2013-11-28 19:46:36 +01:00
Sebastien Helleu
74333b2270 irc: suggest lower values for option irc.server.xxx.ssl_dhkey_size after SSL error GNUTLS_E_DH_PRIME_UNACCEPTABLE 2013-11-26 16:24:21 +01:00
Sebastien Helleu
9e1caff33f core: do not update terminal title on startup if option weechat.look.window_title is empty 2013-11-24 18:14:54 +01:00
Nils Görs
a0bfd1efb7 doc: update german user's guide 2013-11-24 13:59:29 +01:00
Sebastien Helleu
2305c95db0 irc: fix memory leak when checking the value of ssl_priorities option in servers 2013-11-23 17:06:07 +01:00
Sebastien Helleu
1fa4701ed0 core: free secured data on exit 2013-11-23 16:29:51 +01:00
Sebastien Helleu
0b94d3c3bc core: free nicklist data (for hsignal) on exit 2013-11-23 16:20:19 +01:00
Sebastien Helleu
95d0d33972 irc: fix memory leak when a channel is deleted 2013-11-23 16:15:36 +01:00
Sebastien Helleu
262dff4b87 doc: update description for value "auto" in function buffer_set with property "display" (plugin API reference)
Since commit 14cf7bd20fb3f00b18343464c175a0c4e3556149, the value "auto"
will switch buffer only if there is no layout defined for the current
window, or if the buffer displayed is NOT the buffer in the layout
(so if the buffer is defined in the layout, no switch).
2013-11-23 09:28:42 +01:00
Sebastien Helleu
bfcabd2b96 core: fix crash on "/buffer close name" when the buffer is not found 2013-11-22 08:19:05 +01:00
Sebastien Helleu
51aa15cced core: fix crash on /buffer close core.weechat 2013-11-22 07:57:30 +01:00
Nils Görs
58ae58d81b core: update german translations 2013-11-20 15:19:55 +01:00
Sebastien Helleu
0226a1934a doc: use asciidoc attribute for date of docs (fix cmake warning)
CMake was displaying some warnings about a space in argument used for
asciidoc command:

  -a date=`date "+%F"`

Warning displayed:

CMake Warning (dev) in doc/en/CMakeLists.txt:
  Syntax Warning in cmake code at

    /path/to/doc/en/CMakeLists.txt:41:82

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.
2013-11-20 08:32:39 +01:00
Sebastien Helleu
6716985d27 core: fix current color/background after reset of color
Bug was visible with such colored string in IRC:

 ^Cc7,5 one ^Cc ^Cc7 two

Before the fix, the word "two" had a red background.
The "^Cc" should reset both color + background, so now it does not have
a background any more.
2013-11-19 19:58:10 +01:00
Pierre Carru
b5db21d6c4 guile: disable guile gmp allocator (fix crash on unload of relay plugin) (bug #40628) 2013-11-19 19:41:16 +01:00
Sebastien Helleu
717eaae496 scripts: use #ifdef to check if versions are defined in signal "debug_libs" 2013-11-18 14:32:13 +01:00
Sebastien Helleu
fba9839587 core: use #ifdef to check if versions are defined in signal "debug_libs" 2013-11-18 14:31:26 +01:00