]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/gnus-spec.el: Move definition here from gnus-ems.el.
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 10 Feb 2016 03:19:26 +0000 (14:19 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 10 Feb 2016 03:19:26 +0000 (14:19 +1100)
lisp/gnus/gnus-ems.el
lisp/gnus/gnus-spec.el

index d25213a19861bc08e3c9a93c203f09ab6ed3fe4c..167bc8083c635f92f31b29658f656c34ca973d3e 100644 (file)
     ;; It is possible to detect XEmacs/mule by (featurep 'mule) and
     ;; (featurep 'xemacs).  In this case, the implementation for
     ;; XEmacs/mule may be shareable between XEmacs and XEmacs/mule.
-
-    (defun gnus-summary-line-format-spec ()
-      (insert gnus-tmp-unread gnus-tmp-replied
-             gnus-tmp-score-char gnus-tmp-indentation)
-      (put-text-property
-       (point)
-       (progn
-        (insert
-         gnus-tmp-opening-bracket
-         (format "%4d: %-20s"
-                 gnus-tmp-lines
-                 (if (> (length gnus-tmp-name) 20)
-                     (truncate-string-to-width gnus-tmp-name 20)
-                   gnus-tmp-name))
-         gnus-tmp-closing-bracket)
-        (point))
-       gnus-mouse-face-prop gnus-mouse-face)
-      (insert " " gnus-tmp-subject-or-nil "\n")))))
+    )))
 
 (provide 'gnus-ems)
 
index 2176e3fe34dd36a924e42b0c0de1e38d0d522a4b..87b9b254e004dca2af9ac45a88dcb0da448acaa9 100644 (file)
@@ -727,6 +727,25 @@ If PROPS, insert the result."
        (symbol-value (intern (format "gnus-%s-line-format-alist" type)))
        insertable)))
 
+
+    (defun gnus-summary-line-format-spec ()
+      (insert gnus-tmp-unread gnus-tmp-replied
+             gnus-tmp-score-char gnus-tmp-indentation)
+      (put-text-property
+       (point)
+       (progn
+        (insert
+         gnus-tmp-opening-bracket
+         (format "%4d: %-20s"
+                 gnus-tmp-lines
+                 (if (> (length gnus-tmp-name) 20)
+                     (truncate-string-to-width gnus-tmp-name 20)
+                   gnus-tmp-name))
+         gnus-tmp-closing-bracket)
+        (point))
+       gnus-mouse-face-prop gnus-mouse-face)
+      (insert " " gnus-tmp-subject-or-nil "\n"))
+
 (provide 'gnus-spec)
 
 ;; Local Variables: