aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-14 02:36:39 +0000
committerGlenn Morris2008-03-14 02:36:39 +0000
commitc1fbdbbb5591540d64854780c30633130879caa0 (patch)
tree97f3b8aa37d5a6e90c797f47d64b7ea70b2579d4
parenteb3a8c9167a611d33627f9295c12a1f39ce1fc57 (diff)
downloademacs-c1fbdbbb5591540d64854780c30633130879caa0.tar.gz
emacs-c1fbdbbb5591540d64854780c30633130879caa0.zip
(top-level): CL not required when compiling.
(org-irc-visit-erc): Replace runtime CL functions.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/textmodes/org-irc.el29
2 files changed, 20 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 57bd9cbc311..b65b3507d72 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12008-03-14 Glenn Morris <rgm@gnu.org>
2
3 * textmodes/org-irc.el (top-level): CL not required when compiling.
4 (org-irc-visit-erc): Replace runtime CL functions.
5
6 * textmodes/org-publish.el (declare-function): Add compatibility stub.
7 (org-publish-delete-dups): Declare as function.
8
12008-03-14 Dan Nicolaescu <dann@ics.uci.edu> 92008-03-14 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 * vc-bzr.el (vc-bzr-log-view-mode): "." can be part of a revno. 11 * vc-bzr.el (vc-bzr-log-view-mode): "." can be part of a revno.
diff --git a/lisp/textmodes/org-irc.el b/lisp/textmodes/org-irc.el
index 8bbd5000f26..5295e6dd84a 100644
--- a/lisp/textmodes/org-irc.el
+++ b/lisp/textmodes/org-irc.el
@@ -1,13 +1,13 @@
1;;; org-irc.el --- Store links to IRC sessions 1;;; org-irc.el --- Store links to IRC sessions
2;; 2
3;; Copyright (C) 2008 Free Software Foundation, Inc. 3;; Copyright (C) 2008 Free Software Foundation, Inc.
4;; 4
5;; Author: Philip Jackson <emacs@shellarchive.co.uk> 5;; Author: Philip Jackson <emacs@shellarchive.co.uk>
6;; Keywords: erc, irc, link, org 6;; Keywords: erc, irc, link, org
7;; Version: 1.3 7;; Version: 1.3
8;; 8
9;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
10;; 10
11;; GNU Emacs is free software; you can redistribute it and/or modify 11;; GNU Emacs is free software; you can redistribute it and/or modify
12;; it under the terms of the GNU General Public License as published by 12;; it under the terms of the GNU General Public License as published by
13;; the Free Software Foundation; either version 3, or (at your option) 13;; the Free Software Foundation; either version 3, or (at your option)
@@ -22,9 +22,9 @@
22;; along with GNU Emacs; see the file COPYING. If not, write to the 22;; along with GNU Emacs; see the file COPYING. If not, write to the
23;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24;; Boston, MA 02110-1301, USA. 24;; Boston, MA 02110-1301, USA.
25;; 25
26;;; Commentary: 26;;; Commentary:
27;; 27
28;; Link to an IRC session. Only ERC has been implemented at the 28;; Link to an IRC session. Only ERC has been implemented at the
29;; moment. 29;; moment.
30;; 30;;
@@ -47,12 +47,8 @@
47;; 47;;
48;; If, when the resulting link is visited, there is no connection to a 48;; If, when the resulting link is visited, there is no connection to a
49;; requested server then one will be created. 49;; requested server then one will be created.
50;;
51;;; Code:
52 50
53 51;;; Code:
54(eval-when-compile
55 (require 'cl))
56 52
57(require 'org) 53(require 'org)
58(require 'erc) 54(require 'erc)
@@ -203,10 +199,10 @@ the session itself."
203 (let ((chan-name (pop link))) 199 (let ((chan-name (pop link)))
204 ;; if we got a channel name then switch to it or join it 200 ;; if we got a channel name then switch to it or join it
205 (if chan-name 201 (if chan-name
206 (let ((chan-buf (find-if 202 (let ((chan-buf (catch 'found
207 (lambda (x) 203 (dolist (x buffer-list)
208 (string= (buffer-name x) chan-name)) 204 (if (string= (buffer-name x) chan-name)
209 buffer-list))) 205 (throw 'found x))))))
210 (if chan-buf 206 (if chan-buf
211 (progn 207 (progn
212 (switch-to-buffer chan-buf) 208 (switch-to-buffer chan-buf)
@@ -214,8 +210,7 @@ the session itself."
214 ;; then start a chat with them 210 ;; then start a chat with them
215 (let ((nick (pop link))) 211 (let ((nick (pop link)))
216 (when nick 212 (when nick
217 (if (find nick (erc-get-server-nickname-list) 213 (if (member nick (erc-get-server-nickname-list))
218 :test 'string=)
219 (progn 214 (progn
220 (goto-char (point-max)) 215 (goto-char (point-max))
221 (insert (concat nick ": "))) 216 (insert (concat nick ": ")))