From unknown Sun Aug 10 16:47:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78990 <78990@debbugs.gnu.org> To: bug#78990 <78990@debbugs.gnu.org> Subject: Status: 30.1; Show-font breaks `insert-file-contents-literally' Reply-To: bug#78990 <78990@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:47:32 +0000 retitle 78990 30.1; Show-font breaks `insert-file-contents-literally' reassign 78990 emacs submitter 78990 Zhengyi Fu severity 78990 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 08:13:28 2025 Received: (at submit) by debbugs.gnu.org; 10 Jul 2025 12:13:29 +0000 Received: from localhost ([127.0.0.1]:56258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uZq9X-00037D-5H for submit@debbugs.gnu.org; Thu, 10 Jul 2025 08:13:28 -0400 Received: from lists.gnu.org ([2001:470:142::17]:52764) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uZq9R-00035L-Lh for submit@debbugs.gnu.org; Thu, 10 Jul 2025 08:13:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZq9F-0001JP-Kg for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 08:13:13 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZq96-00087t-LR for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 08:13:08 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id CE2E81FD35; Thu, 10 Jul 2025 12:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1752149573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=sHftuR3YR3s5ULzuzu242/9/WzT/0PsX3LSgf/sYOC4=; b=K9jUC8GOYQGBM3jfDZfkmXRzC06r8w9NG34Sq7zbj6vJkqJCxouA91bmYyyEXmiiVg+w1M P/dDvz+wMM5sXPtgv3c/Yb4UEXeyfXRxcKcwrWUXUB8vzankuY8ZLhl9dAl+ox5oNC/1Mc q8MGD5xSs1hluRwrGWSrPLc2BTdJpaYRMg+X5DDNk7mwmzfADVJPO9ywFnwswrxyYFULMy OCnHlfUFL1ms4HJXKAlXeyL56hyzV1ot1mc2kcQEiwUIJkuuT/4yp1GBV6dcqR9ZsS0/9E rG7pmqjVl89uJUfRwkQ69IfUkBBfqdfMNLqTaOdNNjVo2aasSCCTAVhNKnwFDQ== From: Zhengyi Fu To: bug-gnu-emacs@gnu.org Subject: 30.1; Show-font breaks `insert-file-contents-literally' X-Debbugs-Cc: Date: Thu, 10 Jul 2025 20:12:48 +0800 Message-ID: <87bjps5jnj.fsf@fuzy.me> MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegtdegudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufffkfggtgesthdtredttddttdenucfhrhhomhepkghhvghnghihihcuhfhuuceoihesfhhuiiihrdhmvgeqnecuggftrfgrthhtvghrnhepteeuveeffffgtefggfdugeefvedvtedvleejiedufeejfeelgfdtffdtleeghfdtnecukfhppeeghedrkedrudekiedruddtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeghedrkedrudekiedruddtvddphhgvlhhopegtrghllhhiohhpvgdpmhgrihhlfhhrohhmpehisehfuhiihidrmhgvpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepihhnfhhosehprhhothgvshhilhgrohhsrdgtohhmpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-GND-Sasl: id@fuzy.me Received-SPF: pass client-ip=217.70.183.195; envelope-from=i@fuzy.me; helo=relay3-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) The package `show-font' adds a file name handler to `file-name-handler-alist', which causes an error when trying to insert the raw contents of an TTF file into a buffer with `insert-file-contents-literally'. ;;;###autoload (add-to-list 'file-name-handler-alist (cons "\\.\\(ttf\\|otf\\)\\'" #'show-font-handler)) Currently I use the following advice to workaround this behavior, but I think it's better to fix this either in show-font or in Emacs core. (define-advice insert-file-contents-literally (:around (&rest args) inhibit-show-font) (let ((inhibit-file-name-handlers (append '(show-font-handler) (and (eq inhibit-file-name-operation 'insert-file-contents) inhibit-file-name-handlers))) (inhibit-file-name-operation 'insert-file-contents)) (apply args))) From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 08:21:19 2025 Received: (at submit) by debbugs.gnu.org; 10 Jul 2025 12:21:19 +0000 Received: from localhost ([127.0.0.1]:56293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uZqH8-0004XJ-M3 for submit@debbugs.gnu.org; Thu, 10 Jul 2025 08:21:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45522) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uZqH5-0004Vu-Pq for submit@debbugs.gnu.org; Thu, 10 Jul 2025 08:21:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZqGz-00040F-Pt for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 08:21:09 -0400 Received: from relay16.mail.gandi.net ([2001:4b98:dc4:8::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZqGv-0004Lv-5Z for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 08:21:09 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6C7AE43885; Thu, 10 Jul 2025 12:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protesilaos.com; s=gm1; t=1752150059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pa1PQrQJYkjBlX5VleQ1Z4qJQyaDVjCrhdBPnm+/roQ=; b=XOhM+f1EukzxhTXzblnnrcb3G16L5/b3SQGLkc4xbTVYAiY3FZjS89iaRJPHW64UWuEBbA NDSjepB8squPFWNAD0p+rm/vsa+7HZcRq5OHPRPd6JkDy91g7z4t79KEgGx9RUZYNdFAYJ iRgx7MmIoNMJ3Fo4pe0nfyrgZ5lsQNek+W5tc+pZ3G1Qnu/wS+DnPdo3ZzCPMzRjFTTneV rSSWWMrzpTTp2uEmvX9NHRjgzL4TReJ3Am1DU4oC6WAiFhdRy5qgoHfQSOj5nDyBq+tW9V zhHouciFGtVHT3BCEwg/wkibdyYyMazJs9ehmvoMngjQEgPYXoKyADh+29qzyg== MIME-Version: 1.0 Date: Thu, 10 Jul 2025 15:20:59 +0300 From: Protesilaos Stavrou To: Zhengyi Fu Subject: Re: 30.1; Show-font breaks `insert-file-contents-literally' In-Reply-To: <87bjps5jnj.fsf@fuzy.me> References: <87bjps5jnj.fsf@fuzy.me> Message-ID: X-Sender: prot@protesilaos.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegtdegfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpeggfffhvfevufgjfhfkgigtgfesthejjhdttddtvdenucfhrhhomheprfhrohhtvghsihhlrghoshcuufhtrghvrhhouhcuoehprhhothesphhrohhtvghsihhlrghoshdrtghomheqnecuggftrfgrthhtvghrnheptedtffehvdekvefffeetjeejfeetueehtdeujeefgeeuhffhvdduleduvedvffdvnecukfhppedutddrvddttddrvddtuddrvdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddtrddvtddtrddvtddurddvfedphhgvlhhopeifvggsmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepphhrohhtsehprhhothgvshhilhgrohhsrdgtohhmpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepihesfhhuiiihrdhmvgdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepihhnfhhosehprhhothgvshhilhgrohhsrdgtohhm Received-SPF: pass client-ip=2001:4b98:dc4:8::236; envelope-from=prot@protesilaos.com; helo=relay16.mail.gandi.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On 2025-07-10 15:12, Zhengyi Fu wrote: > The package `show-font' adds a file name handler to > `file-name-handler-alist', which causes an error when trying to insert > the raw contents of an TTF file into a buffer with > `insert-file-contents-literally'. > > ;;;###autoload > (add-to-list 'file-name-handler-alist (cons "\\.\\(ttf\\|otf\\)\\'" > #'show-font-handler)) > > Currently I use the following advice to workaround this behavior, but I > think it's better to fix this either in show-font or in Emacs core. > > (define-advice insert-file-contents-literally > (:around (&rest args) inhibit-show-font) > (let ((inhibit-file-name-handlers > (append '(show-font-handler) > (and (eq inhibit-file-name-operation 'insert-file-contents) > inhibit-file-name-handlers))) > (inhibit-file-name-operation 'insert-file-contents)) > (apply args))) Do you want to send me a patch for this? I will apply it right away. Thank you! From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 08:27:31 2025 Received: (at submit) by debbugs.gnu.org; 10 Jul 2025 12:27:32 +0000 Received: from localhost ([127.0.0.1]:56310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uZqN7-0005cr-TB for submit@debbugs.gnu.org; Thu, 10 Jul 2025 08:27:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56942) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uZqN2-0005bE-Uw for submit@debbugs.gnu.org; Thu, 10 Jul 2025 08:27:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZqMx-0006iF-9N for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 08:27:19 -0400 Received: from relay15.mail.gandi.net ([217.70.178.235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZqMs-0005vm-6f for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 08:27:18 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id C7F0144222; Thu, 10 Jul 2025 12:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1752150429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ReXQe221AJCseX3J7/aYQunRpkRHIxF5vS/Rmvh4048=; b=J23TOQwJMa5VTvONkkTk/9u2jvvM96gBzgRZ4iXWLf2dqBXdJ+x1yY2OEL8HhODuf41cXa DdRSYpHS7gssaRkmALfdV0ZZRPE/RdtFs4ulLCmwxNcun3NmHVOd0q9G6rucP3GUBo1ERd anaMYroXzWsbMHULjoqJaIMsP7hwlfEKgoBFMwlaSheKK3WhXQAQyLafjFHNHESGb2EWlH +0DOdvuW5uKf0qbd4cU6fUDA/3FKF9y+1GtINw2fEcJJ520RZsfeKSqyhDeuUMfA+8Z3MD V/RrbRjFeyFQH7e2NWAMwMU9t99ycX5S++/T8ICbHePkDTipm+g9/X2Lk7EjKw== From: Zhengyi Fu To: Protesilaos Stavrou Subject: Re: 30.1; Show-font breaks `insert-file-contents-literally' In-Reply-To: (Protesilaos Stavrou's message of "Thu, 10 Jul 2025 15:20:59 +0300") References: <87bjps5jnj.fsf@fuzy.me> Date: Thu, 10 Jul 2025 20:27:05 +0800 Message-ID: <874ivk5izq.fsf@fuzy.me> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegtdeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgesthdtredttdertdenucfhrhhomhepkghhvghnghihihcuhfhuuceoihesfhhuiiihrdhmvgeqnecuggftrfgrthhtvghrnheptedvueevffejudfgtdejuefgjeejgedtkeetfefftdeggfffteffieeuhfdtgeefnecukfhppeeghedrkedrudekiedruddtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeghedrkedrudekiedruddtvddphhgvlhhopegtrghllhhiohhpvgdpmhgrihhlfhhrohhmpehisehfuhiihidrmhgvpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepihhnfhhosehprhhothgvshhilhgrohhsrdgtohhmpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghdprhgtphhtthhopehprhhothesphhrohhtvghsihhlrghoshdrtghomh Received-SPF: pass client-ip=217.70.178.235; envelope-from=i@fuzy.me; helo=relay15.mail.gandi.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Protesilaos Stavrou writes: > On 2025-07-10 15:12, Zhengyi Fu wrote: >> The package `show-font' adds a file name handler to >> `file-name-handler-alist', which causes an error when trying to insert >> the raw contents of an TTF file into a buffer with >> `insert-file-contents-literally'. >> ;;;###autoload >> (add-to-list 'file-name-handler-alist (cons "\\.\\(ttf\\|otf\\)\\'" >> #'show-font-handler)) >> Currently I use the following advice to workaround this behavior, >> but I >> think it's better to fix this either in show-font or in Emacs core. >> (define-advice insert-file-contents-literally >> (:around (&rest args) inhibit-show-font) >> (let ((inhibit-file-name-handlers >> (append '(show-font-handler) >> (and (eq inhibit-file-name-operation 'insert-file-contents) >> inhibit-file-name-handlers))) >> (inhibit-file-name-operation 'insert-file-contents)) >> (apply args))) > > Do you want to send me a patch for this? I will apply it right > away. Thank you! Thank you for your fast reply. No. Actually, I don't know how to fix it correctly. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 13:04:40 2025 Received: (at submit) by debbugs.gnu.org; 10 Jul 2025 17:04:40 +0000 Received: from localhost ([127.0.0.1]:59234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uZuhM-0004fe-DQ for submit@debbugs.gnu.org; Thu, 10 Jul 2025 13:04:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57872) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uZuhJ-0004ea-Jl for submit@debbugs.gnu.org; Thu, 10 Jul 2025 13:04:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZugQ-0005U5-EY for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 13:03:48 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZugK-0006I8-OJ for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2025 13:03:42 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id BCBE444477; Thu, 10 Jul 2025 17:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protesilaos.com; s=gm1; t=1752167013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ICRRfw3aQTqa5+IqFi6hz2sgAIWjW/ZJv1eoRCL/cq8=; b=NGXIDJKg66hgK6zee+eto5MQM9UOIb4x0uRBLr4bfrtsVHbLydM7hlOdEvNbcvWON1pOuK ya/7Xa23UafQkDSGSD1TV4iE7XP3N/QoFd9bkmfEYCueYPG2Rq3bC4w03EZbPi+HanZAsv 8asW6wq0e5AbyZ6Gx0bELEM9FlEVQXnTK0MF0AyZ8ZN9kE9Y8P9abTvTmLDsIxRt2QWMPi 6F27pq6I8JQM5zLRsmuCOiSVSY3n2VlZBH1uO8HOm+OdP9ypbrkqkHynlox+9ciVPYZlVw yijD7H8kWal2eRsf+jmYHB1aoJqnmkxHVwW/GizYLwJxOGmvOOY5+oK5fyA+eA== MIME-Version: 1.0 Date: Thu, 10 Jul 2025 20:03:32 +0300 From: Protesilaos Stavrou To: Zhengyi Fu Subject: Re: 30.1; Show-font breaks `insert-file-contents-literally' In-Reply-To: <874ivk5izq.fsf@fuzy.me> References: <87bjps5jnj.fsf@fuzy.me> <874ivk5izq.fsf@fuzy.me> Message-ID: X-Sender: prot@protesilaos.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegtdellecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpeggfffhvfevufgjfhfkgigtgfesthejjhdttddtvdenucfhrhhomheprfhrohhtvghsihhlrghoshcuufhtrghvrhhouhcuoehprhhothesphhrohhtvghsihhlrghoshdrtghomheqnecuggftrfgrthhtvghrnheptedtffehvdekvefffeetjeejfeetueehtdeujeefgeeuhffhvdduleduvedvffdvnecukfhppedutddrvddttddrvddtuddrvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddtrddvtddtrddvtddurddvtddphhgvlhhopeifvggsmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepphhrohhtsehprhhothgvshhilhgrohhsrdgtohhmpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepihesfhhuiiihrdhmvgdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepihhnfhhosehprhhothgvshhilhgrohhsrdgtohhm X-GND-Sasl: prot@protesilaos.com Received-SPF: pass client-ip=217.70.183.201; envelope-from=prot@protesilaos.com; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) 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))) From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 06:00:15 2025 Received: (at submit) by debbugs.gnu.org; 11 Jul 2025 10:00:15 +0000 Received: from localhost ([127.0.0.1]:34903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uaAYB-0007PB-6Z for submit@debbugs.gnu.org; Fri, 11 Jul 2025 06:00:15 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60570) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uaAY5-0007Go-Fl for submit@debbugs.gnu.org; Fri, 11 Jul 2025 06:00:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaAXp-0007Y9-Ey for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2025 05:59:53 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaAXl-0004yk-Ka for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2025 05:59:53 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id BDDDA43228; Fri, 11 Jul 2025 09:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1752227985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3InJyYMuwkdldhCfl1893GjuqApLLeWsygzjyYR9s8k=; b=DvNlG4KG3IC+EnLdM0uat10WBHLNDnSQb4d941mnx2MZq+wTEtiuImwV4cx8YAXDh1dz3U Jna6dGPobG2kYEJLi+B5S0ecXlzYM91/MA2/N/HYsD4iqq2jvYIrKqN6AW9jrnE120240y LKoyKnr7ZfHBq9y+qcZocvqNl9ijlYpXvr0Vlug80JSGvS9xaw8WV+q8ps8xrJAqDp3n3S 3d9PYF3mZzw0P2iGJnr+ktnRkBs7TMDuo/r3wjM2ikevvGpXr+cCtQzQB+xMWeF/hI+S5v 5wvocMe782R4yHPZyilKm1cla6GCmotsXCKAx1f53jpCrLj6dfAoVEmnpfJEDQ== From: Zhengyi Fu To: Protesilaos Stavrou Subject: Re: 30.1; Show-font breaks `insert-file-contents-literally' In-Reply-To: References: <87bjps5jnj.fsf@fuzy.me> <874ivk5izq.fsf@fuzy.me> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 11 Jul 2025 17:58:52 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegfedtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertdenucfhrhhomhepkghhvghnghihihcuhfhuuceoihesfhhuiiihrdhmvgeqnecuggftrfgrthhtvghrnheptdffgfefudetvedufedtieeuleduvedvheejkeetgeehvdeigfffgfffieffveelnecukfhppeduledvrdehiedrleelrddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelvddrheeirdelledrvddphhgvlhhopehjrghmvghsqdhfuhdquhgsuhhnthhuvdegtdegpdhmrghilhhfrhhomhepihesfhhuiiihrdhmvgdpnhgspghrtghpthhtohepfedprhgtphhtthhopehinhhfohesphhrohhtvghsihhlrghoshdrtghomhdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepphhrohhtsehprhhothgvshhilhgrohhsrdgtohhm X-GND-Sasl: id@fuzy.me Received-SPF: pass client-ip=217.70.183.200; envelope-from=i@fuzy.me; helo=relay7-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Protesilaos Stavrou 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 08:47:32 2025 Received: (at submit) by debbugs.gnu.org; 11 Jul 2025 12:47:32 +0000 Received: from localhost ([127.0.0.1]:36061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uaDA4-0008Il-3a for submit@debbugs.gnu.org; Fri, 11 Jul 2025 08:47:32 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38904) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uaD9z-0008Gn-0w for submit@debbugs.gnu.org; Fri, 11 Jul 2025 08:47:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaD9J-0002lK-BL for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2025 08:46:47 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaD9F-0007kJ-Bk for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2025 08:46:45 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id AD0CE43E92; Fri, 11 Jul 2025 12:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protesilaos.com; s=gm1; t=1752237996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dfDcdSeLgfNSG2a81hEsZB3ND/lmKUMUoSiS5adJKkI=; b=jL4El54c9JsYUpJwSKeZTbqM2A4Zmbh8+BOfxBFccJYTtzfLI5CMRoopD/onqXMLBKWAzU mkhFpWlG9xU5QfeGvhJ2JFGIFCC7xr/XcW7BD+21BvgIaF2UcqNT86djExqLfON0iYR5OF H3xSzLeTDLcktaNiyv4cdZsJ3jvdKKIp4FTp2vkhaQlJcVwwCq/kSg3ot3tJ/94IM65b6e g25oxAgYf7vPaguq1TlDkJmXLR1X8YnIJTIvIODCEdn/AtcvWP/ytAmx33JTXmWy4xkxEr n7tMubuv6894Vam7qoeb18evddQhN4LYeD4JqbHpIYv2n+l+uYlk+deJnmPB5w== MIME-Version: 1.0 Date: Fri, 11 Jul 2025 15:46:35 +0300 From: Protesilaos Stavrou To: Zhengyi Fu Subject: Re: 30.1; Show-font breaks `insert-file-contents-literally' In-Reply-To: References: <87bjps5jnj.fsf@fuzy.me> <874ivk5izq.fsf@fuzy.me> Message-ID: X-Sender: prot@protesilaos.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegfeefiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpeggfffhvfevufgjfhfkgigtgfesthejjhdttddtvdenucfhrhhomheprfhrohhtvghsihhlrghoshcuufhtrghvrhhouhcuoehprhhothesphhrohhtvghsihhlrghoshdrtghomheqnecuggftrfgrthhtvghrnheptedtffehvdekvefffeetjeejfeetueehtdeujeefgeeuhffhvdduleduvedvffdvnecukfhppedutddrvddttddrvddtuddrudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddtrddvtddtrddvtddurddujedphhgvlhhopeifvggsmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepphhrohhtsehprhhothgvshhilhgrohhsrdgtohhmpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepihesfhhuiiihrdhmvgdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepihhnfhhosehprhhothgvshhilhgrohhsrdgtohhm X-GND-Sasl: prot@protesilaos.com Received-SPF: pass client-ip=2001:4b98:dc4:8::224; envelope-from=prot@protesilaos.com; helo=relay4-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On 2025-07-11 12:58, Zhengyi Fu wrote: > Protesilaos Stavrou 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. I made two changes and bumped the version number. The new package will be available in a few hours. I believe I have fixed the problem. See commits d238f83 and f6239ae in show-font.git. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 12 03:44:26 2025 Received: (at submit) by debbugs.gnu.org; 12 Jul 2025 07:44:26 +0000 Received: from localhost ([127.0.0.1]:43446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uaUuH-0000dY-Tw for submit@debbugs.gnu.org; Sat, 12 Jul 2025 03:44:26 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36510) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uaUuF-0000d8-Tk for submit@debbugs.gnu.org; Sat, 12 Jul 2025 03:44:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaUu6-0000JO-UY for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2025 03:44:16 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaUu4-0002uA-Bb for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2025 03:44:14 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 364EC444D3; Sat, 12 Jul 2025 07:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1752306247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GTpToMAc+md38zC1vNzc/TNxyUMJqKIGKMquEzR1rAA=; b=Jj7mR9BWuajrUy1a4anr16z+wNJ0uUaW2F3feoVT9gdwz6X84UivZUMQ+RMEEGcpXN5gHo eQei3TLzh+UMFAkd7+Z1cnyVWVtriXoNj0a5tMCacAirdtguFshuidjlemkfelrxtKhOVp EFB1zYCcK1YIO0lAp60fFHI+ScNcRG77/PKh3icE+l7il4rOa8uNOim9c4W3DxBfM+q+nr AtWqUCD8pqWkCvNZqS3CK4cUZI4noIP3OtQRdqLcdrXESoNJXoDwfnhnpxECns2+GAcuPw eX+xzmQWsZlmjZdNhjWdSly6tIDlPfENpPdpuqhw8qBrMxuQsqGBxbx01YaWvA== From: Zhengyi Fu To: Protesilaos Stavrou Subject: Re: 30.1; Show-font breaks `insert-file-contents-literally' In-Reply-To: (Protesilaos Stavrou's message of "Fri, 11 Jul 2025 15:46:35 +0300") References: <87bjps5jnj.fsf@fuzy.me> <874ivk5izq.fsf@fuzy.me> Date: Sat, 12 Jul 2025 15:44:03 +0800 Message-ID: <87ecullupo.fsf@fuzy.me> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegheeifecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgfgsehtqhertddtreejnecuhfhrohhmpegkhhgvnhhghihiucfhuhcuoehisehfuhiihidrmhgvqeenucggtffrrghtthgvrhhnpefffeeguddvudeuvdeufeejvdetffeggefhieelvdfgfeejgfehhffgieeuheegkeenucffohhmrghinhepghhithdrihhtnecukfhppeeghedrkedrudekiedruddtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeghedrkedrudekiedruddtvddphhgvlhhopegtrghllhhiohhpvgdpmhgrihhlfhhrohhmpehisehfuhiihidrmhgvpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepihhnfhhosehprhhothgvshhilhgrohhsrdgtohhmpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghdprhgtphhtthhopehprhhothesphhrohhtvghsihhlrghoshdrtghomh X-GND-Sasl: id@fuzy.me Received-SPF: pass client-ip=2001:4b98:dc4:8::224; envelope-from=i@fuzy.me; helo=relay4-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, info@protesilaos.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Protesilaos Stavrou writes: > On 2025-07-11 12:58, Zhengyi Fu wrote: >> Protesilaos Stavrou writes: >>=20 >>> On 2025-07-10 15:27, Zhengyi Fu wrote: >>>> Thank you for your fast reply. >>> You are welcome! >>>=20 >>>> 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. > > I made two changes and bumped the version number. The new package will > be available in a few hours. I believe I have fixed the problem. See > commits d238f83 and f6239ae in show-font.git. It works now! Thank you very much! =F0=9F=91=8D From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 19 04:37:14 2025 Received: (at 78990-done) by debbugs.gnu.org; 19 Jul 2025 08:37:14 +0000 Received: from localhost ([127.0.0.1]:39647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ud34E-0004fY-0L for submit@debbugs.gnu.org; Sat, 19 Jul 2025 04:37:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51222) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ud34B-0004fE-Nw for 78990-done@debbugs.gnu.org; Sat, 19 Jul 2025 04:37:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ud345-0007Ji-Gl; Sat, 19 Jul 2025 04:37:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=L6hMxrql4IyG82WGH34BEjIeedjI3dpdst6URsEOO3U=; b=QnB40rD1jsy46R/lIHB4 g0yWycZ6XSMVcwFjDjXMt+AW/xt9eTMpMEvI9VO+VxsIEVnnq1/7JY/GzhJbdDoSonyovat/UoYYp 4oJaKmEBNiOUQgBUVXjv34IIpqC8Y6eHBeEvAw3Uqnjh0aHJXUDBCKY0Cv5lEJl34Sp1VFLnxh0Js C4CttyM1mKEeGbLTmutnKsqstgBgwxQ15K1SCZCQoSZRPZ1GfbmzdqcsIHFkTTtczIKnmYk7tP2XO LhAWaA3AgKSdnH499JH/B67TQZ9rhBAe0BaEyRZb9OtY9W3rqVDjMvcBHXBfgo/Dr0D3o7a73F7N4 mqFJKN8FRjMb2g==; Date: Sat, 19 Jul 2025 11:37:03 +0300 Message-Id: <86h5z8efv4.fsf@gnu.org> From: Eli Zaretskii To: Zhengyi Fu In-Reply-To: <87ecullupo.fsf@fuzy.me> (message from Zhengyi Fu on Sat, 12 Jul 2025 15:44:03 +0800) Subject: Re: bug#78990: 30.1; Show-font breaks `insert-file-contents-literally' References: <87bjps5jnj.fsf@fuzy.me> <874ivk5izq.fsf@fuzy.me> <87ecullupo.fsf@fuzy.me> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78990-done Cc: info@protesilaos.com, prot@protesilaos.com, 78990-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 78990@debbugs.gnu.org, info@protesilaos.com > From: Zhengyi Fu > Date: Sat, 12 Jul 2025 15:44:03 +0800 > > Protesilaos Stavrou writes: > > > On 2025-07-11 12:58, Zhengyi Fu wrote: > >> Protesilaos Stavrou 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. > > > > I made two changes and bumped the version number. The new package will > > be available in a few hours. I believe I have fixed the problem. See > > commits d238f83 and f6239ae in show-font.git. > > It works now! Thank you very much! 👍 Thanks, I'm therefore closing the bug.