]> git.eshelyaron.com Git - emacs.git/commitdiff
ERC: Sync from upstream.
authorMichael Olson <mwolson@gnu.org>
Sat, 23 Feb 2008 18:58:56 +0000 (18:58 +0000)
committerMichael Olson <mwolson@gnu.org>
Sat, 23 Feb 2008 18:58:56 +0000 (18:58 +0000)
lisp/erc/ChangeLog
lisp/erc/erc-dcc.el
lisp/erc/erc-track.el
lisp/erc/erc.el

index 23057faa0b677ef18aa4ac15001753ef73780fcf..1a0b49676ae7dcfcb394c03207d8334b2bbd6545 100644 (file)
@@ -1,3 +1,36 @@
+2008-02-20  Michael Olson  <mwolson@gnu.org>
+
+       * erc.el (erc-notice-face): Fix this face for Emacs 21 users.
+
+2008-02-04  Jeremy Maitin-Shepard  <jbms@cmu.edu>
+
+       * erc.el (erc-cmd-QUERY): Bind the value of `erc-auto-query' to
+       `erc-query-display' rather than `erc-join-buffer'.  This fixes a
+       bug where the value of erc-auto-query was being ignored.
+
+2008-01-31  Michael Olson  <mwolson@gnu.org>
+
+       * erc-dcc.el (erc-dcc-do-GET-command, erc-dcc-do-SEND-command):
+       Improve docstring.  If FILE argument is split into multiple
+       arguments, re-join them into a single string, separated by a
+       space.  This fixes an issue where the user wants to send or
+       receive a file with spaces in its name.  It is assumed that no one
+       will try sending or receiving a file with multiple consecutive
+       spaces in its name, otherwise this fix will fail.
+
+       * erc.el (erc-mode-map): Add binding for C-c C-x to
+       erc-quit-server, since rcirc.el binds its quit command in a
+       similar manner.  Thanks to Jari Aalto for the suggestion.
+
+2008-01-28  Diane Murray  <disumu@x3y2z1.net>
+
+       * erc-list-old.el (list-old): Define module as list-old, not list.
+       This fixes a bug where an unknown module error would occur when
+       starting ERC and using the list-old module.
+
+       * erc-track.el (erc-track-find-face): If no choice was found
+       return nil to use the default mode-line faces.
+
 2008-01-26  Michael Olson  <mwolson@gnu.org>
 
        * erc.el (erc-version-string): Release ERC 5.3.
@@ -7,9 +40,12 @@
        users of the version that comes with Emacs, and they will have
        erc-list.el by Emacs 23.
        (MISC): Add ChangeLog.07.
+       (elpa): Fix build issue.  Add proper version to erc-pkg.el.
 
        * README.extras: Mention Emacs 23.
 
+       * erc-pkg.el: Make the version string a template.
+
        * erc.texi (Obtaining ERC): Update extras URLs for 5.3.
        (Development): Write instructions for git, and remove those for
        Arch.
index 2aca06479f6f8b9b2037c68b110dc38f99c093a4..a31f87b4933f395d6aa8fd5eefde3d8f3de011e9 100644 (file)
@@ -474,7 +474,12 @@ type and nick are optional."
            ?n (erc-extract-nick (plist-get ret :nick))))))
       t))
 
