[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l
From: |
Juri Linkov |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>>>> 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'.
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Daniel Martín, 2021/04/10
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally,
Juri Linkov <=
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Eli Zaretskii, 2021/04/11
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Lars Ingebrigtsen, 2021/04/12
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Daniel Martín, 2021/04/16
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Lars Ingebrigtsen, 2021/04/17
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Daniel Martín, 2021/04/21
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Eli Zaretskii, 2021/04/22
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Lars Ingebrigtsen, 2021/04/25
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Daniel Martín, 2021/04/25
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Eli Zaretskii, 2021/04/25
- bug#45412: File ... is large (... MiB), really open? (y)es or (n)o or (l)iterally, Lars Ingebrigtsen, 2021/04/26