From: Juri Linkov <juri@linkov.net>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: 45412@debbugs.gnu.org, "Lars Ingebrigtsen" <larsi@gnus.org>,
"積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally
Date: Sun, 11 Apr 2021 01:52:56 +0300 [thread overview]
Message-ID: <874kgdagkf.fsf@mail.linkov.net> (raw)
In-Reply-To: <m11rbhbwjh.fsf@yahoo.es> ("Daniel Martín"'s message of "Sun, 11 Apr 2021 00:32:34 +0200")
>>>> 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.
>>>
>>> Yeah, that sounds like a good idea.
>>
>> I agree, this is really the best idea.
>
> OK, I've implemented it in the attached patch. Suggestions
> welcome.
>
> + (while (null choice)
> + (setq choice (read-char-choice
> + (concat prompt " (y)es, (n)o, (l)iterally, (?)")
> + '(?y ?Y ?n ?N ?l ?L ?? ?\C-h)))
> + (when (memq choice '(?? ?\C-h))
> + (files--ask-user-about-large-file-help
> + op-type (funcall byte-count-to-string-function size))
To avoid the additional loop, maybe it's easier just to let-bind
the variable 'help-form' that is handled by 'read-char-choice'.
next prev parent reply other threads:[~2021-04-10 22:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-24 14:44 bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally 積丹尼 Dan Jacobson
2020-12-25 1:00 ` Unknown
2020-12-25 1:29 ` 積丹尼 Dan Jacobson
2020-12-25 5:52 ` Lars Ingebrigtsen
2020-12-25 9:32 ` Juri Linkov
2021-04-10 22:32 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 22:52 ` Juri Linkov [this message]
2021-04-11 7:03 ` Eli Zaretskii
2021-04-12 8:06 ` Lars Ingebrigtsen
2021-04-16 23:50 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-17 11:44 ` Lars Ingebrigtsen
2021-04-21 22:12 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-22 10:04 ` Eli Zaretskii
2021-04-25 19:14 ` Lars Ingebrigtsen
2021-04-25 21:23 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-26 2:28 ` Eli Zaretskii
2021-04-27 1:08 ` Lars Ingebrigtsen
2021-05-05 23:10 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-06 8:28 ` Lars Ingebrigtsen
2021-05-06 8:30 ` Eli Zaretskii
2021-05-07 14:11 ` Eli Zaretskii
2021-05-08 11:37 ` Lars Ingebrigtsen
2021-05-08 12:22 ` Eli Zaretskii
2021-05-09 9:57 ` Lars Ingebrigtsen
2021-05-09 10:04 ` Eli Zaretskii
2021-04-22 22:09 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874kgdagkf.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=45412@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=larsi@gnus.org \
--cc=mardani29@yahoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.