From unknown Sun Aug 10 07:36:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79031: 31.0.50; Recent change breaks `insert-file-contents-literally' Resent-From: Zhengyi Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jul 2025 13:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 79031 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 79031@debbugs.gnu.org Cc: Paul Eggert X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.175267163916727 (code B ref -1); Wed, 16 Jul 2025 13:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jul 2025 13:13:59 +0000 Received: from localhost ([127.0.0.1]:48917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uc1xN-0004La-ET for submit@debbugs.gnu.org; Wed, 16 Jul 2025 09:13:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uc1xH-0004KF-Ha for submit@debbugs.gnu.org; Wed, 16 Jul 2025 09:13:53 -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 1uc1wt-0007W9-KH for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2025 09:13:29 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uc1wl-0005K4-Rp for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2025 09:13:27 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 46228442A7; Wed, 16 Jul 2025 13:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1752671593; 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=aFRGghNexROeQiSaCqfc58eCVue80fjNbQ0uM+mlIak=; b=GtQrFGY/k9rm8nWHH1KMbUb98qbJtHxBZZDOpG0H65WolGCXuOt4L/9cyvC2XGUyhj0amd 5hUYuwCmWmJ3SNI2dXvtD7Z/WPdiGr7RQu0tMi5a694ahsUkBd/onATm+Y+lsxav+Ew/Tg DEqip3dsMMfNoCNt1FOl/nf4Ns+qR0TB/BRz48g9ESmzYecuvbAmq3FG4wzDxOPrCPq6RI mZhzFqlCRPFE5EpdnkZho4gPsXEQ5WwQakkMFhLc02F+Ixd8d7J7ct52/FAVfJd4grS6lU CyBWOoverGKiWsjbF7km1EZG8N9t+T533gGwX16sQtFwBKClTYojf1n7AHQSmA== From: Zhengyi Fu Date: Wed, 16 Jul 2025 21:13:08 +0800 Message-ID: <874ivc46u3.fsf@fuzy.me> MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehjeektdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkgggtsehttdertddttddtnecuhfhrohhmpegkhhgvnhhghihiucfhuhcuoehisehfuhiihidrmhgvqeenucggtffrrghtthgvrhhnpeetueevfeffgfetgffgudegfeevvdetvdeljeeiudefjeeflefgtdfftdelgefhtdenucfkphepgeehrdekrddukeeirddutddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgeehrdekrddukeeirddutddvpdhhvghloheptggrlhhlihhophgvpdhmrghilhhfrhhomhepihesfhhuiiihrdhmvgdpnhgspghrtghpthhtohepvddprhgtphhtthhopegvghhgvghrthestghsrdhutghlrgdrvgguuhdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-GND-Sasl: id@fuzy.me Received-SPF: pass client-ip=217.70.183.199; envelope-from=i@fuzy.me; helo=relay9-d.mail.gandi.net X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=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-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 (/) > commit c3f96d20eecdf0aa93f294a4f3fb96e16eec6a68 (HEAD) > Author: Paul Eggert > Date: Sun Jul 13 12:52:43 2025 -0700 > Avoid some tiny /proc file reads > * src/fileio.c (union read_non_regular): > New members buf and bufsize replace inserted and trytry. > (read_non_regular): Adjust to this new, simpler interface. > (Finsert_file_contents): If the gap is smaller than read_buf > and we want to read more than the gap, read into read_buf > first, to avoid lots of tiny reads from /proc files. After this commit, the following code evaluates to a string of 16384 bytes! (with-temp-buffer (insert-file-contents-literally "/dev/urandom" nil nil 21) (buffer-string)) In GNU Emacs 31.0.50 (build 20, x86_64-pc-linux-gnu, GTK+ Version 3.24.49) of 2025-07-16 built on calliope Repository revision: 55f41ca3aa8fe487d10730708a7396137a2c9d18 Repository branch: HEAD System Description: Fedora Linux 42 (Sway) Configured using: 'configure --without-all 'CC=ccache gcc' 'CFLAGS=-O0 -g'' Configured features: GLIB GMP PDUMPER SECCOMP X11 XIM XINERAMA XRANDR GTK3 Important settings: value of $LANG: zh_CN.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: xterm-mouse-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils xt-mouse term/xterm xterm byte-opt gv bytecomp byte-compile china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote dynamic-setting gtk x-toolkit x multi-tty move-toolbar make-network-process tty-child-frames emacs) Memory information: ((conses 16 52730 12168) (symbols 48 6171 0) (strings 32 14442 1585) (string-bytes 1 353806) (vectors 16 8063) (vector-slots 8 120952 7572) (floats 8 26 1) (intervals 56 220 10) (buffers 984 10)) From unknown Sun Aug 10 07:36:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Zhengyi Fu Subject: bug#79031: closed (Re: 31.0.50; Recent change breaks `insert-file-contents-literally') Message-ID: References: <91b6f1a4-efc3-4f3e-b695-071ad09e7ae7@cs.ucla.edu> <874ivc46u3.fsf@fuzy.me> X-Gnu-PR-Message: they-closed 79031 X-Gnu-PR-Package: emacs Reply-To: 79031@debbugs.gnu.org Date: Wed, 16 Jul 2025 18:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1752691682-26665-1" This is a multi-part message in MIME format... ------------=_1752691682-26665-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #79031: 31.0.50; Recent change breaks `insert-file-contents-literally' which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 79031@debbugs.gnu.org. --=20 79031: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79031 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1752691682-26665-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 79031-done) by debbugs.gnu.org; 16 Jul 2025 18:47:41 +0000 Received: from localhost ([127.0.0.1]:50580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uc7AL-0006vP-6u for submit@debbugs.gnu.org; Wed, 16 Jul 2025 14:47:41 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:37042) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uc7AI-0006ur-38 for 79031-done@debbugs.gnu.org; Wed, 16 Jul 2025 14:47:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 5F3DB3C01084E; Wed, 16 Jul 2025 11:47:31 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id DhU5NXxq8UNy; Wed, 16 Jul 2025 11:47:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 339423C01085D; Wed, 16 Jul 2025 11:47:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 339423C01085D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1752691651; bh=bFkgg64gFgNl6nqzFZ1zkO8oqXHZhnrR/tFbtkEeDEw=; h=Message-ID:Date:MIME-Version:To:From; b=RSrZ/lXJT6X9Hhoj25Km/MSc0HToyPVsmQGHK7iKOZ72Bk5FA43bU2ThHRtRmDqSl wKWecotQdpnuwBOCoApuX6wVW6XAnjbJMrD2ByQkso8FRmpWTe4YW5/wN8YwxhWn7N YwOvCwVLJKFdPFnoYZUDFb4n8hCRdbeGSKB3V0a/srIgQK7hnWILz28w3/1BJ97CcG 95LCYPy5KdVYsgUy14ai5Ub7Zc28nBn5a1GKvtjrHamLcnJXiXgJKPjrodHu6yxn2b KGD5VbK+41aUEJgyqDhEGbgAUXV//DDy2ASv5cVZyRp+Q7vNt9pPLG5qS8IOYwwPWb hHkF8JMq1WQ2w== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id Kwh_oBrQILQ7; Wed, 16 Jul 2025 11:47:31 -0700 (PDT) Received: from penguin.cs.ucla.edu (unknown [47.154.30.222]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 175363C01084E; Wed, 16 Jul 2025 11:47:31 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------XGL0BRK8DU1pOOD74ZFdYMqk" Message-ID: <91b6f1a4-efc3-4f3e-b695-071ad09e7ae7@cs.ucla.edu> Date: Wed, 16 Jul 2025 11:47:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: 31.0.50; Recent change breaks `insert-file-contents-literally' To: Zhengyi Fu References: <874ivc46u3.fsf@fuzy.me> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <874ivc46u3.fsf@fuzy.me> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79031-done Cc: 79031-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: -1.0 (-) This is a multi-part message in MIME format. --------------XGL0BRK8DU1pOOD74ZFdYMqk Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025-07-16 06:13, Zhengyi Fu wrote: > the following code evaluates to a string of 16384 > bytes! > > (with-temp-buffer > (insert-file-contents-literally "/dev/urandom" nil nil 21) > (buffer-string)) Thanks for reporting that. I installed the attached patch. --------------XGL0BRK8DU1pOOD74ZFdYMqk Content-Type: text/x-patch; charset=UTF-8; name="0001-insert-file-contents-small-gap-bug.patch" Content-Disposition: attachment; filename="0001-insert-file-contents-small-gap-bug.patch" Content-Transfer-Encoding: base64 RnJvbSBlNDUwYTc4MDJjNTQ0YjdmYTE0ZmUwNjRjNjJkZTFmOWI3MDk4ZTgxIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBXZWQsIDE2IEp1bCAyMDI1IDExOjM4OjIwIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gaW5zZXJ0LWZpbGUtY29udGVudHMgc21hbGwgZ2FwIGJ1ZwoKUHJvYmxlbSByZXBvcnRl ZCBieSBaaGVuZ3lpIEZ1IChCdWcjNzkwMzEpLgoqIHNyYy9maWxlaW8uYyAoRmluc2VydF9m aWxlX2NvbnRlbnRzKTogRG8gbm90IHJlYWQgbW9yZSB0aGFuCnJlcXVlc3RlZCwgZXZlbiB3 aGVuIHRoZSBnYXAgaXMgc28gc21hbGwgdGhhdCB3ZSB1c2UgYSBsb2NhbCBidWZmZXIuCi0t LQogc3JjL2ZpbGVpby5jIHwgMyArKy0KIDEgZmlsZSBjaGFuZ2VkLCAyIGluc2VydGlvbnMo KyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9zcmMvZmlsZWlvLmMgYi9zcmMvZmls ZWlvLmMKaW5kZXggMmM4ODU1ZGJhOTEuLmUzM2FjNGFmYWJmIDEwMDY0NAotLS0gYS9zcmMv ZmlsZWlvLmMKKysrIGIvc3JjL2ZpbGVpby5jCkBAIC00ODk5LDggKzQ4OTksOSBAQCBERUZV TiAoImluc2VydC1maWxlLWNvbnRlbnRzIiwgRmluc2VydF9maWxlX2NvbnRlbnRzLCBTaW5z ZXJ0X2ZpbGVfY29udGVudHMsCiAJZWxzZQogCSAgewogCSAgICBidWYgPSAoY2hhciAqKSBC RUdfQUREUiArIFBUX0JZVEUgLSBCRUdfQllURSArIGluc2VydGVkOwotCSAgICBidWZzaXpl ID0gbWluIChtaW4gKGdhcF9zaXplLCB0b3RhbCAtIGluc2VydGVkKSwgSU9fQlVGU0laRSk7 CisJICAgIGJ1ZnNpemUgPSBtaW4gKGdhcF9zaXplLCBJT19CVUZTSVpFKTsKIAkgIH0KKwli dWZzaXplID0gbWluIChidWZzaXplLCB0b3RhbCAtIGluc2VydGVkKTsKIAogCWlmICghc2Vl a2FibGUgJiYgZW5kX29mZnNldCA9PSBUWVBFX01BWElNVU0gKG9mZl90KSkKIAkgIHsKLS0g CjIuNDguMQoK --------------XGL0BRK8DU1pOOD74ZFdYMqk-- ------------=_1752691682-26665-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Jul 2025 13:13:59 +0000 Received: from localhost ([127.0.0.1]:48917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uc1xN-0004La-ET for submit@debbugs.gnu.org; Wed, 16 Jul 2025 09:13:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uc1xH-0004KF-Ha for submit@debbugs.gnu.org; Wed, 16 Jul 2025 09:13:53 -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 1uc1wt-0007W9-KH for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2025 09:13:29 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uc1wl-0005K4-Rp for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2025 09:13:27 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 46228442A7; Wed, 16 Jul 2025 13:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1752671593; 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=aFRGghNexROeQiSaCqfc58eCVue80fjNbQ0uM+mlIak=; b=GtQrFGY/k9rm8nWHH1KMbUb98qbJtHxBZZDOpG0H65WolGCXuOt4L/9cyvC2XGUyhj0amd 5hUYuwCmWmJ3SNI2dXvtD7Z/WPdiGr7RQu0tMi5a694ahsUkBd/onATm+Y+lsxav+Ew/Tg DEqip3dsMMfNoCNt1FOl/nf4Ns+qR0TB/BRz48g9ESmzYecuvbAmq3FG4wzDxOPrCPq6RI mZhzFqlCRPFE5EpdnkZho4gPsXEQ5WwQakkMFhLc02F+Ixd8d7J7ct52/FAVfJd4grS6lU CyBWOoverGKiWsjbF7km1EZG8N9t+T533gGwX16sQtFwBKClTYojf1n7AHQSmA== From: Zhengyi Fu To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Recent change breaks `insert-file-contents-literally' Date: Wed, 16 Jul 2025 21:13:08 +0800 Message-ID: <874ivc46u3.fsf@fuzy.me> MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehjeektdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkgggtsehttdertddttddtnecuhfhrohhmpegkhhgvnhhghihiucfhuhcuoehisehfuhiihidrmhgvqeenucggtffrrghtthgvrhhnpeetueevfeffgfetgffgudegfeevvdetvdeljeeiudefjeeflefgtdfftdelgefhtdenucfkphepgeehrdekrddukeeirddutddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgeehrdekrddukeeirddutddvpdhhvghloheptggrlhhlihhophgvpdhmrghilhhfrhhomhepihesfhhuiiihrdhmvgdpnhgspghrtghpthhtohepvddprhgtphhtthhopegvghhgvghrthestghsrdhutghlrgdrvgguuhdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-GND-Sasl: id@fuzy.me Received-SPF: pass client-ip=217.70.183.199; envelope-from=i@fuzy.me; helo=relay9-d.mail.gandi.net X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=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: Paul Eggert 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 (/) > commit c3f96d20eecdf0aa93f294a4f3fb96e16eec6a68 (HEAD) > Author: Paul Eggert > Date: Sun Jul 13 12:52:43 2025 -0700 > Avoid some tiny /proc file reads > * src/fileio.c (union read_non_regular): > New members buf and bufsize replace inserted and trytry. > (read_non_regular): Adjust to this new, simpler interface. > (Finsert_file_contents): If the gap is smaller than read_buf > and we want to read more than the gap, read into read_buf > first, to avoid lots of tiny reads from /proc files. After this commit, the following code evaluates to a string of 16384 bytes! (with-temp-buffer (insert-file-contents-literally "/dev/urandom" nil nil 21) (buffer-string)) In GNU Emacs 31.0.50 (build 20, x86_64-pc-linux-gnu, GTK+ Version 3.24.49) of 2025-07-16 built on calliope Repository revision: 55f41ca3aa8fe487d10730708a7396137a2c9d18 Repository branch: HEAD System Description: Fedora Linux 42 (Sway) Configured using: 'configure --without-all 'CC=ccache gcc' 'CFLAGS=-O0 -g'' Configured features: GLIB GMP PDUMPER SECCOMP X11 XIM XINERAMA XRANDR GTK3 Important settings: value of $LANG: zh_CN.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: xterm-mouse-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils xt-mouse term/xterm xterm byte-opt gv bytecomp byte-compile china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote dynamic-setting gtk x-toolkit x multi-tty move-toolbar make-network-process tty-child-frames emacs) Memory information: ((conses 16 52730 12168) (symbols 48 6171 0) (strings 32 14442 1585) (string-bytes 1 353806) (vectors 16 8063) (vector-slots 8 120952 7572) (floats 8 26 1) (intervals 56 220 10) (buffers 984 10)) ------------=_1752691682-26665-1--