From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.bugs Subject: bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally Date: Fri, 25 Dec 2020 02:00:45 +0100 Message-ID: References: <87k0t72rhd.5.fsf@jidanni.org> Reply-To: =?UTF-8?Q?Reply-to=3A_Daniel_Mart=C3=83=C2=ADn_=3Cmardani29=40yahoo=2Ees?= =?UTF-8?Q?=3E=0A?= 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="9683"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cc: 45412@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 25 02:02:22 2020 Return-path: Envelope-to: geb-bug-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 1ksbUs-0002R2-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Dec 2020 02:02:22 +0100 Original-Received: from localhost ([::1]:38748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksbUp-0004oZ-NZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Dec 2020 20:02:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksbUY-0004oE-Md for bug-gnu-emacs@gnu.org; Thu, 24 Dec 2020 20:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ksbUY-0001sg-FK for bug-gnu-emacs@gnu.org; Thu, 24 Dec 2020 20:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ksbUY-0006Eq-BE for bug-gnu-emacs@gnu.org; Thu, 24 Dec 2020 20:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Dec 2020 01:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45412 X-GNU-PR-Package: emacs Original-Received: via spool by 45412-submit@debbugs.gnu.org id=B45412.160885806423912 (code B ref 45412); Fri, 25 Dec 2020 01:02:02 +0000 Original-Received: (at 45412) by debbugs.gnu.org; 25 Dec 2020 01:01:04 +0000 Original-Received: from localhost ([127.0.0.1]:56333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ksbTb-0006Db-Sg for submit@debbugs.gnu.org; Thu, 24 Dec 2020 20:01:04 -0500 Original-Received: from sonic311-32.consmr.mail.ir2.yahoo.com ([77.238.176.164]:43616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ksbTV-0006Cu-M4 for 45412@debbugs.gnu.org; Thu, 24 Dec 2020 20:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1608858049; bh=ccm+D6XUlbQKqNfMtZmriKn7LKbvuCsQ5GL9QjnZIJY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=f1PO3h4wCdQIIp/CNcWUfK0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xfUAYYBliIZRdwf.JACK0tPa2tOu4 TU6V35nUVgEDogylpByfz9zAXCopuCmsSfpEby9vX4JtdpaJwkGiGM5neSFFb8eUvqBV4AyXG7QM f0Ig07xt2UVPgcGexGl2jwRE6aBl_REkBS5I86hbTh0SgENGItIUbyQd.FXl9FdaAn_laMUPy6yS U6V3.IQFSeZyv8xLSrwjSE2L4eOw4hQwMRyD_Yk3_ROVI1HrtihuQrt4Du50GWWdjj78ZO86._46 LEnGO38D41yGIWFDjxjl3yPozo.qyzIhos3QKGYIQiBGJ7lFp.09Vp7AnSGbpOY7akqFi0w5m_oL 1XAx.12NLbxTwrWUjjSwKohRoZYx6ukBrkzIEHkOwc49NSS8aUTQxCs3.Q.6MmSRl0RwxMRSy.uj XCI_GKdMyTfY8tAtwhn7fpvL9APcIAZiRG7mF7QwRvp9PI9T7wpaOM2DLzNVJ3rfBr2_6CdADx3A DoCfcuSLwtFdtSAnZkLmkZoA14v5DZ56czdhrQjl.cWSC1161aGUOrcbwhO1ghGwRZlfa3R9O6qT .T_hTwHgEx7TFINSpRU64KKFW3kW3LlClsAVB6p95X Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Fri, 25 Dec 2020 01:00:49 +0000 Original-Received: by smtp408.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 84c7063b32e082204b0063322555762b; Fri, 25 Dec 2020 01:00:46 +0000 (UTC) In-Reply-To: <87k0t72rhd.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Thu, 24 Dec 2020 22:44:46 +0800") X-Mailer: WebService/1.1.17278 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Original-From: Xref: news.gmane.io gmane.emacs.bugs:196667 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: Thank you for your feature request to improve Emacs. > File 06-7377E-001A.jpg is large (14.4 MiB), really open? (y)es or (n)o or= (l)iterally y > File 06-7377E-001B.jpg is large (14.4 MiB), really open? (y)es or (n)o or= (l)iterally y > File 06-7377E-001C.jpg is large (14.4 MiB), really open? (y)es or (n)o or= (l)iterally y > ... > Maybe add choices: > "(a)lways" (for the rest of the session). I think users would be confused about this option. Would it always open the file regularly or literally? A minor thing, I think it's customary in Emacs to use "!" for this "don't ask me again" feature (see save-some-buffers or hack-local-variables-confirm, for example). > "(n)ever" (for the rest of the session). Same here, it's not totally clear to me if this option would never open a large file, or never ask for confirmation before opening a large file. The dialog message ends with "really open?". > > Also the user has no clue about what to change to change whatever is > asking this. So maybe add (c)ustomize. Makes sense, but I don't know how well it'd fit the rest of Emacs. AFAIK, customization points are not usually advertised in Emacs prompts. It's more typical to expect that users "ask Emacs" to discover them, for example by issuing M-x customize-apropos large file RET or M-x customize-group files RET. Instead, one possibility could be to offer a "!" option that would always open big files non-literally in the current Emacs session. Its implementation would basically open the large file and set large-file-warning-threshold to nil. However, I foresee problems if users accidentally press "!" in this prompt. Another approach could be to offer a C-h binding that opens a help window that describes the possible options and briefly links to the customization entry point that removes the prompt permanently.