From unknown Sat Jun 21 05:14:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29549: 25.3; Unnecessary question when trying to open large unreadable file Resent-From: Rabbe Fogelholm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Dec 2017 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29549@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151232316014966 (code B ref -1); Sun, 03 Dec 2017 17:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Dec 2017 17:46:00 +0000 Received: from localhost ([127.0.0.1]:43701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLYL1-0003tJ-NC for submit@debbugs.gnu.org; Sun, 03 Dec 2017 12:46:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLUjH-0000oR-Ht for submit@debbugs.gnu.org; Sun, 03 Dec 2017 08:54:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLUjA-0002pg-Fc for submit@debbugs.gnu.org; Sun, 03 Dec 2017 08:54:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40732) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eLUjA-0002pa-C0 for submit@debbugs.gnu.org; Sun, 03 Dec 2017 08:54:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLUj8-0000a8-Rj for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2017 08:54:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLUj5-0002n4-KB for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2017 08:54:38 -0500 Received: from ste-pvt-msa1.bahnhof.se ([213.80.101.70]:16061) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eLUj5-0002iC-7T for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2017 08:54:35 -0500 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id BD8AF3FFFF for ; Sun, 3 Dec 2017 14:54:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id etWSc_2gKzJr for ; Sun, 3 Dec 2017 14:54:07 +0100 (CET) Received: from [10.0.0.18] (h-44-206.A165.priv.bahnhof.se [46.59.44.206]) (Authenticated sender: mb748077) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 899153FFDA for ; Sun, 3 Dec 2017 14:54:06 +0100 (CET) From: Rabbe Fogelholm Message-ID: <062e0db7-c46c-4966-cb6a-e3c7c920b750@bahnhof.se> Date: Sun, 3 Dec 2017 14:54:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Sun, 03 Dec 2017 12:45:58 -0500 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: -5.0 (-----) When using C-X C-F to open a large and not readable file I get this question, File emerge.log is large (12.4M), really open? (y or n) Then, after pushing 'y', I get File is not readable: /var/log/emerge.log >From a user interface perspective this is somewhat inefficient. In most cases it would be enough to just be told that the file is not readable. So, my suggestion is to display the "really open?" question only when it is in fact otherwise possible to open the file. In GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2017-12-03 built on etna Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: Gentoo Base System release 2.4.1 Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/emacs-25.3 --htmldir=/usr/share/doc/emacs-25.3/html --libdir=/usr/lib64 --program-suffix=-emacs-25 --infodir=/usr/share/info/emacs-25 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=:gamestat --without-compress-install --with-file-notification=inotify --enable-acl --with-dbus --without-modules --with-gpm --without-hesiod --without-kerberos --without-kerberos5 --without-xml2 --without-selinux --with-gnutls --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --without-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=gtk3 --without-xwidgets GENTOO_PACKAGE=app-editors/emacs-25.3 'CFLAGS=-march=native -Os -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS NOTIFY ACL GNUTLS ZLIB GTK3 X11 Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Auto-saving...done Mark set [2 times] Saving file /home/erarafo/emptytree-resume.txt... Wrote /home/erarafo/emptytree-resume.txt Mark saved where search started [2 times] File emerge.log is large (12.4M), really open? (y or n) y find-file-noselect-1: File is not readable: /var/log/emerge.log File emerge.log is large (12.4M), really open? (y or n) y find-file-noselect-1: File is not readable: /var/log/emerge.log File emerge.log is large (12.4M), really open? (y or n) y find-file-noselect-1: File is not readable: /var/log/emerge.log Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message idna dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils misearch multi-isearch site-gentoo time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 88121 7524) (symbols 48 19709 0) (miscs 40 64 238) (strings 32 14469 5061) (string-bytes 1 415682) (vectors 16 12784) (vector-slots 8 471414 7813) (floats 8 164 391) (intervals 56 296 15) (buffers 976 18)) From unknown Sat Jun 21 05:14:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29549: 25.3; Unnecessary question when trying to open large unreadable file Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Apr 2018 19:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rabbe Fogelholm Cc: 29549@debbugs.gnu.org Received: via spool by 29549-submit@debbugs.gnu.org id=B29549.152381904015878 (code B ref 29549); Sun, 15 Apr 2018 19:04:01 +0000 Received: (at 29549) by debbugs.gnu.org; 15 Apr 2018 19:04:00 +0000 Received: from localhost ([127.0.0.1]:54492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7mwS-000482-C5 for submit@debbugs.gnu.org; Sun, 15 Apr 2018 15:04:00 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:38438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7mwP-00047s-Ua for 29549@debbugs.gnu.org; Sun, 15 Apr 2018 15:03:58 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7mwM-0005VP-Vl; Sun, 15 Apr 2018 21:03:57 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7mwH-0004py-Ee; Sun, 15 Apr 2018 21:03:49 +0200 From: Lars Ingebrigtsen References: <062e0db7-c46c-4966-cb6a-e3c7c920b750@bahnhof.se> Date: Sun, 15 Apr 2018 21:03:49 +0200 In-Reply-To: <062e0db7-c46c-4966-cb6a-e3c7c920b750@bahnhof.se> (Rabbe Fogelholm's message of "Sun, 3 Dec 2017 14:54:01 +0100") Message-ID: <87y3ho70mi.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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 (-) Rabbe Fogelholm writes: > When using C-X C-F to open a large and not readable file I get this question, > > File emerge.log is large (12.4M), really open? (y or n) > > Then, after pushing 'y', I get > > File is not readable: /var/log/emerge.log > >>>From a user interface perspective this is somewhat inefficient. In most cases it > would be enough to just be told that the file is not readable. So, my suggestion > is to display the "really open?" question only when it is in fact otherwise possible > to open the file. Makes sense to me. I've now done this change in Emacs 27.1. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 15:04:02 2018 Received: (at control) by debbugs.gnu.org; 15 Apr 2018 19:04:02 +0000 Received: from localhost ([127.0.0.1]:54496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7mwU-00048f-Ls for submit@debbugs.gnu.org; Sun, 15 Apr 2018 15:04:02 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:38444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7mwS-000481-A9 for control@debbugs.gnu.org; Sun, 15 Apr 2018 15:04:00 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7mwQ-0005a5-09 for control@debbugs.gnu.org; Sun, 15 Apr 2018 21:03:59 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7mwK-0004q1-D7 for control@debbugs.gnu.org; Sun, 15 Apr 2018 21:03:52 +0200 To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29549 Message-Id: Date: Sun, 15 Apr 2018 21:03:52 +0200 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 29549 fixed close 29549