From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mariano Montone Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: progress-bar Date: Thu, 31 Oct 2024 16:44:07 -0300 Message-ID: References: <87h68v3q9k.fsf@posteo.net> <2930e7fd-a44a-4ab8-b2c8-809757a6af3a@gmail.com> <87cyjj3paj.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15920"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 31 20:44:43 2024 Return-path: Envelope-to: ged-emacs-devel@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 1t6b62-00041T-8l for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Oct 2024 20:44:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6b5f-0001j1-6B; Thu, 31 Oct 2024 15:44:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6b5a-0001V8-VR for emacs-devel@gnu.org; Thu, 31 Oct 2024 15:44:16 -0400 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t6b5X-0003IQ-PT for emacs-devel@gnu.org; Thu, 31 Oct 2024 15:44:14 -0400 Original-Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-20b533c6865so1828955ad.2 for ; Thu, 31 Oct 2024 12:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730403850; x=1731008650; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dCTEl3OPKwxR7yUtMLFwHNVKTnFvkPwRcozu+ebSNg0=; b=mfKzMe6PoXQo1gvyJmnXnLaz14uO5TQtSye4zp+MDk8dEuoBdeQYHgfMryyQz5j6Ye c5ykRCpypo7ivdpF248UwKD22LgLrC5KQQFii4vw/vyci/FAyZ2A77BHdKC8cH6AfWhl FHe9oSI0kr5O+omtLvBd1+3ZQhU/80O0EIY7AuMG8aQbWmko2K2n9WweTYG4kCEyrj/D Qy0vS3PC9Y9Ss6GLT1nfmuy7X4598D64edq4eMj8se/fShyekJpZcj8avOUulyBFD5p4 u/8akMEE1cMJMKnFdO7EGwcGichbNtcgCClW21C9P6mAFsqaIY/oXjyq7nrPsNfBq55t AncA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730403850; x=1731008650; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dCTEl3OPKwxR7yUtMLFwHNVKTnFvkPwRcozu+ebSNg0=; b=CFROWJ35CgwN48ij9R8uOnsvb7kM6/Eh009/L6lY/naGE/CsOJWk2W3XYI+TEbNuLv VE3c/nDiO7ziIwAzFHFJGniMb6JaRRtNnRn0ArFQL2ttHQmYfY23pUJ55pgRipIsH9gT 3E2im8O0ywJBVKdwqxK3kJSRKCDL75XluRixeIVoIBtA1PLQ4sDgB4T8d3/+2BiC/c+j odfV0nJ1+ivbbOKjcLWDVcfQ4dEAbEKkjgJvq739E77jOARpPF+or+6wDkFy+JJ7CVgK /oG4ZAIh0ylMHDf9vcV6wV/hLTcpyZJ3Py9rpBTOMsypkIlEczIBcKLZutTv/Vmi/QSD /Pag== X-Gm-Message-State: AOJu0Yx8mT0xhOGTBx9oK26dw1ig3AQbTNmE65c2AM+75cnMaM9Dt1h8 +vo1WYmomr+ufrCFNKX/U2jhb3znoakNMvrxBbDBIq+b2UVLX6KG+aPrxWRm X-Google-Smtp-Source: AGHT+IF4nZjGqRrVqOf9ast3V8XQ4/1U90CJP6N9xJCIZ9dSZi505ol+dYiXwtBOToZs4u14lEyfCA== X-Received: by 2002:a17:902:e801:b0:20c:8cc4:cf24 with SMTP id d9443c01a7336-210c6d48186mr104237435ad.15.1730403850135; Thu, 31 Oct 2024 12:44:10 -0700 (PDT) Original-Received: from [192.168.0.15] ([190.19.45.46]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211057f3dc6sm11944925ad.307.2024.10.31.12.44.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Oct 2024 12:44:09 -0700 (PDT) Content-Language: en-US In-Reply-To: <87cyjj3paj.fsf@posteo.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=marianomontone@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324983 Archived-At: El 29/10/24 a las 12:24, Philip Kaludercic escribió: > Generally it would be neat if we could find a solution that would avoid > the need for advice, but I don't see a clean way to do that right now. > Would you be interested in preparing a patch for subr.el that would make > progress-reporters more flexible? I've started a potential and currently sketchy implementation here: https://github.com/mmontone/emacs-progress-bar/tree/progress-model (progress-model git branch). It works by separating a model for progress (that I could rename to progress-report), and a progress-displayer. The progress takes care of progress status and triggering of update events, is unaware of progress display. The progress displayer listens to those events and displays the progress in some way. I've implemented four displayers, three that work in the echo area, including a progress bar. And one that displays progress in the modeline, using svg animations. To see this in action, load progress.el and progress-displayer.el, then evaluate forms in progress-examples.el. 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. Thanks!     Mariano