GNU bug report logs - #78990
30.1; Show-font breaks `insert-file-contents-literally'

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Thu, 10 Jul 2025 12:14:02 UTC

Severity: normal

Found in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: Zhengyi Fu <i <at> fuzy.me>
To: Protesilaos Stavrou <prot <at> protesilaos.com>
Cc: 78990 <at> debbugs.gnu.org, info <at> protesilaos.com
Subject: bug#78990: 30.1; Show-font breaks `insert-file-contents-literally'
Date: Fri, 11 Jul 2025 17:58:52 +0800
Protesilaos Stavrou <prot <at> protesilaos.com> writes:

> On 2025-07-10 15:27, Zhengyi Fu wrote:
>> Thank you for your fast reply.
>
> You are welcome!
>
>> No.  Actually, I don't know how to fix it correctly.
>
> Okay, no worries! Let's try to do this together. I have not tried
> 'insert-file-contents-literally' before. Please evaluate the following
> function and try again.
>
> (defun show-font--insert-button ()
>   "Insert `show-font-installed-file-button' at point."
>   (when buffer-file-name
>     (insert
>      (propertize "Cannot preview this font" 'face 'show-font-title)
>      "\n\n"
>      (propertize buffer-file-name 'face 'bold)
>      " is not installed"
>      "\n\n"
>      "Install this font file?"
>      "\n")
>     (goto-char (point-max))
>     (make-text-button (line-beginning-position 0) (line-end-position
>     0) :type 'show-font-installed-file-button)))

After evaluating that fnuction, it doesn't signal errors, but nothing
gets inserted.




This bug report was last modified 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.