(Fforward_comment): Use type int for `from' and `from_byte'.
[emacs.git] / etc / ERC-NEWS
blob67345efe0907af369d0e045bf6f89f3ed00ffd46
1 ERC NEWS                                                       -*- outline -*-
3 * Changes in ERC 5.2 (unreleased)
5 * Changes in ERC 5.1.2
7 ** Fix compiler errors in erc-autojoin.el and erc-dcc.el.
9 ** Move to end of prompt when ERC reconnects to a server.
11 ** Changes and additions to modules
13 *** Spell-checking (erc-spelling.el)
15 **** Don't spell-check nicks or words that are prefixed with '/'.
17 **** Remove flyspell properties from words we shouldn't spell-check.
19 **** Fix an issue that caused the ispell process to reload every time
20 we switch to an ERC buffer.
22 *** Timestamps (erc-stamp.el)
24 **** Fix an inconsistency in calculating width of right timestamps.
26 **** Rename option `erc-timestamp-right-align-by-pixel' to
27 `erc-timestamp-use-align-to'.  This controls whether to use the more
28 fail-proof method of aligning right timestamps, as mentioned below.
30 **** Fix a right timestamp spacing problem that used to occur when
31 erc-stamp.el was byte-compiled.  Now that this is fixed, it is safe to
32 use the method that aligns right timestamps perfectly in Emacs22 with
33 X.  If the current version of Emacs doesn't support this method, use
34 the simpler method, which is prone to alignment issues for math
35 symbols and other variable-width text.
37 A side effect of using this new method is that there will only be one
38 space before a right timestamp in any saved logs.  If this is
39 unacceptable, set `erc-timestamp-use-align-to' to nil.
41 * Changes in ERC 5.1.1
43 ** Fix a requirement on cl.el.
45 ** Use tls.el for SSL connections, rather than ssl.el.
47 ** Changes and additions to modules
49 *** ibuffer integration (erc-ibuffer.el)
51 **** Update this to work with the version of ibuffer.el that comes with
52 recent Emacs variants.
54 *** Old completion (erc-complete.el)
56 **** Fix a few errors.
58 *** Speedbar (erc-speedbar.el)
60 **** Make this work with the version of speedbar.el that comes with
61 recent Emacs variants.
63 *** Timestamps (erc-stamp.el)
65 **** By default, use a more failsafe method of displaying right timestamps.
66 To get right timestamps to align perfectly in Emacs22 using X, set the
67 new `erc-timestamp-right-align-by-pixel' option to non-nil.
69 *** Viper compatibility (erc-viper.el)
71 **** Since most of these changes are now merged into Emacs22, detect
72 whether we need these changes and install them only if necessary.
74 * Changes in ERC 5.1
76 ** Improve XEmacs compatibility.
78 ** Namespace changes
80 *** Now ERC doesn't use global variable space.
81 Renamed all variables that didn't start with "erc-".
83   o `away' is now `erc-away'
85   o `current-nick' is now `erc-server-current-nick'
87   o `last-peers' is now `erc-server-last-peers'
89   o `last-ping-time' is now `erc-server-last-ping-time'
91   o `last-sent-time' is now `erc-server-last-sent-time'
93   o `lines-sent' is now `erc-server-lines-sent'
95   o `quitting' is now `erc-server-quitting'
97 *** Remove the `with-erc-channel-buffer' function.
99 ** Bugfixes
101 *** Don't inadvertently destroy face properties.
103 *** Load erc scripts in a safer way.
105 *** Don't insert a timestamp if text at point is invisible.
107 *** Don't hide messages from those in `erc-fools' by default.
108 Color their nicks instead.
110 *** Use a more foolproof method of encoding and decoding strings
111 before sending to a channel.
113 ** Backend changes
115 *** Renamed some server-specific variables
117   o `erc-announced-server-name' is now `erc-server-announced-name'
119   o `erc-auto-reconnect' is now `erc-server-auto-reconnect'
121   o `erc-connect-function' is now `erc-server-connect-function'
123   o `erc-default-coding-system' is now `erc-server-coding-system'
125   o `erc-duplicate-timeout' is now `erc-server-duplicate-timeout'
127   o `erc-duplicates' is now `erc-server-duplicates'
129   o `erc-lag' is now `erc-server-lag'
131   o `erc-prevent-duplicates' is now `erc-server-prevent-duplicates'
133   o `erc-previous-read' is now `erc-server-filter-data'
135   o `erc-process' is now `erc-server-process'
137   o `erc-ping-handler' is now `erc-server-send-ping-handler'
139   o `erc-ping-interval' is now `erc-server-send-ping-interval'
141 *** Renamed some functions
143   o `erc-connect' is now `erc-server-connect'
145   o `erc-process-filter' is now `erc-server-filter-function'
147   o `erc-send-command' is now `erc-server-send'
149   o `erc-send-single-line' is now `erc-send-input'
151   o `erc-setup-periodical-server-ping' is now
152     `erc-server-setup-periodical-server-ping'
154   o `erc-split-command is now `erc-split-line'
156 *** New options
158   o erc-server-flood-margin, erc-server-flood-penalty: New options
159     that allow tweaking of flood control.
161   o erc-split-line-length: The maximum line length of a single
162     message.
164 *** New variables
166   o erc-server-flood-last-message, erc-server-flood-queue,
167     erc-server-flood-timer: Flood control.
169   o erc-server-processing-p: Indicate when we're currently processing
170     a message.
172 *** Remove some options
174   o `erc-flood-limit'
175   o `erc-flood-limit2'
177 ** New customization group `erc-server' for dealing with IRC servers.
179 ** ERC can now be installed by doing `make install' from the command line.
181 ** ERC now has a manual in erc.texi.
182 Type `make doc' to generate HTML and Info versions of it.
184 ** ERC no longer depends on cl.el.
185 Only the macros in cl-macs.el are used.
187 ** Fix an edge case when quitting as new messages come in.
189 ** Make flood protection toggle-able as on/off, removing the 'strict option.
191 ** If possible, re-use channel buffers when reconnecting to a server.
193 ** Text in ERC buffers is now read-only by default.
194 To get the previous behavior, 
196 ** Changes and additions to modules
198 *** Auto-join (erc-autojoin.el)
200 **** Recognize the Azzurra server.
202 *** BBDB (erc-bbdb.el)
204 **** When the user types /WHOIS, ask for a record to merge to.
206 **** Store the displayed name of a BitlBee contact.
207 The new `erc-bbdb-bitlbee-name-field' option specifies the field to use
208 to store this information.
210 **** Don't prompt for a name on /JOIN or /NICK.
212 *** Button (erc-button.el)
214 **** Fix customization of `erc-button-alist'
216 **** New option `erc-button-nickname-face' determines the face to use
217 when coloring ERC nicknames.
219 *** Channel tracking (erc-track.el)
221 **** Remove channels from the modified channels list if not currently
222 connected.  This should remove residue from the mode line after
223 quitting ERC.
225 **** Recognize buttonized text
227 *** Highlighting (erc-match.el)
229 **** Highlight current nickname by default.
231 **** Added the option of beeping when certain matches occur.
232 Add `erc-beep-on-match' to `erc-text-matched-hook' to enable
233 beeping.  Set the new variable `erc-beep-match-types' which match
234 types that make beeps.
236 *** Nicklist (erc-nicklist.el)
238 **** Fix a couple of errors.
240 **** Make sure a stray mouse click doesn't trigger an error.
242 **** Insert icons from the /images directory next to nicks.
243 This indicates their away status.  The location is customizable via
244 the new `erc-nicklist-icons-directory' option.
246 If you do not want these icons, set `erc-nicklist-use-icons' to nil.
248 *** Nickserv identification (erc-nickserv.el)
250 **** Recognize Azzurra and OFTC networks.
252 *** Old completion (erc-complete.el)
254 **** Disable by default.
256 *** Programmable completion (erc-pcomplete.el)
258 **** Enable by default.
260 *** Timestamps (erc-stamp.el)
262 **** On Emacs22, align right timestamps perfectly, even if variable-width
263 characters are used.  If we aren't using Emacs22, move text farther
264 away from the right margin when variable-width characters are used.
265 It is considered better to misalign the stamp by a bit than to go past
266 the right margin.
268 **** Enable by default
270 ** New modules
272 *** Spell-checking (erc-spelling.el)
274 **** Use flyspell in ERC.
276 *** Viper compatibility (erc-viper.el)
278 **** Helps ERC work correctly in viper-mode.
280 * Changes in ERC 5.0.4
282 ** Fix a problem with undo in channels.
284 * Changes in ERC 5.0.3
286 ** Fix typo in the `ctcp-request-to' entry of the English catalog.
288 ** Debugging with edegug has been made easier in all of the
289 erc-with-* and with-erc* macros.
291 ** Non-ASCII character sets should be better supported when sending
292 and processing messages.
294 ** A load failure with erc-autoaway.el and Emacs21 has been fixed.
296 ** A few XEmacs warnings were fixed.
298 ** Changes and additions to modules
300 *** Backend (erc-backend.el)
302 **** Move the check for hidden messages into `erc-display-message'
303 so there isn't so much replicated code.
305 **** Add `definition-name' property to constructed symbols so that
306 `find-function' and `find-variable' will be able to locate them.
308 **** Make sure logs are inserted info the correct channel buffers.
309 There was previously an error when using `erc-insert-log-on-open' in
310 combination with autojoin to multiple channels.
312 *** Button (erc-button.el)
314 **** The layering of `erc-button-face' on other faces in ERC buffers
315 has been improved.
317 *** Channel tracking (erc-track.el)
319 **** Use optimal amount of whitespace around modified channels
320 indicator.  Previously, there was an additional unnecessary space.
322 **** Fix an error that occurred when unchecked buffers existed when
323 invoking /QUIT.
325 * Changes in ERC 5.0.2
327 ** If a channel key is required for a certain channel, ERC will prompt
328 for one if `erc-prompt-for-channel-key' is non-nil.
330 ** ERC doesn't try to reconnect if the network connection is refused
331 when using `open-network-stream-nowait' as the `erc-connect-function'.
333 ** Messages from multiple servers will not go to the currently active
334 buffer.  The messages from each server will be contained in the most
335 recently active channel/server buffer that corresponds with the
336 server.
338 ** Some text messages were cleaned up slightly.
340 ** Button faces should no longer "cover" other faces.
342 ** Made some XEmacs compatibility fixes.
344 ** Nicknames containing a backslash are now correctly highlighted as
345 current-nick and buttonized as nicks.
347 ** `erc-server-select' doesn't offer networks without servers as a
348 choice anymore.
350 ** Non-ASCII character support has been improved.
352 ** Changes and additions to modules
354 *** Menu (erc-menu.el)
356 **** You can now save logs and truncate buffers from the menu-bar.
358 * Changes in ERC 5.0.1
360 ** Narrowing in ERC buffers no longer causes formatting errors.
362 ** The BBDB module now loads correctly when customizing `erc-modules'.
364 ** The value of `erc-button-face' is now respected.
366 ** Fixed a bug which caused a read-only error during connection.
368 ** Server buffers are now tracked correctly.
369 This means that `erc-track-priority-faces-only', `erc-track-exclude',
370 and `erc-track-exclude-types' now work with server buffers.
372 * Changes in ERC 5.0
374 ** Channel members are now stored as a hash-table.
375 `erc-server-users' and `erc-channel-users' are now hash-tables, rather
376 than alists.  This significantly increases performance, especially in
377 large channels.  Each channel member is stored as an `erc-server-user'
378 struct, with additional information about the channels they are on
379 stored in an `erc-channel-user' struct.  Code using old alist-style
380 channel members needs to be updated to work with hash-tables.
381 This new code also removes the need for erc-members.el, which has been
382 removed.
384 ** The way ERC deals with input from the server has changed.
385 All server response code is now in a new file, erc-backend.el.  There
386 should be no real user visible changes.  There are, however, a few
387 major changes for implementers, and module writers:
389 *** The PARSED response that all handlers get called with is
390     no longer a vector, but an `erc-response' struct.
392     This means LESS MAGIC NUMBERS in the ERC source code, but a few
393     changes in how you get at parsed responses.
395     The sender is accessed via `erc-response.sender'.
397     The command is accessed via `erc-response.command'.
399     The arguments to the command (everything after the command and
400     before the colon) are accessed via `erc-response.command-args'.
401     This is a /list/ of arguments in the order they appear in the
402     unparsed response.
404     The contents of the response is accessed via
405     `erc-response.contents'.
407     Should, for some reason, you want to do something with the
408     /unparsed/ response, you can get it via `erc-response.unparsed'.
410 *** The `erc-server-hook-list' mechanism is gone.
412     All server response handlers should be defined with
413     `define-erc-response-handler'.  This defines functions and
414     corresponding hook variables.
416     The mapping of server commands to hook variables is no longer
417     done via `erc-event-to-hook', but through an #'equal hashtable,
418     `erc-server-responses'.  In order to find a hook you do:
420     (erc-get-hook command)
422     See the docstring of `define-erc-response-handler' for more
423     information.
425 *** ALL hook variables have been renamed.
427     In accordance with recommendations in the Emacs Lisp manual,
428     the hook variables are no longer called `erc-server-FOO-hook',
429     but rather `erc-server-FOO-functions'.  This is to indicate
430     that the functions they call take arguments.
432     All the modules in ERC have been updated to reflect this change,
433     but external module authors should beware.
435 ** The values of `erc-mode-line-format' and `erc-header-line-format'
436 are now defined as strings to be formatted using `format-spec'.
437 `erc-mode-line-format' does not replace the whole mode-line anymore,
438 only `mode-line-buffer-identification' is set.  This way, personal
439 mode-line configurations are not modified and all key bindings work as
440 expected.  The process status (connecting, closed) is now shown in
441 `mode-line-process'.
443 ** Customization of ERC variables has been made easier.  Variables
444 have been split into more groups for better organization.
446 ** New variables
448   o `erc-send-whitespace-lines' - Set this to send lines even if they
449     are empty.
451   o `erc-manual-set-nick-on-bad-nick-p' - If the nickname you chose is
452     already taken or not allowed, your nick is not changed and you can
453     try again manually if this is non-nil.
455   o `erc-mode-line-away-status-format' - You can now set what is shown
456     in the mode-line when you are away.
458   o `erc-header-line-uses-help-echo-p' - The header-line now uses the
459     help-echo property. You can set this to nil to disable it.
461   o `erc-format-query-as-channel-p' - Set this to nil to have messages
462     in the query buffer formatted like private messages.
464   o `erc-show-channel-key-p' - The channel key is now shown with the
465     other channel modes in the header line. Set this to nil if you
466     want it hidden.
468   o `erc-prompt-for-channel-key' - Set this if you want to be prompted
469     for the channel key (channel's mode is +k) when you call
470     `erc-join-channel' interactively.
472   o `erc-kill-server-buffer-on-quit' - If non-nil, kill the server
473     buffer automatically when you quit.
475 ** New hooks
477   o `erc-join-hook' - Called when you join a channel.
479   o `erc-kick-hook' - Called when you are kicked from a channel. The
480     channel's buffer is sent as an argument to functions called from
481     this hook.
483   o `erc-nick-changed-functions' - Whenever your nickname changes
484     successfully, the functions in this hook are run with the
485     arguments NEW-NICK and OLD-NICK.
487 ** New command /WHOAMI - Do a /WHOIS on your current nickname.
489 ** The key binding for changing channel modes is now C-c C-o.
491 ** Removed variables
493   o `erc-echo-notices-in-minibuffer-flag' and
494     `erc-echo-notices-in-current-buffer' - You should use
495     `erc-echo-notice-hook' and `erc-echo-notice-always-hook' instead.
497   o `erc-prompt-interactive-input' has been removed (commented out)
498     because nickname completion does not work with it.
500   o All INFO buffer-related variables and functions have been removed.
502 ** You can now disable modules by setting `erc-modules' with the
503 customization interface.
505 ** Changes and additions to modules
507 *** Autoaway (erc-autoaway.el)
509 **** New variable `erc-autoaway-no-auto-back-regexp' - Add text which,
510 when you type anything matching it, will not automatically discard
511 your away status when `erc-auto-discard-away' is non-nil.
513 *** Filling (erc-fill.el)
515 **** New variable `erc-fill-variable-maximum-indentation' - Don't
516 indent more than this many characters when indenting a message from a
517 user with a long nickname.
519 *** Goodies (erc-goodies.el)
521 **** Miscellaneous small modules have been moved from erc.el.
522 The functions erc-add-scroll-to-bottom, erc-make-read-only,
523 erc-send-distinguish-noncommands, erc-interpret-controls, erc-unmorse,
524 erc-smiley, and erc-occur, which were defined in the main erc.el file
525 have been moved to erc-goodies.el and have mostly been translated to
526 the modules scrolltobottom, readonly, noncommands, irccontrols, smiley
527 and unmorse.
529 **** New variables
531   o `erc-input-line-position' - The line number to use with
532     `erc-scroll-to-bottom'.
534   o `erc-beep-p' - Beep if there is a \C-g control character in a
535     message.
537 *** Channel lists (erc-list.el)
539 **** New variable `erc-chanlist-highlight-face' - A face used for
540 highlighting the current line.
542 *** Highlighting (erc-match.el)
544 **** `erc-current-nick-highlight-type' has new options: 'keyword and
545 'nick-or-keyword.
547 *** Menu (erc-menu.el)
549 **** The `IRC' menu is now automatically added to `erc-mode' buffers.
551 *** Networks (erc-nets.el)
553 **** The functions for determining current network are in this file.
554 There were a couple of functions spread about in different files which
555 each had a different way of determining the current network.  The
556 methods have been combined, and the big list of known networks
557 (`erc-networks-alist') is being put to use.  You can access the
558 network's name by calling the new function `erc-network'.  This
559 returns the name of the current network as a symbol or 'Unknown if it
560 could not determine which network it is.
562 *** Nicklist (erc-nicklist.el)
564 **** ERC has a new way of displaying nicknames in a channel.
565 The new file erc-nicklist.el defines a new command `erc-nicklist'
566 which pops up a small Emacs window showing the nicknames of all
567 members of the current channel.  The implementation is not complete
568 and is rather proof-of-concept for now.  The result is something a bit
569 like erc-speedbar, but not quite as invasive, and doesn't require use
570 of a new frame.
572 *** Internet services / Nickserv (erc-nickserv.el)
574 **** Network detection is now taken care of by erc-nets.el.
575 The function `erc-current-network' is deprecated, use `erc-network'
576 instead.  The variable `erc-networks' has been removed, use
577 `erc-networks-alist'.  The network symbols used in
578 `erc-nickserv-alist' now match those in `erc-networks-alist'.
580 **** New variable `erc-nickserv-identify-mode' - Choose which method
581 to use for automatic identification: you can wait for Nickserv to ask
582 you to identify (the default), or send an identify message
583 automatically after you change your nickname.
585 *** Speedbar (erc-speedbar.el)
587 **** New variable `erc-speedbar-sort-users-type' - Sort users in a
588 channel by activity, alphabetically, or not at all.
590 *** Timestamps (erc-stamp.el)
592 **** `erc-timestamp-only-if-changed-flag' now works when
593 `erc-insert-timestamp-function' is set to 'erc-insert-timestamp-left.
595 **** New variable `erc-timestamp-intangible' - Set this to nil if
596 timestamps should not have the 'intangible property.
598 *** Channel tracking (erc-track.el)
600 **** Using faces to indicate channel activity in the modeline now works
601 in XEmacs.
603 **** New variables
605   o `erc-track-priority-faces-only' - Ignore changes in a channel
606     unless there is a face from the `erc-track-faces-priority-list' in
607     the message.
609   o `erc-track-exclude-server-buffer' - Ignore changes in the server
610     buffer.
612   o `erc-track-position-in-mode-line' - Set the position in the
613     mode-line where modified channels are shown (only works in GNU
614     Emacs versions above 21.3).
616 * Changes in ERC 4.0
618 ** The module system has again changed a lot.  You can now customize
619   the variable `erc-modules' and define once and for all which
620   extension modules you want to use.  This unfortunately may require
621   you to change your current erc initialisation code a bit, if you
622   have some existing customsations.  On the other hand, this change
623   makes the configuration of extension modules a lot easier for new
624   users.  In theory, you should be able to configure all aspects of
625   ERC by using the customize interface, you should no longer really
626   need to write Lisp code for trivial customizations.
628   By default, the following modules are now loaded: (pcomplete
629   netsplit fill track ring button autojoin)
631   Please use M-x customize-variable RET erc-modules RET to change the
632   default if it does not suite your needs.
634 ** THe symbol used in `erc-nickserv-passwords' for debian.org IRC servers
635   (formerly called OpenProjects, now FreeNode) has changed from
636   openprojects to freenode.  You may need to update your configuration
637   for a successful automatic nickserv identification.
639 * Changes in ERC 3.0.cvs.20030119
641 ** New module erc-dcc:
643 This finally implements DCC.  It requires server sockets to fully work
644 in both directions.  This feature is currently only available in Emacs
645 21.3.50 (CVS). Here is a short list of what should work though.
647 ** Compatibility:
648   * Emacs 21.2, DCC get, and accepting DCC chat offers.
649   * XEmacs 21, Only accepting DCC chat offers.
651 ** erc is switching to global-minor-modes for activation of submodules.
653 This allows you to customize such a mode and get automatic loading of
654 the module.  No longer putting a lot of require statments in .emacs.
655 At least this is the long-term plan, not all modules are converted
656 yet.
658 ** The most important user visible change is that you now need to activate
659 erc-completion-mode, to get TAB completion.  The new completion code
660 is based on pcomplete.  To get the old code, manually load
661 erc-complete and bind TAB to erc-complete in erc-mode-map.
663 To activate completion on startup, put (erc-completion-mode 1) in your
664 .emacs file.
666 Same applies to timestamps.  You no longer need to (require
667 'erc-stamp), you can customize the variable `erc-timestamp-mode', and
668 the rest should be automatic.
670 arch-tag: 2b21b387-6cdc-4192-889c-6743cfffdcb1