-(defun erc-dcc-do-GET-command (proc nick &optional file)
+(defun erc-dcc-do-GET-command (proc nick &rest file)
+  "Do a DCC GET command.  NICK is the person who is sending the file.
+FILE is the filename.  If FILE is split into multiple arguments,
+re-join the arguments, separated by a space.
+PROC is the server process."
+  (setq file (and file (mapconcat #'identity file " ")))
   (let* ((elt (erc-dcc-member :nick nick :type 'GET))
          (filename (or file (plist-get elt :file) "unknown")))
     (if elt
@@ -547,8 +552,11 @@ It lists the current state of `erc-dcc-list' in an easy to read manner."
      'dcc-list-end)
     t))
 
-(defun erc-dcc-do-SEND-command (proc nick file)
-  "Offer FILE to NICK by sending a ctcp dcc send message."
+(defun erc-dcc-do-SEND-command (proc nick &rest file)
+  "Offer FILE to NICK by sending a ctcp dcc send message.
+If FILE is split into multiple arguments, re-join the arguments,
+separated by a space."
+  (setq file (and file (mapconcat #'identity file " ")))
   (if (file-exists-p file)
       (progn
         (erc-display-message
index 360d92c32c5e66622e3f99a49850016306ded5f6..3a7511cad49279158f866e976308d310a4946644 100644 (file)
@@ -854,7 +854,7 @@ Use `erc-make-mode-line-buffer-name' to create buttons."
       (when (featurep 'xemacs)
        (erc-modified-channels-object nil))
       (setq erc-modified-channels-object
-             (erc-modified-channels-object strings))))))
+           (erc-modified-channels-object strings))))))
 
 (defun erc-modified-channels-remove-buffer (buffer)
   "Remove BUFFER from `erc-modified-channels-alist'."
@@ -867,17 +867,16 @@ Use `erc-make-mode-line-buffer-name' to create buttons."
 
 (defun erc-track-find-face (faces)
   "Return the face to use in the modeline from the faces in FACES.
-If `erc-track-faces-priority-list' is set, the one from FACES who is
-first in that list will be used.
+If `erc-track-faces-priority-list' is set, the one from FACES who
+is first in that list will be used.  If nothing matches or if
+`erc-track-faces-priority-list' is not set, the default mode-line
+faces will be used.
 
 If `erc-track-faces-normal-list' is non-nil, use it to produce a
 blinking effect that indicates channel activity when the first
 element in FACES and the highest-ranking face among the rest of
 FACES are both members of `erc-track-faces-normal-list'.
 
-If `erc-track-faces-priority-list' is not set, the first element
-in FACES will be used.
-
 If one of the faces is a list, then it will be ranked according
 to its highest-tanking face member.  A list of faces including
 that member will take priority over just the single member
@@ -892,7 +891,7 @@ element."
                           (when (member candidate (cdr faces))
                             (throw 'face candidate)))))))
     (cond ((null choice)
-          (car faces))
+          nil)
          ((and (member choice erc-track-faces-normal-list)
                (member no-first erc-track-faces-normal-list))
           no-first)
index e98c9d29baa84cb8d595da31bb2d2035dfcc9548..6cbf5f0b7a0c934e7c254019537bdd5fe67b43ad 100644 (file)
@@ -1110,6 +1110,7 @@ which the local user typed."
     (define-key map "\C-c\C-r" 'erc-remove-text-properties-region)
     (define-key map "\C-c\C-t" 'erc-set-topic)
     (define-key map "\C-c\C-u" 'erc-kill-input)
+    (define-key map "\C-c\C-x" 'erc-quit-server)
     (define-key map "\M-\t" 'ispell-complete-word)
     (define-key map "\t" 'erc-complete-word)
 
@@ -1168,7 +1169,8 @@ See the variable `erc-command-indicator'."
   :group 'erc-faces)
 
 (defface erc-notice-face
-  (if (featurep 'xemacs)
+  (if (or (featurep 'xemacs)
+         (< emacs-major-version 22))
       '((t (:bold t :foreground "blue")))
     '((((class color) (min-colors 88))
        (:bold t :foreground "SlateBlue"))
@@ -4026,7 +4028,7 @@ and as second argument the event parsed as a vector."
               (string= target (erc-current-nick)))
           (not (erc-get-buffer query proc))
           (not (erc-is-message-ctcp-and-not-action-p msg))
-          (let ((erc-join-buffer erc-auto-query))
+          (let ((erc-query-display erc-auto-query))
             (erc-cmd-QUERY query))
           nil))))