]> code.delx.au - gnu-emacs/blobdiff - lisp/org/org-irc.el
* lisp/simple.el (save-mark-and-excursion): Add declare forms.
[gnu-emacs] / lisp / org / org-irc.el
index d31b1828ddd2dcab41c63de22a04330dda819934..333c4b1a4f837e738edd9cffa965bb97f0b46be3 100644 (file)
@@ -1,6 +1,6 @@
 ;;; org-irc.el --- Store links to IRC sessions
 ;;
-;; Copyright (C) 2008-2012 Free Software Foundation, Inc.
+;; Copyright (C) 2008-2016 Free Software Foundation, Inc.
 ;;
 ;; Author: Philip Jackson <emacs@shellarchive.co.uk>
 ;; Keywords: erc, irc, link, org
@@ -105,10 +105,10 @@ attributes that are found."
    ((eq major-mode 'erc-mode)
     (org-irc-erc-store-link))))
 
-(defun org-irc-elipsify-description (string &optional after)
+(defun org-irc-ellipsify-description (string &optional after)
   "Remove unnecessary white space from STRING and add ellipses if necessary.
 Strip starting and ending white space from STRING and replace any
-chars that the value AFTER with '...'"
+chars that the value AFTER with `...'"
   (let* ((after (number-to-string (or after 30)))
         (replace-map (list (cons "^[ \t]*" "")
                            (cons "[ \t]*$" "")
@@ -158,7 +158,7 @@ the session itself."
            (progn
              (org-store-link-props
               :type "file"
-              :description (concat "'" (org-irc-elipsify-description
+              :description (concat "'" (org-irc-ellipsify-description
                                         (cadr parsed-line) 20)
                                    "' from an IRC conversation")
               :link (concat "file:" (car parsed-line) "::"
@@ -172,7 +172,7 @@ the session itself."
            (org-store-link-props
             :type "irc"
             :link (concat "irc:/" link-text)
-            :description (concat "irc session '" link-text "'")
+            :description (concat "irc session `" link-text "'")
             :server (car (car link))
             :port (or (string-to-number (cadr (pop link))) erc-default-port)
             :nick (pop link))