From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Emacs opens only first 16384 bytes of file?! Date: Sun, 12 Feb 2023 11:55:30 +0800 Message-ID: References: <87h6vrucl7.fsf@drac> Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26011"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 29.0.60 Cc: help-gnu-emacs@gnu.org To: Christoph Groth Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 05:06:08 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pR3ct-0006aB-LL for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 05:06:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR3cQ-0008Oh-4J; Sat, 11 Feb 2023 23:05:38 -0500 Original-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 1pR3cO-0008OK-Ei for help-gnu-emacs@gnu.org; Sat, 11 Feb 2023 23:05:36 -0500 Original-Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pR3cM-0001ww-Na for help-gnu-emacs@gnu.org; Sat, 11 Feb 2023 23:05:36 -0500 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id eec45e36 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 12 Feb 2023 04:05:29 +0000 (UTC) In-reply-to: <87h6vrucl7.fsf@drac> Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, PLING_QUERY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142718 Archived-At: Christoph Groth writes: > Hello, > > I just noticed something that made me doubt my own sanity: With Emacs > 27.1 (from Debian stable running Debian=E2=80=99s Linux kernel > 6.0.0-0.deb11.6-amd64) the command > > emacs -q -nw /proc/cpuinfo > > reproducibly opens cpuinfo only up to a portion of line 272, while the > entire file is 560 lines long on that machine. I checked on a different > machine (with same Emacs), and I see the same behavior. > > C-u C-x =3D tells that the file is read up to position 16384 (=3D 2^14). Can't reproduce on 28.1 nor 29 (8a18369afdc3). Can you compile 28.1 and see if the problem goes away? Since my /proc/cpuinfo is smaller than 16384 bytes, I used the following steps to try to reproduce the issue: $ zcat /proc/config.gz > ~/c $ /path/to/emacs-28.1/src/emacs -Q -nw ~/c `C-u C-x =3D' says: "position: 1 of 252720 (0%), column: 0" > Running M-x revert-buffer loads the whole file... > > Is/was this a known issue? I could not find anything on the web. In the future you might get more responses if you mail to bug-gnu-emacs@gnu.org. > ---------------------------------------------------------------- > > I=E2=80=99m willing to investigate this further, but it would seem very s= trange > if Emacs indeed had a bug that prevented it from loading some files > entirely. Perhaps someone here knows the answer. > > Thanks > Christoph -- Best, RY