Merge from emacs--rel--22
[bpt/emacs.git] / lisp / erc / ChangeLog
1 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * erc.el: Remove code for Carbon.
4
5 2008-06-07 Glenn Morris <rgm@gnu.org>
6
7 * erc/erc-autoaway.el, erc/erc-ibuffer.el, erc/erc-menu.el:
8 * erc/erc-stamp.el, erc/erc.el: Remove unnecessary eval-when-compiles.
9
10 2008-05-30 Diane Murray <disumu@x3y2z1.net>
11
12 * erc-backend.el (328): New response handler.
13
14 * erc.el (english): Add 328 to catalog.
15
16 2008-05-29 Diane Murray <disumu@x3y2z1.net>
17
18 * erc-services.el (erc-nickserv-alist): Update REGEXP and
19 SUCCESS-REGEXP for freenode.
20
21 2008-05-05 Juanma Barranquero <lekktu@gmail.com>
22
23 * erc-goodies.el (erc-noncommands-list, noncommands)
24 (erc-control-characters, erc-interpret-controls-p)
25 (erc-interpret-mirc-color): Fix typos in docstrings.
26 (erc-controls-highlight): Reflow docstring.
27
28 2008-04-26 Johan Bockgård <bojohan@gnu.org>
29
30 * erc.el (erc-put-text-properties): Don't use mapcar*.
31 (erc-display-line-1): Fix argument order in call to
32 erc-put-text-properties.
33
34 2008-04-14 Michael Olson <mwolson@gnu.org>
35
36 * erc.el (erc-remove-text-properties-region): Disable this command
37 by default. Thanks to e1f for the suggestion.
38
39 2008-02-20 Michael Olson <mwolson@gnu.org>
40
41 * erc.el (erc-notice-face): Fix this face for Emacs 21 users.
42
43 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
44
45 * erc.el (erc-valid-nick-regexp):
46 * erc-button.el (erc-button-syntax-table):
47 * erc-match.el (erc-match-syntax-table): Replace `legal' with `valid'.
48
49 2008-02-04 Jeremy Maitin-Shepard <jbms@cmu.edu>
50
51 * erc.el (erc-cmd-QUERY): Bind the value of `erc-auto-query' to
52 `erc-query-display' rather than `erc-join-buffer'. This fixes a
53 bug where the value of erc-auto-query was being ignored.
54
55 2008-01-31 Michael Olson <mwolson@gnu.org>
56
57 * erc-dcc.el (erc-dcc-do-GET-command, erc-dcc-do-SEND-command):
58 Improve docstring. If FILE argument is split into multiple
59 arguments, re-join them into a single string, separated by a
60 space. This fixes an issue where the user wants to send or
61 receive a file with spaces in its name. It is assumed that no one
62 will try sending or receiving a file with multiple consecutive
63 spaces in its name, otherwise this fix will fail.
64
65 * erc.el (erc-mode-map): Add binding for C-c C-x to
66 erc-quit-server, since rcirc.el binds its quit command in a
67 similar manner. Thanks to Jari Aalto for the suggestion.
68
69 2008-01-28 Diane Murray <disumu@x3y2z1.net>
70
71 * erc-list-old.el (list-old): Define module as list-old, not list.
72 This fixes a bug where an unknown module error would occur when
73 starting ERC and using the list-old module.
74
75 * erc-track.el (erc-track-find-face): If no choice was found
76 return nil to use the default mode-line faces.
77
78 2008-01-26 Michael Olson <mwolson@gnu.org>
79
80 * erc.el (erc-version-string): Release ERC 5.3.
81
82 * Makefile (VERSION): Update.
83 (EXTRAS): Remove erc-list.el after all, because this is mainly for
84 users of the version that comes with Emacs, and they will have
85 erc-list.el by Emacs 23.
86 (MISC): Add ChangeLog.07.
87 (elpa): Fix build issue. Add proper version to erc-pkg.el.
88
89 * README.extras: Mention Emacs 23.
90
91 * erc-pkg.el: Make the version string a template.
92
93 * erc.texi (Obtaining ERC): Update extras URLs for 5.3.
94 (Development): Write instructions for git, and remove those for Arch.
95 (History): Mention the switch to git.
96
97 2008-01-25 Michael Olson <mwolson@gnu.org>
98
99 * NEWS: Update.
100
101 * erc-goodies.el (keep-place): New module which keeps your place
102 in unvisited ERC buffers when new messages arrive. This is mostly
103 taken from Johan Bockgård's init file.
104 (erc-noncommands-list): Move to correct place.
105
106 * erc-networks.el: Add a module definition.
107
108 * erc-services.el (erc-nickserv-identify-mode): Force-enable the
109 networks module, because we need it to set erc-network for us.
110
111 * erc-track.el (erc-track-faces-normal-list): Indicate in the
112 docstring that this variable can be set to nil.
113
114 * erc.el: On second thought, don't load erc-networks. Just enable
115 the networks module by default.
116 (erc-modules): Add option for keep-place and networks. Enable
117 networks by default.
118 (erc-version-string): Make release candidate 1 available.
119
120 2008-01-24 Michael Olson <mwolson@gnu.org>
121
122 * erc.el: Load erc-networks.el so that functions get access to the
123 `erc-network-name' function.
124
125 * erc-track.el (erc-track-faces-normal-list): Add
126 erc-dangerous-host-face.
127 (erc-track-exclude-types): Add 333 and 353 to the default list of
128 things to ignore, and explain what they are in the docstring.
129
130 2008-01-23 Michael Olson <mwolson@gnu.org>
131
132 * erc-track.el (erc-track-faces-priority-list): Move
133 erc-nick-default-face higher, so that it can be used for the
134 activity indication effect. Add erc-current-nick-face,
135 erc-pal-face, erc-dangerous-host-face, and erc-fool-face by
136 themselves.
137 (erc-track-faces-normal-list): New option that contains a list of
138 faces to consider "normal".
139 (erc-track-position-in-mode-line): Minor docfix.
140 (erc-track-find-face): Use erc-track-faces-normal-list to produce
141 a sort of blinking activity effect.
142
143 2008-01-22 Michael Olson <mwolson@gnu.org>
144
145 * erc-button.el (erc-button-add-nickname-buttons): When in a
146 channel buffer, only look at nicks from the current channel.
147 Thanks to e1f for the report.
148
149 2008-01-21 Michael Olson <mwolson@gnu.org>
150
151 * erc-compat.el (erc-const-expr-p, erc-list*, erc-assert): Remove,
152 since we can use the default `assert' function without it causing
153 us any problems, even in Emacs 21. Thanks to bojohan for the
154 suggestion.
155
156 * erc-goodies.el (move-to-prompt): Use the "XEmacs" method
157 instead, because the [remap ...] method interferes with
158 delete-selection-mode.
159 (erc-move-to-prompt): Rename from erc-move-to-prompt-xemacs.
160 Deactivate mark and call push-mark before moving point. Thanks to
161 bojohan for the suggestion.
162 (erc-move-to-prompt-setup): Rename from
163 erc-move-to-prompt-init-xemacs.
164
165 * erc-track.el (erc-track-faces-priority-list): Replace erc-button
166 with '(erc-button erc-default-face) so that we only care about
167 buttons that are part of normal text. Adjust customization type
168 to handle this case. Make erc-nick-default-face a list. Handle
169 pals, fools, current nick, and dangerous hosts.
170 (erc-track-find-face): Simplify. Adapt for list of faces case.
171 (erc-faces-in): Don't deflate lists of faces. Add them as-is.
172 (erc-track-face-priority): Use equal instead of eq.
173
174 2008-01-20 Michael Olson <mwolson@gnu.org>
175
176 * erc-goodies.el (erc-move-to-prompt, erc-move-to-prompt-xemacs):
177 Fix off-by-one error that caused the point to move when placed at
178 the beginning of some already-typed text. Thanks to e1f for the
179 report.
180
181 * erc-dcc.el, erc-xdcc.el: Add simple module definitions.
182
183 * erc.el (erc-modules): Add dcc and xdcc.
184
185 2008-01-19 Michael Olson <mwolson@gnu.org>
186
187 * erc-bbdb.el (erc-bbdb-insinuate-and-show-entry): Work around bug
188 in XEmacs 21.4 that throws an error when the first argument to
189 run-at-time is nil.
190
191 * erc-button.el (button): Undo XEmacs-specific change to all ERC
192 buffers when module is removed.
193 (erc-button-setup): Rename from erc-button-add-keys, and move
194 XEmacs-specific stuff here.
195
196 * erc-goodies.el (erc-unmorse): Improve regexp for detecting
197 morse. Deal with the morse style that has "/ " at the end of
198 every letter.
199 (erc-imenu-setup): New function that sets up Imenu support. Add
200 it instead of a lambda form to erc-mode-hook.
201 (scrolltobottom): Remove erc-scroll-to-bottom from all ERC buffers
202 when module is removed. Activate the functionality in all ERC
203 buffers when the module is activated, rather than leaving it up to
204 the user.
205 (move-to-prompt): New module that moves to the ERC prompt if a
206 user tries to type elsewhere in the buffer, and then inserts their
207 keystrokes there. This is mostly taken from Johan Bockgård's init
208 file.
209 (erc-move-to-prompt): New function that implements this.
210 (erc-move-to-prompt-xemacs): New function that implements this for
211 XEmacs.
212 (erc-move-to-prompt-init-xemacs): New function to perform the
213 extra initialization step needed for XEmacs.
214
215 * erc-page.el, erc-replace.el: Fix header and footer.
216
217 * erc-track.el (erc-track-minor-mode-maybe): Take an optional
218 buffer arg so that we can put this in erc-connect-pre-hook. If
219 given this argument, include it in the check to determine whether
220 to activate erc-track-minor-mode.
221 (track): Add erc-track-minor-mode-maybe to erc-connect-pre-hook,
222 so that we can use it as soon as a connection is attempted.
223
224 * erc.el (erc-format-network, erc-format-target-and/or-network):
225 Use erc-network-name function instead, and check to see whether
226 that function is bound. This fixes an error in process filter for
227 people who did not have erc-services or erc-networks loaded.
228 (erc-modules): Add move-to-prompt module and enable it by
229 default. Thanks to e1f for the suggestion.
230
231 2008-01-18 Michael Olson <mwolson@gnu.org>
232
233 * Makefile (EXTRAS): Include erc-list-old.el.
234
235 * erc-dcc.el (erc-dcc-verbose): Rename from erc-verbose-dcc.
236 (erc-pack-int): Rewrite to not depend on a count argument.
237 (erc-unpack-int): Rewrite to remove 4-character limitation.
238 (erc-dcc-server): Call set-process-coding-system and
239 set-process-filter-multibyte so that the contents get sent out
240 without modification.
241 (erc-dcc-send-filter): Don't take a substring -- just pass the
242 whole string to erc-unpack-int.
243 (erc-dcc-receive-cache): New option that indicates the number of
244 bytes to let the receive buffer grow before flushing it.
245 (erc-dcc-file-name): New buffer-local variable to keep track of
246 the filename of the currently-received file.
247 (erc-dcc-get-file): Disable undo for a speed increase. Set
248 erc-dcc-file-name. Truncate the file before writing to it.
249 (erc-dcc-append-contents): New function to append the contents of
250 a buffer to a file and then erase the contents of the buffer.
251 (erc-dcc-get-filter): Flush buffer contents after exceeding
252 erc-dcc-receive-cache. This allows large files to be downloaded
253 without storing the whole thing in memory.
254 (erc-dcc-get-sentinel): Flush any remaining contents before
255 closing. No need to save buffer.
256 (erc-dcc-listen-host): New option that determines which IP address
257 to listen on.
258 (erc-dcc-public-host): New option that determines which IP address
259 to advertise when sending a file. This is useful for people who
260 are on a local subnet. Together, these two options replace
261 erc-dcc-host.
262
263 * erc.el (erc-mode-line-format): Add %N and %S. %N is the name of
264 the network, and %S is much like %s but with the network name
265 trumping the server name. Default to "%S %a". Thanks to e1f for
266 the suggestion.
267 (erc-format-network): New function that formats the network name.
268 (erc-format-target-and/or-network): New function that formats both
269 the network name and target, falling back on the server name if
270 the network name is not available.
271 (erc-update-mode-line-buffer): Add the new format spec items.
272
273 2008-01-17 Michael Olson <mwolson@gnu.org>
274
275 * erc.el (erc-join-buffer): Improve documentation.
276 (erc-query-display): New option indicating how to display a query
277 buffer that is made by using the /QUERY command. The default is
278 to display the query in a new window.
279 (erc-cmd-QUERY): Use it. Improve docstring.
280 (erc-auto-query): Default this to 'window-noselect instead,
281 because I've already seen bug reports about new users thinking
282 that ERC didn't display their test messages. Improve
283 customization type.
284 (erc-notice-face): Make this work with XEmacs.
285 (erc-join-buffer): Mention 'buffer in docstring. Improve
286 customization type.
287
288 * erc-dcc.el (erc-dcc-send-sentinel): Better handle case where elt
289 is nil, in order to avoid an error. Thanks to Brent Goodrick for
290 the initial patch.
291 (erc-dcc-display-send): New function split from erc-dcc-send-hook.
292 (erc-dcc-send-connect-hook): Use it -- we don't like lambda forms
293 in hooks.
294 (erc-dcc-send-filter): Display byte count if the client confirmed
295 too much, and kill the buffer. Otherwise a DoS might be possible
296 by making Emacs run out of RAM.
297
298 * erc-backend.el (erc-server-connect): Detect early on whether the
299 connection attempt has failed in order to avoid confusing error
300 messages.
301
302 * erc-networks.el (erc-server-alist): Add Rizon network.
303
304 * erc-services.el (erc-nickserv-passwords): Add Rizon to options.
305 (erc-nickserv-alist): Add support for Rizon.
306
307 * erc-track.el (erc-track-find-face): Don't let buttons in notices
308 trump default text. Use catch/throw. Default to first element of
309 FACES is nothing is found.
310
311 * erc-xdcc.el: Add local variables for proper indentation setup.
312
313 2008-01-15 Michael Olson <mwolson@gnu.org>
314
315 * erc-backend.el (erc-server-coding-system): Docfix.
316 (erc-coding-system-for-target): Pass the `target' argument along
317 as the first and only argument. It's not good to just depend on a
318 dynamic binding.
319
320 2008-01-10 Michael Olson <mwolson@gnu.org>
321
322 * erc-backend.el (321, 322): Split message-displaying parts into
323 new functions, which are added to each response's respective
324 hook. This makes them easier to disable.
325
326 * erc-list.el: New file from Tom Tromey. Use erc-propertize
327 instead of propertize. Require 'erc.
328 (list): New module definition. Remove message-displaying
329 functions for 321 and 322 response handlers when enabling the
330 module, and restore them when disabling. As a sanity check,
331 remove the erc-list-handle-322 function when disabling the module.
332 (erc-list-handle-322): Handle the case where we run the LIST
333 command, but do not go through the normal steps.
334 (erc-cmd-LIST): Add docstring. Strip initial space from line if
335 it is non-nil. Use make-local-variable to silence compiler
336 warning. Capture current buffer and pass it to
337 erc-list-install-322-handler.
338 (erc-list-install-322-handler): Take server-buffer argument, so
339 that we are certain of being in the right buffer. Use 4th
340 argument to add-hook, so that erc-server-322-functions is only
341 modified in one buffer.
342
343 * erc-list-old.el: Renamed from old erc-list.el.
344
345 * erc.el (erc-modules): Add list-old.
346 (erc-set-topic): Handle case where there are no newlines in the
347 existing topic, which happens when /LIST is run.
348 (erc-notice-face): If we have less than 88 colors, make this
349 blue. Otherwise the text will be pink in a tty, which looks
350 dreadful. Thanks to e1f for the report.
351 (erc-remove-parsed-property): New option that determines whether
352 to remove the erc-parsed property after displaying a message.
353 This should have the effect of making ERC take up less memory.
354 (erc-display-line-1): Use it.
355
356 2008-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
357
358 * erc-ibuffer.el (erc-channel-modes):
359 Pass mode-name through format-mode-line
360
361
362 See ChangeLog.07 for earlier changes.
363
364 Copyright (C) 2008 Free Software Foundation, Inc.
365
366 This file is part of GNU Emacs.
367
368 GNU Emacs is free software: you can redistribute it and/or modify
369 it under the terms of the GNU General Public License as published by
370 the Free Software Foundation, either version 3 of the License, or
371 (at your option) any later version.
372
373 GNU Emacs is distributed in the hope that it will be useful,
374 but WITHOUT ANY WARRANTY; without even the implied warranty of
375 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376 GNU General Public License for more details.
377
378 You should have received a copy of the GNU General Public License
379 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
380
381 ;; Local Variables:
382 ;; coding: utf-8
383 ;; add-log-time-zone-rule: t
384 ;; End:
385
386 ;; arch-tag: 15787dfd-e091-4c8c-8b88-747b474e1ac7