Commit graph

115 commits

Author SHA1 Message Date
Deniz Dogan
aebf69c8b3 * lisp/net/rcirc.el: Delete trailing whitespaces once and for all. 2011-06-20 14:55:24 +02:00
Deniz Dogan
7e821d0da8 * lisp/net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced in last change. 2011-06-05 21:39:17 +02:00
Deniz Dogan
ac09b8a128 * lisp/net/rcirc.el (rcirc-prompt-for-encryption): New function.
(rcirc): Use it to prompt for encryption.
2011-06-05 21:03:28 +02:00
Leo Liu
108bf785c8 Fix last change on rcirc-print and rcirc-decode-coding-system 2011-06-01 16:10:42 +08:00
Leo Liu
5ab33f2b8a Decode all incoming messages in rcirc.el
Also allow automatic coding system detection if
rcirc-decode-coding-system is nil.

See discussion in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8744
2011-05-30 20:23:56 +08:00
Leo Liu
3767e706d7 Use a visible buffer name for rcirc-debug-buffer 2011-05-30 20:04:44 +08:00
Deniz Dogan
80aec78047 * net/rcirc.el (rcirc): Use the user's stored encryption method by default. 2011-05-29 07:42:00 +02:00
Deniz Dogan
9ff90d99bf * lisp/net/rcirc.el (rcirc-markup-urls): Check if rcirc-url-regexp is nil. 2011-05-19 14:38:39 +02:00
Deniz Dogan
8274564053 * lisp/net/rcirc.el (rcirc-mode): Initialize rcirc-urls to nil. 2011-05-19 09:55:34 +02:00
Stefan Monnier
488086f4dd * lisp/net/rcirc.el: Add support for SSL/TLS connections.
(rcirc-server-alist): New field `encryption'.
(rcirc): Check `encryption' settings.
(rcirc-connect): New arg `encryption'.  Use open-network-stream.
Merge make-local-variable into `set'.
(rcirc--connection-open-p): New function.
(rcirc-send-string, rcirc-clean-up-buffer): Use it to handle case where
the process is not a network process (e.g. running gnutls-cli).
(set-rcirc-decode-coding-system, set-rcirc-encode-coding-system):
Make rcirc-(en|de)code-coding-system local here.
(rcirc-mode): Merge make-local-variable into `set'.
(rcirc-parent-buffer): Make permanent buffer-local.
(rcirc-multiline-minor-mode): Don't do it here.
(rcirc-switch-to-server-buffer): Don't switch to a random buffer if
there's no server buffer.
2011-05-11 23:25:58 -03:00
Deniz Dogan
0ba690bd8f * lisp/net/rcirc.el (rcirc-handler-353): Fix bug for channels which the
user has not joined.
2011-04-28 22:22:51 +02:00
Deniz Dogan
b87a820074 * lisp/net/rcirc.el: Update my e-mail address. 2011-04-05 06:33:38 +02:00
Deniz Dogan
0f6ee7d2d7 * lisp/net/rcirc.el (rcirc-mode-map): Remove M-o binding. 2011-04-05 06:31:24 +02:00
Tassilo Horn
221ddf68cb * net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
an entry for that server in rcirc-authinfo. (Bug#8385)
2011-03-31 14:19:17 +02:00
Leo Liu
9882e21494 New variable rcirc-user-authenticated to pacify compiler 2011-03-22 19:51:48 +08:00
Leo Liu
0b4e93f177 Handle the case when re-search-backward errs
because point is not located after rcirc-prompt-end-marker.
2011-03-22 19:30:05 +08:00
Deniz Dogan
c47971d7a3 * lisp/net/rcirc.el (rcirc-handler-001): Remove useless
with-rcirc-process-buffer.
(rcirc-check-auth-status): Swap arguments to string-match.
2011-03-09 11:45:19 +01:00
Deniz Dogan
fa7062f653 * lisp/net/rcirc.el (rcirc-connect): Fix PASS bug. 2011-03-07 13:03:22 +01:00
Deniz Dogan
77f63d3050 * lisp/net/rcirc.el: Add QuakeNet authentication support.
(rcirc-authinfo, rcirc-check-auth-status)
(rcirc-authenticate): Support QuakeNet.
2011-03-05 16:40:50 +01:00
Deniz Dogan
72d2c2e3b9 * lisp/net/rcirc.el: Add functionality to authenticate before autojoining channels.
(rcirc-authenticate-before-join): New option.
(rcirc-authenticated-hook): New variable.
(rcirc-connect): Make local variable rcirc-user-authenticated.
(rcirc-handler-001): Respect rcirc-authenticate-before-join.
(rcirc-check-auth-status, rcirc-join-channels-post-auth): New
functions.
(rcirc-handler-PRIVMSG, rcirc-handler-NOTICE): Call
rcirc-check-auth-status.
2011-03-05 14:34:55 +01:00
Deniz Dogan
fcd8ed1db9 * lisp/net/rcirc.el (rcirc-cmd-join): Accept comma-separated input. 2011-03-03 16:56:38 +01:00
Deniz Dogan
73057ba922 * lisp/net/rcirc.el (rcirc-float-time): New function.
(rcirc-keepalive, rcirc-handler-ctcp-KEEPALIVE)
(rcirc-ctcp-sender-PING): Use it.
2011-02-17 12:41:49 +01:00
Deniz Dogan
e0e36cac4a * lisp/net/rcirc.el (defun-rcirc-join): Accept multiple channels. 2011-02-11 07:19:34 +01:00
Juanma Barranquero
5708ce5e83 * net/rcirc.el (rcirc-send-ctcp): Remove spurious arg to `format'. 2011-02-11 01:49:28 +01:00
Stefan Monnier
b016851cb1 Move keymap initialization into declaration.
* lisp/textmodes/enriched.el (enriched-mode-map):
* lisp/textmodes/bib-mode.el (bib-mode-map):
* lisp/term/lk201.el (lk201-function-map):
* lisp/tar-mode.el (tar-mode-map):
* lisp/replace.el (occur-mode-map):
* lisp/progmodes/idlwave.el (idlwave-rinfo-mouse-map, idlwave-rinfo-map):
* lisp/progmodes/idlw-help.el (idlwave-help-mode-map):
* lisp/progmodes/gdb-mi.el (gdb-memory-format-menu, gdb-memory-unit-menu):
* lisp/play/solitaire.el (solitaire-mode-map):
* lisp/play/snake.el (snake-mode-map, snake-null-map):
* lisp/play/pong.el (pong-mode-map):
* lisp/play/handwrite.el (menu-bar-handwrite-map):
* lisp/play/gametree.el (gametree-mode-map):
* lisp/net/rcirc.el (rcirc-mode-map, rcirc-browse-url-map
(rcirc-multiline-minor-mode-map, rcirc-track-minor-mode-map):
* lisp/net/newst-plainview.el (newsticker-menu, newsticker-mode-map)
(newsticker--url-keymap):
* lisp/net/net-utils.el (nslookup-mode-map, ftp-mode-map):
* lisp/menu-bar.el (menu-bar-file-menu, menu-bar-i-search-menu)
(menu-bar-search-menu, menu-bar-replace-menu, menu-bar-goto-menu)
(menu-bar-edit-menu, menu-bar-custom-menu)
(menu-bar-showhide-fringe-ind-menu, menu-bar-showhide-fringe-menu)
(menu-bar-showhide-scroll-bar-menu, menu-bar-showhide-menu)
(menu-bar-line-wrapping-menu, menu-bar-options-menu)
(menu-bar-games-menu, menu-bar-encryption-decryption-menu)
(menu-bar-tools-menu, menu-bar-describe-menu)
(menu-bar-search-documentation-menu, menu-bar-manuals-menu)
(menu-bar-help-menu):
* lisp/mail/rmailsum.el (rmail-summary-mode-map):
* lisp/kmacro.el (kmacro-step-edit-map):
* lisp/ibuffer.el (ibuffer-mode-groups-popup, ibuffer-mode-map)
(ibuffer-mode-operate-map):
* lisp/hi-lock.el (hi-lock-menu, hi-lock-map):
* lisp/emulation/vip.el (vip-mode-map):
* lisp/emacs-lisp/re-builder.el (reb-lisp-mode-map):
* lisp/bookmark.el (bookmark-bmenu-mode-map):
* lisp/help-mode.el (help-mode-map):
* lisp/erc/erc-list.el (erc-list-menu-mode-map):
* lisp/org/org-remember.el (org-remember-mode-map):
* lisp/org/org-src.el (org-src-mode-map): Move initialization into declaration.
2011-02-10 11:56:00 -05:00
Deniz Dogan
1be1d1e98e * lisp/net/rcirc.el: Add PRIVMSG and CTCP functions.
(rcirc-send-privmsg, rcirc-send-ctcp): New functions.
(rcirc-keepalive, rcirc-cmd-ctcp, rcirc-ctcp-sender-PING)
(rcirc-cmd-me, rcirc-authenticate): Use them.
2011-02-10 16:41:40 +01:00
Deniz Dogan
4d04fdc950 * lisp/net/rcirc.el (rcirc-ctcp-sender-PING): Simplifying. 2011-02-09 02:22:26 +01:00
Deniz Dogan
ee6a57ab20 * lisp/net/rcirc.el (rcirc-cmd-ctcp): Use dedicated function when
available.
(rcirc-ctcp-sender-PING): New function.
2011-02-09 01:22:01 +01:00
Deniz Dogan
c5aff743c3 * lisp/net/rcirc.el (rcirc-handler-317): New function. (Bug#6507) 2011-02-07 01:12:17 +01:00
Deniz Dogan
827b77e90f * lisp/net/rcirc.el (rcirc-handler-JOIN): Reset mode-line-process
(Bug#6386).
2011-02-05 22:07:26 +01:00
Glenn Morris
2d7d6439d2 rcirc.el trivia.
* lisp/net/rcirc.el (rcirc-nick-completion-format): Add :version tag.
(rcirc-log-directory, rcirc-log-flag): Move definitions before use.
2011-02-02 23:14:02 -08:00
Deniz Dogan
2a4466ca20 * lisp/net/rcirc.el: New customizable nick completion format.
(rcirc-nick-completion-format): New defcustom.
(rcirc-complete): Use it.
2011-01-31 21:44:45 +01:00
Deniz Dogan
186ecaf1a6 * lisp/net/rcirc.el: Clean log filenames (Bug#7933).
(rcirc-log-write): Use convert-standard-filename.
(rcirc-log-filename-function): Documentation updates.
2011-01-31 16:19:57 +01:00
Glenn Morris
95df8112a0 Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Giorgos Keramidas
80094035af * net/rcirc.el (rcirc-kill-buffer-hook): Flush logs. 2011-01-22 17:21:38 +01:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Deniz Dogan
9cf56b2c82 * net/rcirc.el: Adding maintainer info and e-mail addresses. 2011-01-14 12:25:56 +01:00
Stefan Monnier
4d789d84b8 Use run-mode-hooks for major mode hooks.
* lisp/textmodes/reftex-toc.el (reftex-toc-mode-map):
Rename from reftex-toc-map.
(reftex-toc-mode): Use define-derived-mode.
* lisp/textmodes/reftex-sel.el (reftex-select-shared-map): New map.
(reftex-select-label-mode-map, reftex-select-bib-mode-map):
Rename from reftex-select-(label|bib)-map.  Move init into declaration.
(reftex-select-label-mode, reftex-select-bib-mode):
Use define-derived-mode.
* lisp/textmodes/reftex-index.el (reftex-index-phrases-mode-map)
(reftex-index-mode-map): Rename from reftex-index(-phrases)-map.
Move init into delcaration.
(reftex-index-mode, reftex-index-phrases-mode):
Use define-derived-mode.
* lisp/speedbar.el (speedbar-mode-syntax-table): Renaqme from
speedbar-syntax-table.  Move init into declaration.
(speedbar-mode-map): Rename from speedbar-key-map.
Move init into declaration.
(speedbar-file-key-map): Move init into declaration.
(speedbar-mode): Use define-derived-mode.
* lisp/recentf.el (recentf-mode): Don't run hook (or message) redundantly.
* lisp/net/rcirc.el (rcirc-mode): Use run-mode-hooks.
* lisp/emacs-lisp/chart.el (chart-mode-map): Rename from chart-map.
(chart-face-list): Move initialization into declaration.
(chart-mode): Use define-derived-mode.
* lisp/calculator.el (calculator-mode-map): Move init into declaration.
(calculator-mode): Use define-derived-mode.
* lisp/cedet/srecode/srt-mode.el (srecode-template-mode):
Use define-derived-mode.
* lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode):
Use run-mode-hooks.
* lisp/erc/erc.el (erc-mode):
* lisp/erc/erc-dcc.el (erc-dcc-chat-mode): Use define-derived-mode.
* lisp/org/org-remember.el (org-remember-mode):
* lisp/org/org-capture.el (org-capture-mode): Don't run hook redundantly.

Fixes: debbugs:513
2011-01-13 18:14:30 -05:00
Leo Liu
94c7243ba4 * lisp/net/rcirc.el (rcirc-server-commands, rcirc-client-commands)
(rcirc-completion-start): New variables.
(rcirc-nick-completions): Rename to rcirc-completions.
(rcirc-nick-completion-start-offset): Delete.
(rcirc-completion-at-point): New function for constructing
completion data for both nicks and irc commands.  Add to
completion-at-point-functions in rcirc mode.
(rcirc-complete): Rename from rcirc-nick-complete; use
rcirc-completion-at-point.
(defun-rcirc-command): Update rcirc-client-commands.

Fixes: debbugs:6076
2010-09-12 13:06:19 +02:00
Kenichi Handa
9e69cb054d merge changes in emacs-23 branch 2010-09-01 16:13:21 +09:00
Leo Liu
c00725d796 Handle multiple entries in some RCIRC commands (Bug#6894).
* lisp/net/rcirc.el (rcirc-add-or-remove): Accept a list of elements.
(ignore, bright, dim, keyword): Split list of nicknames before
passing to rcirc-add-or-remove.
2010-08-22 18:44:55 -04:00
Deniz Dogan
8f10c93712 Don't always log RCIRC process buffers to disk (Bug#6828).
* lisp/net/rcirc.el (rcirc-log-process-buffers): New option.
(rcirc-print): Use it.
(rcirc-generate-log-filename): New function.
(rcirc-log-filename-function): Change default to
rcirc-generate-log-filename (Bug#6828).
2010-08-15 23:34:10 -04:00
Stefan Monnier
a71832f78d * lisp/net/rcirc.el (rcirc-server-alist, rcirc, rcirc-connect): Resolve
merge conflict, giving preference to the emacs-23 version of the code.
2010-06-09 21:10:04 -04:00
Andreas Schwab
3c093c775f Conflict resolution fixup 2010-06-10 00:34:08 +02:00
Andreas Schwab
639b2760f1 Merge from emacs-23 2010-06-10 00:08:50 +02:00
Jonathan Rockway
2d9a4946e7 * lisp/net/rcirc.el: Add support for password authentication.
(rcirc-server-alist): Add :password keyword.
(rcirc): Ask for a password, or get it from the server's alist.
(rcirc-connect): Add password argument.  Pass it to server.
2010-06-07 17:20:44 -04:00
Chong Yidong
aa1bc616a5 * net/rcirc.el (rcirc-sort-nicknames): Remove.
(rcirc-handler-366): Always sort nicknames.
2010-06-03 13:22:27 -04:00
Chong Yidong
44ea155d13 * net/rcirc.el (rcirc-nickname<, rcirc-sort-nicknames-join): Doc fix. 2010-06-03 11:58:20 -04:00
Stefan Monnier
a91dedc456 * net/rcirc.el (rcirc-sort-nicknames): Change default.
(rcirc-sort-nicknames-join): Avoid setq.
2010-06-03 11:51:38 -04:00