aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorMiles Bader2007-04-01 13:36:38 +0000
committerMiles Bader2007-04-01 13:36:38 +0000
commitff59d266c7dcb9c6f7cc7ff7942510bda288e167 (patch)
tree9cc762d166a00ae8d02c9f079890afb68125072e /man
parent25c8c1594fe7ba177ec0621260304181b7052af3 (diff)
downloademacs-ff59d266c7dcb9c6f7cc7ff7942510bda288e167.tar.gz
emacs-ff59d266c7dcb9c6f7cc7ff7942510bda288e167.zip
Release ERC 5.2.
I have updated the version of ERC to 5.2, since it fixes a bug with C-c C-SPC being bound globally by default. For the full list of changes in this version, see etc/ERC-NEWS. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-687 Creator: Michael Olson <mwolson@gnu.org>
Diffstat (limited to 'man')
-rw-r--r--man/ChangeLog4
-rw-r--r--man/erc.texi296
2 files changed, 258 insertions, 42 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index 7431f616638..bcdbeac7bc4 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12007-04-01 Michael Olson <mwolson@gnu.org>
2
3 * erc.texi: Update for the ERC 5.2 release.
4
12007-03-31 David Kastrup <dak@gnu.org> 52007-03-31 David Kastrup <dak@gnu.org>
2 6
3 * woman.texi (Topic, Interface Options): Explain changes semantics of 7 * woman.texi (Topic, Interface Options): Explain changes semantics of
diff --git a/man/erc.texi b/man/erc.texi
index 60c682b892f..3f9f506bef8 100644
--- a/man/erc.texi
+++ b/man/erc.texi
@@ -12,7 +12,7 @@
12@syncodeindex fn cp 12@syncodeindex fn cp
13 13
14@copying 14@copying
15This manual is for ERC version 5.2 stable pre-release. 15This manual is for ERC version 5.2.
16 16
17Copyright @copyright{} 2005, 2006, 2007 Free Software Foundation, Inc. 17Copyright @copyright{} 2005, 2006, 2007 Free Software Foundation, Inc.
18 18
@@ -21,6 +21,9 @@ Permission is granted to copy, distribute and/or modify this document
21under the terms of the GNU Free Documentation License, Version 1.2 or 21under the terms of the GNU Free Documentation License, Version 1.2 or
22any later version published by the Free Software Foundation; with no 22any later version published by the Free Software Foundation; with no
23Invariant Sections, Front-Cover texts, or Back-Cover Texts. 23Invariant Sections, Front-Cover texts, or Back-Cover Texts.
24
25All Emacs Lisp code contained in this document may be used, distributed,
26and modified without restriction.
24@end quotation 27@end quotation
25@end copying 28@end copying
26 29
@@ -68,12 +71,16 @@ Obtaining ERC
68* Releases:: Released versions of ERC. 71* Releases:: Released versions of ERC.
69* Development:: Latest unreleased development changes. 72* Development:: Latest unreleased development changes.
70 73
74Getting Started
75
76* Sample Session:: Example of connecting to the #emacs channel
77* Special Features:: Differences from standalone IRC clients
78
71Advanced Usage 79Advanced Usage
72 80
73* Connecting:: Ways of connecting to an IRC server. 81* Connecting:: Ways of connecting to an IRC server.
74* Options:: Options that are available for ERC.
75* Tips and Tricks:: Ways of enhancing your ERC experience.
76* Sample Configuration:: An example configuration file. 82* Sample Configuration:: An example configuration file.
83* Options:: Options that are available for ERC.
77 84
78@end detailmenu 85@end detailmenu
79@end menu 86@end menu
@@ -111,8 +118,17 @@ It comes with the following capabilities enabled by default.
111* Development:: Latest unreleased development changes. 118* Development:: Latest unreleased development changes.
112@end menu 119@end menu
113 120
114These sections may be skipped if you are using the version of ERC that 121Note that some ERC files are not included with Emacs due to copyright or
115comes with Emacs. 122dependency issues. If desired, they may be found at the following
123locations, or from your local GNU mirror.
124
125@itemize @bullet
126@item @uref{http://ftp.gnu.org/gnu/erc/erc-5.2-extras.tar.gz}
127@item @uref{http://ftp.gnu.org/gnu/erc/erc-5.2-extras.zip}
128@end itemize
129
130The rest of this chapter may be skipped if you are using the version of
131ERC that comes with Emacs.
116 132
117@node Releases, Development, Obtaining ERC, Obtaining ERC 133@node Releases, Development, Obtaining ERC, Obtaining ERC
118@comment node-name, next, previous, up 134@comment node-name, next, previous, up
@@ -131,7 +147,7 @@ available in the official Debian repository.
131 147
132@cindex releases, from source 148@cindex releases, from source
133Alternatively, you can download the latest release from 149Alternatively, you can download the latest release from
134@uref{http://ftp.gnu.org/gnu/erc}. 150@uref{http://ftp.gnu.org/gnu/erc}, or your local GNU mirror.
135 151
136@node Development, , Releases, Obtaining ERC 152@node Development, , Releases, Obtaining ERC
137@comment node-name, next, previous, up 153@comment node-name, next, previous, up
@@ -188,9 +204,9 @@ tla update
188 204
189@end enumerate 205@end enumerate
190 206
191If you are new to Arch and want to learn more about developing with it, 207If you are new to Arch and want to learn more about developing ERC with
192you might find this tutorial helpful: 208it, visit @uref{http://emacswiki.org/cgi-bin/wiki/ErcDevelopment} for
193@uref{http://www.mwolson.org/projects/ArchTutorial.html}. 209full instructions.
194 210
195@subheading Development snapshots 211@subheading Development snapshots
196 212
@@ -261,8 +277,6 @@ locations that require this.
261@chapter Getting Started 277@chapter Getting Started
262@cindex settings 278@cindex settings
263 279
264@c PRE5_2: Mention .ercrc.el
265
266To use ERC, add the directory containing its files to your 280To use ERC, add the directory containing its files to your
267@code{load-path} variable, in your @file{.emacs} file. Then, load ERC 281@code{load-path} variable, in your @file{.emacs} file. Then, load ERC
268itself. An example follows. 282itself. An example follows.
@@ -274,20 +288,151 @@ itself. An example follows.
274Once ERC is loaded, the command @kbd{M-x erc} will start ERC and 288Once ERC is loaded, the command @kbd{M-x erc} will start ERC and
275prompt for the server to connect to. 289prompt for the server to connect to.
276 290
291If you want to place ERC settings in their own file, you can place them
292in @file{~/.emacs.d/.ercrc.el}, creating it if necessary.
293
294If you would rather use the Customize interface to change how ERC works,
295do @kbd{M-x customize-group RET erc RET}. In particular, ERC comes with
296lots of modules that may be enabled or disabled; to select which ones
297you want, do @kbd{M-x customize-variable RET erc-modules RET}.
298
299@menu
300* Sample Session:: Example of connecting to the #emacs channel
301* Special Features:: Differences from standalone IRC clients
302@end menu
303
304@node Sample Session, Special Features, Getting Started, Getting Started
305@comment node-name, next, previous, up
306@section Sample Session
307
308This is an example ERC session which shows how to connect to the #emacs
309channel on Freenode. Another IRC channel on Freenode that may be of
310interest is #erc, which is a channel where ERC users and developers hang
311out.
312
313@itemize @bullet
314
315@item Connect to Freenode
316
317Run @kbd{M-x erc}. Use ``irc.freenode.net'' as the IRC server, ``6667''
318as the port, and choose a nickname.
319
320@item Get used to the interface
321
322Switch to the ``irc.freenode.net:6667'' buffer, if you're not already
323there. You will see first some messages about checking for ident, and
324then a bunch of other messages that describe the current IRC server.
325
326@item Join the #emacs channel
327
328In that buffer, type ``/join SPC #emacs'' and hit @kbd{RET}. Depending
329on how you've set up ERC, either a new buffer for ``#emacs'' will be
330displayed, or a new buffer called ``#emacs'' will be created in the
331background. If the latter, switch to the ``#emacs'' buffer. You will
332see the channel topic and a list of the people who are currently on the
333channel.
334
335@item Register your nickname with Freenode
336
337If you would like to be able to talk with people privately on the
338Freenode network, you will have to ``register'' your nickname. To do
339so, switch to the ``irc.freenode.net:6667'' buffer and type ``/msg
340NickServ register <password>'', replacing ``<password>'' with your
341desired password. It should tell you that the operation was successful.
342
343@item Talk to people in the channel
344
345If you switch back to the ``#emacs'' buffer, you can type a message, and
346everyone on the channel will see it.
347
348@item Open a query buffer to talk to someone
349
350If you want to talk with someone in private (this should usually not be
351done for technical help, only for personal questions), type ``/query
352<nick>'', replacing ``<nick>'' with the nickname of the person you would
353like to talk to. Depending on how ERC is set up, you will either see a
354new buffer with the name of the person, or such a buffer will be created
355in the background and you will have to switch to it. Begin typing
356messages, and you will be able to have a conversation.
357
358Note that if the other person is not registered, you will not be able to
359talk with them.
360
361@end itemize
362
363@node Special Features, , Sample Session, Getting Started
364@comment node-name, next, previous, up
365@section Special Features
366
367ERC has some features that distinguish it from some IRC clients.
368
369@itemize @bullet
370
371@item multiple channels and multiple servers
372
373Every channel is put in a separate buffer. Several IRC servers may be
374connected to at the same time.
375
376@cindex query buffers
377@item private message separation
378
379Private conversations are treated as channels, and are put into separate
380buffers in Emacs. We call these ``query buffers''.
381
382@item highlighting
383
384Some occurences of words can be highlighted, which makes it easier to
385track different kinds of conversations.
386
387@item notification
388
389ERC can notify you that certain users are online.
390
391@item channel tracking
392
393Channels can be hidden and conversation continue in the background. You
394are notified when something is said in such a channel that is not
395currently visible. This makes it easy to get Real Work done while still
396maintaining an IRC presence.
397
398@item nick completion
399
400ERC can complete words upon hitting @kbd{TAB}, which eases the writing
401of nicknames in messages.
402
403@cindex history ring
404@item history
405
406Past actions are kept in history rings for future use. To navigate a
407history ring, hit @kbd{M-p} to go backwards and @kbd{M-n} to go
408forwards.
409
410@item multiple languages
411
412Different channels and servers may have different language encodings.
413
414In addition, it is possible to translate the messages that ERC uses into
415multiple languages. Please contact the developers of ERC at
416@email{erc-discuss@@gnu.org} if you are interested in helping with the
417translation effort.
418
419@item user scripting
420
421Users can load scripts (e.g. auto greeting scripts) when ERC starts up.
422
423It is also possible to make custom IRC commands, if you know a little
424Emacs Lisp. Just make an Emacs Lisp function and call it
425@code{erc-cmd-NEWCOMMAND}, where @code{NEWCOMMAND} is the name of the
426new command in capital letters.
427
428@item auto reconnect
429
277If the connection goes away at some point, ERC will try to reconnect 430If the connection goes away at some point, ERC will try to reconnect
278automatically. If it fails to reconnect, and you want to try to 431automatically. If it fails to reconnect, and you want to try to
279manually reestablish the connection at some later point, switch to an 432manually reestablish the connection at some later point, switch to an
280ERC buffer and run the /RECONNECT command. 433ERC buffer and run the @code{/RECONNECT} command.
281 434
282@c PRE5_2: Sample session, including: 435@end itemize
283@c - connect to Freenode
284@c - /join #emacs
285@c - see messages flying past, point out topic lines, messages, channel
286@c members
287@c - identifying your nick with NickServ (most IRC servers have this)
288@c - talking to the channel
289@c - open a /query buffer to talk to someone (must identify first in
290@c FreeNode)
291 436
292 437
293@node Keystroke Summary, Modules, Getting Started, Top 438@node Keystroke Summary, Modules, Getting Started, Top
@@ -439,6 +584,10 @@ Save buffers in logs
439@item match 584@item match
440Highlight pals, fools, and other keywords 585Highlight pals, fools, and other keywords
441 586
587@cindex modules, menu
588@item menu
589Display a menu in ERC buffers
590
442@cindex modules, netsplit 591@cindex modules, netsplit
443@item netsplit 592@item netsplit
444Detect netsplits 593Detect netsplits
@@ -505,7 +654,7 @@ Translate morse code in messages
505 654
506@end table 655@end table
507 656
508@c PRE5_2: Document every option of every module in its own subnode 657@c PRE5_3: Document every option of every module in its own subnode
509 658
510 659
511@node Advanced Usage, Getting Help and Reporting Bugs, Modules, Top 660@node Advanced Usage, Getting Help and Reporting Bugs, Modules, Top
@@ -515,12 +664,11 @@ Translate morse code in messages
515 664
516@menu 665@menu
517* Connecting:: Ways of connecting to an IRC server. 666* Connecting:: Ways of connecting to an IRC server.
518* Options:: Options that are available for ERC.
519* Tips and Tricks:: Ways of enhancing your ERC experience.
520* Sample Configuration:: An example configuration file. 667* Sample Configuration:: An example configuration file.
668* Options:: Options that are available for ERC.
521@end menu 669@end menu
522 670
523@node Connecting, Options, Advanced Usage, Advanced Usage 671@node Connecting, Sample Configuration, Advanced Usage, Advanced Usage
524@comment node-name, next, previous, up 672@comment node-name, next, previous, up
525@section Connecting to an IRC Server 673@section Connecting to an IRC Server
526@cindex connecting 674@cindex connecting
@@ -654,33 +802,97 @@ User full name.
654This can be either a string or a function to call. 802This can be either a string or a function to call.
655@end defopt 803@end defopt
656 804
657@node Options, Tips and Tricks, Connecting, Advanced Usage 805@node Sample Configuration, Options, Connecting, Advanced Usage
658@comment node-name, next, previous, up 806@comment node-name, next, previous, up
659@section Options 807@section Sample Configuration
660@cindex options 808@cindex configuration, sample
661 809
662@c PRE5_2: (Node) Document every ERC option (module options go in 810Here is an example of configuration settings for ERC. This can go into
663@c previous chapter) 811your Emacs configuration file. Everything after the @code{(require
812'erc)} command can optionally go into @file{~/.emacs.d/.ercrc.el}.
664 813
665This section has not yet been written. 814@lisp
815;;; Sample ERC configuration
666 816
667@node Tips and Tricks, Sample Configuration, Options, Advanced Usage 817;; Add the ERC directory to load path -- you don't need this if you are
668@comment node-name, next, previous, up 818;; using the version of ERC that comes with Emacs
669@section Tips and Tricks 819(add-to-list 'load-path "~/elisp/erc")
670@cindex tips and tricks
671 820
672@c PRE5_2: (Node) Tips and tricks 821;; Load ERC
822(require 'erc)
673 823
674This section has not yet been written. 824;; Load authentication info from an external source. Put sensitive
825;; passwords and the like in here.
826(load "~/.emacs.d/.erc-auth")
827
828;; This is an example of how to make a new command. Type "/uptime" to
829;; use it.
830(defun erc-cmd-UPTIME (&rest ignore)
831 "Display the uptime of the system, as well as some load-related
832stuff, to the current ERC buffer."
833 (let ((uname-output
834 (replace-regexp-in-string
835 ", load average: " "] @{Load average@} ["
836 ;; Collapse spaces, remove
837 (replace-regexp-in-string
838 " +" " "
839 ;; Remove beginning and trailing whitespace
840 (replace-regexp-in-string
841 "^ +\\|[ \n]+$" ""
842 (shell-command-to-string "uptime"))))))
843 (erc-send-message
844 (concat "@{Uptime@} [" uname-output "]"))))
845
846;; This causes ERC to connect to the Freenode network upon hitting
847;; C-c e f. Replace MYNICK with your IRC nick.
848(global-set-key "\C-cef" (lambda () (interactive)
849 (erc :server "irc.freenode.net" :port "6667"
850 :nick "MYNICK")))
851
852;; This causes ERC to connect to the IRC server on your own machine (if
853;; you have one) upon hitting C-c e b. Replace MYNICK with your IRC
854;; nick. Often, people like to run bitlbee (http://bitlbee.org/) as an
855;; AIM/Jabber/MSN to IRC gateway, so that they can use ERC to chat with
856;; people on those networks.
857(global-set-key "\C-ceb" (lambda () (interactive)
858 (erc :server "localhost" :port "6667"
859 :nick "MYNICK")))
860
861;; Make C-c RET (or C-c C-RET) send messages instead of RET. This has
862;; been commented out to avoid confusing new users.
863;; (define-key erc-mode-map (kbd "RET") nil)
864;; (define-key erc-mode-map (kbd "C-c RET") 'erc-send-current-line)
865;; (define-key erc-mode-map (kbd "C-c C-RET") 'erc-send-current-line)
866
867;;; Options
868
869;; Join the #emacs and #erc channels whenever connecting to Freenode.
870(setq erc-autojoin-channels-alist '(("freenode.net" "#emacs" "#erc")))
871
872;; Interpret mIRC-style color commands in IRC chats
873(setq erc-interpret-mirc-color t)
874
875;; The following are commented out by default, but users of other
876;; non-Emacs IRC clients might find them useful.
877;; Kill buffers for channels after /part
878;; (setq erc-kill-buffer-on-part t)
879;; Kill buffers for private queries after quitting the server
880;; (setq erc-kill-queries-on-quit t)
881;; Kill buffers for server messages after quitting the server
882;; (setq erc-kill-server-buffer-on-quit t)
883@end lisp
675 884
676@node Sample Configuration, , Tips and Tricks, Advanced Usage 885@node Options, , Sample Configuration, Advanced Usage
677@comment node-name, next, previous, up 886@comment node-name, next, previous, up
678@section Sample Configuration 887@section Options
679@cindex configuration, sample 888@cindex options
680 889
681@c PRE5_2: (Node) Sample configs 890@c PRE5_3: (Node) Document every ERC option (module options go in
891@c previous chapter)
682 892
683This section has not yet been written. 893This section has not yet been written. For now, the easiest way to
894check out the available option for ERC is to do
895@kbd{M-x customize-group erc RET}.
684 896
685 897
686@node Getting Help and Reporting Bugs, History, Advanced Usage, Top 898@node Getting Help and Reporting Bugs, History, Advanced Usage, Top