all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Mariano Montone <marianomontone@gmail.com>,
	Philip Kaludercic <philipk@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: progress-bar
Date: Sat, 2 Nov 2024 19:02:27 -0700	[thread overview]
Message-ID: <CADwFkmk8=i7WRuYeP_2dn8wFznCN5E6fBaDFLe_AsqJUWp2m2Q@mail.gmail.com> (raw)
In-Reply-To: <fc294d3d-3390-46ec-8dbc-367e04ddd52d@gmail.com>

Mariano Montone <marianomontone@gmail.com> writes:

> I'd be glad if someone can have a look and give me an opinion, and if
> there's potential to integrate to Emacs after I improve it, make it
> solid, and provide a backwards compatible interface for current Emacs'
> progress-report.

I think that we would be interested in adding such functionality to
Emacs, yes.

What I would find useful is a new user option to choose between
different styles of display for the built-in progress reporters.  Some
of them could take full advantage of the capabilities on graphical
displays, for example (i.e. SVG or somesuch), and others would be more
basic (i.e. what we have now, or some ASCII/Unicode art).

Here's where I would start: make it possible to plug in various
implementations, and then make `progress-reporter-do-update' choose
between them.  The way I imagine this is that you have several
predefined "displayer" (or simply "display"?) functions that are all
called in the same way.  Then `progress-reporter-do-update' would simply
make any necessary calculations, and then call a display function.

To customize this, the user could set some new user option (i.e. a
`defcustom') to a symbol like `default', `bar', `ignore', etc., and then
that would make `progress-reporter-do-update' call the correct function.
We could also allow setting the option to some function that has the
same call signature as the predefined ones.

The first displayer to implement, of course, is `default', which is just
simply what we have now.  Once you have that working, it should be
easier to add more.  And indeed, adding more is probably the best way to
figure out what is a reasonable call signature that all displayer
functions should have.

If you are interested in working on this, I suggest that you write up a
patch for emacs.git and send it to the bug-gnu-emacs list.  Thanks!



      reply	other threads:[~2024-11-03  2:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-29 13:42 [ELPA] New package: progress-bar Mariano Montone
2024-10-29 14:47 ` Mariano Montone
2024-10-29 14:50   ` Mariano Montone
2024-10-29 14:49 ` Eli Zaretskii
2024-10-29 14:53   ` Mariano Montone
2024-10-29 15:03 ` Philip Kaludercic
2024-10-29 15:06   ` Mariano Montone
2024-10-29 15:24     ` Philip Kaludercic
2024-10-29 15:48       ` Mariano Montone
2024-10-29 16:19         ` Mariano Montone
2024-10-31 19:44       ` Mariano Montone
2024-11-03  2:02         ` Stefan Kangas [this message]

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='CADwFkmk8=i7WRuYeP_2dn8wFznCN5E6fBaDFLe_AsqJUWp2m2Q@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=marianomontone@gmail.com \
    --cc=philipk@posteo.net \
    /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.