branch: elpa/elfeed
commit 1ec89f79dad0168dfc77a8af1e1de0d8b29230b5
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Revert "Use truncate"
    
    This reverts commit a72fa9c9de754e53b4803d3c7014ca755ee5007a.
    
    It turns out that truncate-string-to-width is significantly slower than
    elfeed-format-column. Maybe this is even worth an upstream Emacs bug report.
---
 elfeed-search.el | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/elfeed-search.el b/elfeed-search.el
index f44d8dbb97..1e4856f2a7 100644
--- a/elfeed-search.el
+++ b/elfeed-search.el
@@ -415,13 +415,12 @@ The customization `elfeed-search-date-format' sets the 
formatting."
          (window (get-buffer-window))
          (title-width (- (if window (window-width window) (frame-width))
                          10 elfeed-search-trailing-width))
-         (title-column (truncate-string-to-width
-                        title
-                        (elfeed-clamp
-                         elfeed-search-title-min-width
-                         title-width
-                         elfeed-search-title-max-width)
-                        nil ?\s t)))
+         (title-column (elfeed-format-column
+                        title (elfeed-clamp
+                               elfeed-search-title-min-width
+                               title-width
+                               elfeed-search-title-max-width)
+                        :left)))
     (insert (propertize date 'face 'elfeed-search-date-face) " "
             (propertize title-column 'face title-faces 'kbd-help title))
     (when feed-title

Reply via email to