[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/show-font 54508fc514 13/54: Fix regression in show-font
From: |
ELPA Syncer |
Subject: |
[elpa] externals/show-font 54508fc514 13/54: Fix regression in show-font--get-attribute (when output has many families) |
Date: |
Tue, 10 Sep 2024 03:58:57 -0400 (EDT) |
branch: externals/show-font
commit 54508fc5142e4f9b335dc4d574d6836d8cd496a8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Fix regression in show-font--get-attribute (when output has many families)
---
show-font.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/show-font.el b/show-font.el
index 0ccb8f1614..3ed12419d4 100644
--- a/show-font.el
+++ b/show-font.el
@@ -158,7 +158,9 @@ matched against the output of the `fc-scan' executable."
(when-let ((f (or file buffer-file-name))
(_ (string-match-p show-font-extensions-regexp f))
(output (shell-command-to-string (format "fc-scan -f \"%%{%s}\"
%s" attribute f))))
- output))
+ (if (string-match-p "," output)
+ (car (split-string output ","))
+ output)))
(defun show-font--get-installed-fonts (&optional attribute)
"Get list of font families available on the system.
- [elpa] externals/show-font 6ca36f382e 23/54: Add some outline headings, (continued)
- [elpa] externals/show-font 6ca36f382e 23/54: Add some outline headings, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font b1bf2837f9 36/54: Rename helper function that check FILE font attributes, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 8ed7c66c63 44/54: Merge pull request #3 from swapnilsm/main, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font e8bb71badc 45/54: Add .elpaignore file for GNU ELPA, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 7dd09cd87e 48/54: Update the package Commentary, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 7d1cf73686 50/54: Update to show-font version 0.1.0, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 29c8fef4c6 33/54: Define functions to install a font file, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 69e2db52e5 34/54: Make show-font-install non-interactive, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 66bb076f77 47/54: Update the README.md and include links to the manual and changelog, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 6e10b12b5d 54/54: Fix a couple of typos, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 54508fc514 13/54: Fix regression in show-font--get-attribute (when output has many families),
ELPA Syncer <=
- [elpa] externals/show-font ff995c626d 15/54: Incorporate suggestions from Philip Kaludercic, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 09ad971308 21/54: Update show-font-pangram doc string, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 3be8056ae5 24/54: Stop using show-font-extensions-regexp; define regexp directly, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font b1a9d8a5cc 07/54: Remove needless 'let' before the 'when-let', ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 2d04283d8e 31/54: Add revert-buffer-function for show-font-select-preview, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 7bd66d3105 39/54: Add FIXME to refine show-font-list output, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font ad30c77b06 42/54: Remove WIP notices, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 0f46562e42 51/54: Make sure to delete duplicates and sort fonts, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 683d5ab4d1 49/54: Mention links to the Info manual and web page in the defgroups, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font ff0251d565 19/54: Remove the function that shows the font from the major mode, ELPA Syncer, 2024/09/10