]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/rcirc.el (rcirc-urls, rcirc-condition-filter): Doc fixes.
authorGlenn Morris <rgm@gnu.org>
Tue, 11 Dec 2012 04:44:26 +0000 (20:44 -0800)
committerGlenn Morris <rgm@gnu.org>
Tue, 11 Dec 2012 04:44:26 +0000 (20:44 -0800)
lisp/ChangeLog
lisp/net/rcirc.el

index 2aafbd758d7e83886697157ce47443d0935b05ff..c07c9627d1c83421fd30d2e524b5d20d0bdd2c5a 100644 (file)
@@ -1,5 +1,7 @@
 2012-12-11  Glenn Morris  <rgm@gnu.org>
 
+       * net/rcirc.el (rcirc-urls, rcirc-condition-filter): Doc fixes.
+
        * progmodes/f90.el (f90-line-continued, f90-indent-region):
        Treat preprocessor lines embedded in continuations like comments.
        (f90-indent-line): Special-case preprocessor lines.  (Bug#13138)
index fa5bc4a982227fb383eb7cf38858f05619fff818..16644b5754953dcba1420e129bb83c5fb99af28e 100644 (file)
@@ -406,8 +406,7 @@ will be killed."
   "The channel or user associated with this buffer.")
 
 (defvar rcirc-urls nil
-  "List of URLs seen in the current buffer and the position in
-the buffer where the URL starts.")
+  "List of URLs seen in the current buffer and their start positions.")
 (put 'rcirc-urls 'permanent-local t)
 
 (defvar rcirc-timeout-seconds 600
@@ -2393,9 +2392,11 @@ keywords when no KEYWORD is given."
    "\\)")
   "Regexp matching URLs.  Set to nil to disable URL features in rcirc.")
 
+;; cf cl-remove-if-not
 (defun rcirc-condition-filter (condp lst)
-  "Given a condition and a list, returns the list with elements
-that do not satisfy the condition removed."
+  "Remove all items not satisfying condition CONDP in list LST.
+CONDP is a function that takes a list element as argument and returns
+non-nil if that element should be included.  Returns a new list."
   (delq nil (mapcar (lambda (x) (and (funcall condp x) x)) lst)))
 
 (defun rcirc-browse-url (&optional arg)