Subject: bug#75825: [PATCH] New user option 'Buffer-menu-human-readable-size'

From: Robert Pluim <[email-masked]>
Date: Sun, 26 Jan 2025 12:24:09 +0100

>>>>> On Sat, 25 Jan 2025 19:45:29 +0800, Pengji Zhang <[email-masked]> said:

    Pengji> Hello,
    Pengji> This patch introduces a new user option similar to the one in bug#75495.
    Pengji> With it we could display buffer sizes in the human readable format for
    Pengji> Buffer Menu.

As with #75495, "size" or "sizes", please pick one and only one.

    Pengji> Thanks!

    Pengji> Pengji

    Pengji> From 423df97d414ea6443e0c74c0978ab9a4faeb9476 Mon Sep 17 00:00:00 2001
    Pengji> From: Pengji Zhang <[email-masked]>
    Pengji> Date: Sat, 25 Jan 2025 19:29:26 +0800
    Pengji> Subject: [PATCH] New user option 'Buffer-menu-human-readable-size'

    Pengji> * lisp/buff-menu.el (Buffer-menu-human-readable-size): New user
    Pengji> option.
    Pengji> (list-buffers--refresh): Use it.
    Pengji> * etc/NEWS: Annouce the new user option.
    Pengji> ---
    Pengji>  etc/NEWS          |  5 +++++
    Pengji>  lisp/buff-menu.el | 13 ++++++++++++-
    Pengji>  2 files changed, 17 insertions(+), 1 deletion(-)

    Pengji> diff --git a/etc/NEWS b/etc/NEWS
    Pengji> index 385e943c997..612d1fd88f3 100644
    Pengji> --- a/etc/NEWS
    Pengji> +++ b/etc/NEWS
    Pengji> @@ -361,6 +361,11 @@ set to 'title'.
    Pengji>  *** New user option 'ibuffer-human-readable-size'.
    Pengji>  When non-nil, buffer sizes are shown in human readable format.
 
    Pengji> +---
    Pengji> +** Buffer Menu
    Pengji> +*** New user option 'Buffer-menu-human-readable-size'.
    Pengji> +When non-nil, buffer sizes are shown in human readable format.
    Pengji> +

When adding a new user option, please describe the default value. I
assume itʼs nil, but NEWS should tell me (especially as NEWS is often
read outside Emacs).

Robert
--